Package org.gvsig.andami.plugins
Class Extension
java.lang.Object
org.gvsig.andami.plugins.Extension
- All Implemented Interfaces:
IExtension,IExtensionExecuteWithArgs,IExtensionQueryByAction
- Direct Known Subclasses:
LibraryExtension
public abstract class Extension
extends Object
implements IExtension, IExtensionQueryByAction, IExtensionExecuteWithArgs
Extensions are the way in which plugins extend Andami. Extensions
can add controls to user interface (GUI) and execute some code
when controls are activated. Every class implementing
IExtension is an extension, but directly implementing
that interface is discouraged. The preferred way to create
an extension is extending this absctract class.- Author:
- Jorge Piera LlodrĂ¡ (piera_jor@gva.es)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidGets the status of the extension, which may be queried to check if the extension has some unsaved data or some associated background tasks.getStatus(IExtension extension) booleanbooleanvoidExtension's post-initialization code should be here.voidsetPlugin(PluginServices plugin) voidExtension's termination code should be here.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.andami.plugins.IExtension
execute, initialize, isEnabled, isVisible
-
Field Details
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
Extension
public Extension()
-
-
Method Details
-
terminate
public void terminate()Description copied from interface:IExtensionExtension's termination code should be here. This method is called for all the extensions during Andami's termination.- Specified by:
terminatein interfaceIExtension
-
postInitialize
public void postInitialize()Description copied from interface:IExtensionExtension's post-initialization code should be here. This method is called for all the extensions during Andami's initialization, afterinitialize()has been called for ALL the extensions.- Specified by:
postInitializein interfaceIExtension
-
getStatus
Description copied from interface:IExtensionGets the status of the extension, which may be queried to check if the extension has some unsaved data or some associated background tasks.- Specified by:
getStatusin interfaceIExtension- Returns:
- An IExtensionStatus object, containing the status of this extension.
- See Also:
-
getStatus
- Specified by:
getStatusin interfaceIExtension
-
getText
-
setPlugin
-
getPlugin
-
isEnabled
- Specified by:
isEnabledin interfaceIExtensionQueryByAction
-
isVisible
- Specified by:
isVisiblein interfaceIExtensionQueryByAction
-
canQueryByAction
public boolean canQueryByAction()- Specified by:
canQueryByActionin interfaceIExtensionQueryByAction
-
execute
- Specified by:
executein interfaceIExtensionExecuteWithArgs
-