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()
IExtension
initialize
in interface IExtension
public void execute(String actionCommand)
IExtension
execute
in interface IExtension
actionCommand
- An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public void postInitialize()
IExtension
initialize()
has been called for ALL the extensions.postInitialize
in interface IExtension
postInitialize
in class Extension
public boolean isEnabled()
IExtension
isEnabled
in interface IExtension
public boolean isVisible()
IExtension
isVisible
in interface IExtension
public void update(Observable observable, Object notificationArg)
Observer
Observable
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 Observer
s 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 DropTargetListener
public void dragOver(DropTargetDragEvent dtde)
dragOver
in interface DropTargetListener
public void dropActionChanged(DropTargetDragEvent dtde)
dropActionChanged
in interface DropTargetListener
public void dragExit(DropTargetEvent dte)
dragExit
in interface DropTargetListener
public void drop(DropTargetDropEvent dtde)
drop
in interface DropTargetListener