public abstract class AbstractTogglePropertyExtension extends Extension
| Constructor and Description |
|---|
AbstractTogglePropertyExtension() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doToggleValue(MapControl mc) |
void |
execute(String actionCommand)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
protected abstract String |
getActionCommand() |
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.
|
protected boolean |
optionMustBeAvailable() |
public void initialize()
IExtensionpublic void execute(String actionCommand)
IExtensionactionCommand - An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public boolean isEnabled()
IExtensionpublic boolean isVisible()
IExtensionprotected boolean optionMustBeAvailable()
protected abstract String getActionCommand()
protected abstract void doToggleValue(MapControl mc)