org.argouml.application.helpers
Class ModuleHelper

java.lang.Object
  |
  +--org.argouml.application.helpers.ModuleHelper
All Implemented Interfaces:
ArgoModule

public abstract class ModuleHelper
extends java.lang.Object
implements ArgoModule


Field Summary
protected  boolean _enabled
           
 
Fields inherited from interface org.argouml.application.api.ArgoModule
cat, MODULEFILENAME, MODULEFILENAME_ALTERNATE
 
Constructor Summary
ModuleHelper()
           
 
Method Summary
 java.util.Vector getModulePopUpActions(java.util.Vector v, java.lang.Object o)
          Calls all modules to let them add to a popup menu.
 boolean isModuleEnabled()
          Allows determination if a module is enabled or disabled
 void setModuleEnabled(boolean enabled)
          Called to enable or disable a module programmatically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.argouml.application.api.ArgoModule
getModuleAuthor, getModuleDescription, getModuleKey, getModuleName, getModuleVersion, initializeModule, shutdownModule
 

Field Detail

_enabled

protected boolean _enabled
Constructor Detail

ModuleHelper

public ModuleHelper()
Method Detail

isModuleEnabled

public boolean isModuleEnabled()
Description copied from interface: ArgoModule
Allows determination if a module is enabled or disabled

Specified by:
isModuleEnabled in interface ArgoModule
Returns:
true if the module is enabled, otherwise false

setModuleEnabled

public void setModuleEnabled(boolean enabled)
Description copied from interface: ArgoModule
Called to enable or disable a module programmatically.

Specified by:
setModuleEnabled in interface ArgoModule
Parameters:
enabled - true to enable module, false to disable

getModulePopUpActions

public java.util.Vector getModulePopUpActions(java.util.Vector v,
                                              java.lang.Object o)
Description copied from interface: ArgoModule
Calls all modules to let them add to a popup menu.

Specified by:
getModulePopUpActions in interface ArgoModule
Parameters:
v - Vector of actions
o - which the actions are valid for


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook