public class AddLayerDropingFile extends Extension implements Runnable, Observer, DropTargetListener
| Constructor and Description |
|---|
AddLayerDropingFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
dragEnter(DropTargetDragEvent dtde) |
void |
dragExit(DropTargetEvent dte) |
void |
dragOver(DropTargetDragEvent dtde) |
void |
drop(DropTargetDropEvent dtde) |
void |
dropActionChanged(DropTargetDragEvent dtde) |
void |
execute(String actionCommand)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
void |
initialize()
Extension's initialization code should be here.
|
boolean |
isEnabled()
This method is invoked by Andami to check whether the extension
(and its associated controls) is enabled or disabled.
|
boolean |
isVisible()
This method is invoked by Andami to check whether the extension
(and its associated controls) is visible or hidden.
|
void |
postInitialize()
Extension's post-initialization code should be here.
|
void |
run() |
void |
update(Observable observable,
Object notificationArg)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
public void initialize()
IExtensioninitialize in interface IExtensionpublic void execute(String actionCommand)
IExtensionexecute in interface IExtensionactionCommand - An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public void postInitialize()
IExtensioninitialize()
has been called for ALL the extensions.postInitialize in interface IExtensionpostInitialize in class Extensionpublic boolean isEnabled()
IExtensionisEnabled in interface IExtensionpublic boolean isVisible()
IExtensionisVisible in interface IExtensionpublic void update(Observable observable, Object notificationArg)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.
public void dragEnter(DropTargetDragEvent dtde)
dragEnter in interface DropTargetListenerpublic void dragOver(DropTargetDragEvent dtde)
dragOver in interface DropTargetListenerpublic void dropActionChanged(DropTargetDragEvent dtde)
dropActionChanged in interface DropTargetListenerpublic void dragExit(DropTargetEvent dte)
dragExit in interface DropTargetListenerpublic void drop(DropTargetDropEvent dtde)
drop in interface DropTargetListener