public class ShowTable extends Extension implements LayerCollectionListener
Constructor and Description |
---|
ShowTable() |
Modifier and Type | Method and Description |
---|---|
void |
execute(String command)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
void |
execute(String command,
Object[] args) |
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 |
layerAdded(LayerCollectionEvent e)
Called when a layer has been added or replaced in the internal list of layers.
|
void |
layerAdding(LayerCollectionEvent e)
Called when a layer is just going to be added or replaced in the internal list of layers.
|
void |
layerMoved(LayerPositionEvent e)
Called when a layer has been moved in the internal list of layers.
|
void |
layerMoving(LayerPositionEvent e)
Called when a layer is just going to be moved in the internal list of layers.
|
void |
layerRemoved(LayerCollectionEvent e)
Called when a layer has been removed from the internal list of layers.
|
void |
layerRemoving(LayerCollectionEvent e)
Called when a layer is just going to be removed from the internal list of layers.
|
void |
visibilityChanged(LayerCollectionEvent e)
Called when the visibility of the collection of layers has changed.
|
public boolean isEnabled()
IExtension
isEnabled
in interface IExtension
public boolean isVisible()
IExtension
isVisible
in interface IExtension
public void execute(String command)
IExtension
execute
in interface IExtension
command
- An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public void execute(String command, Object[] args)
execute
in interface IExtensionExecuteWithArgs
execute
in class Extension
public void initialize()
IExtension
initialize
in interface IExtension
public void layerAdded(LayerCollectionEvent e)
LayerCollectionListener
Called when a layer has been added or replaced in the internal list of layers.
layerAdded
in interface LayerCollectionListener
e
- a layer collection event objectpublic void layerMoved(LayerPositionEvent e)
LayerCollectionListener
Called when a layer has been moved in the internal list of layers.
layerMoved
in interface LayerCollectionListener
e
- a layer collection event objectpublic void layerRemoved(LayerCollectionEvent e)
LayerCollectionListener
Called when a layer has been removed from the internal list of layers.
layerRemoved
in interface LayerCollectionListener
e
- a layer collection event objectpublic void layerAdding(LayerCollectionEvent e) throws CancelationException
LayerCollectionListener
Called when a layer is just going to be added or replaced in the internal list of layers.
layerAdding
in interface LayerCollectionListener
e
- a layer collection event objectCancelationException
- if cancels the adding operation, this exception will have the message
that user will see.public void layerMoving(LayerPositionEvent e) throws CancelationException
LayerCollectionListener
Called when a layer is just going to be moved in the internal list of layers.
layerMoving
in interface LayerCollectionListener
e
- a layer collection event objectCancelationException
- if cancels the moving operation, this exception will have the message
that user will see.public void layerRemoving(LayerCollectionEvent e) throws CancelationException
LayerCollectionListener
Called when a layer is just going to be removed from the internal list of layers.
layerRemoving
in interface LayerCollectionListener
e
- a layer collection event objectCancelationException
- if cancels the removing operation, this exception will have the message
that user will see.public void visibilityChanged(LayerCollectionEvent e) throws CancelationException
LayerCollectionListener
Called when the visibility of the collection of layers has changed.
visibilityChanged
in interface LayerCollectionListener
e
- a layer collection event objectCancelationException
- if cancels the operation of change visibility, this exception will have the
message that user will see.