Package org.gvsig.andami
Class LibraryExtension
java.lang.Object
org.gvsig.andami.plugins.Extension
org.gvsig.andami.LibraryExtension
- All Implemented Interfaces:
IExtension,IExtensionExecuteWithArgs,IExtensionQueryByAction
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is executed when the user clicks on any of the controls associated with this extension (menus, tools, etc).voidExtension's initialization code should be here.booleanThis method is invoked by Andami to check whether the extension (and its associated controls) is enabled or disabled.booleanThis method is invoked by Andami to check whether the extension (and its associated controls) is visible or hidden.
-
Constructor Details
-
LibraryExtension
public LibraryExtension()
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:IExtensionExtension's initialization code should be here. This method is called for all the extensions during Andami's initialization. -
execute
Description copied from interface:IExtensionThis method is executed when the user clicks on any of the controls associated with this extension (menus, tools, etc).- Parameters:
actionCommand- An String specifying the action to execute. This is useful when there are different controls associated with the same extension.
-
isEnabled
public boolean isEnabled()Description copied from interface:IExtensionThis method is invoked by Andami to check whether the extension (and its associated controls) is enabled or disabled. Disabled controls (menus and buttons) are shown in light grey colour, and it is not possible to click on them.- Returns:
- true if the extension should be enabled, false otherwise
-
isVisible
public boolean isVisible()Description copied from interface:IExtensionThis method is invoked by Andami to check whether the extension (and its associated controls) is visible or hidden.- Returns:
- true if the extension should be visible, false otherwise
-