org.argouml.application.helpers
Class ResourceBundleHelper
java.lang.Object
java.util.ResourceBundle
java.util.ListResourceBundle
org.argouml.application.helpers.ResourceBundleHelper
- All Implemented Interfaces:
- ArgoModule, Pluggable, PluggableResourceBundle
- public abstract class ResourceBundleHelper
- extends ListResourceBundle
- implements PluggableResourceBundle
Helper object for Pluggable Resource Bundles
- Since:
- 0.9.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBundleHelper
public ResourceBundleHelper()
setModuleEnabled
public void setModuleEnabled(boolean v)
- Description copied from interface:
ArgoModule
- Called to enable or disable a module programmatically.
- Specified by:
setModuleEnabled
in interface ArgoModule
- Parameters:
v
- true to enable module, false to disable- See Also:
ArgoModule.setModuleEnabled(boolean)
initializeModule
public boolean initializeModule()
- Description copied from interface:
ArgoModule
- Method called when Argo is loading a module.
- Specified by:
initializeModule
in interface ArgoModule
- Returns:
- true if the module initialized properly.
- See Also:
ArgoModule.initializeModule()
inContext
public boolean inContext(Object[] o)
- Description copied from interface:
Pluggable
- A function which allows a plug-in to decide if it is available
under a specific context.
One example of a plugin with multiple criteria is the PluggableMenu.
PluggableMenu requires the first context to be a JMenuItem
which wants the PluggableMenu attached to as the context,
so that it can determine that it would attach to a menu. The
second context is an internal (non-localized) description
of the menu such as "File" or "View"
so that the plugin can further decide.
- Specified by:
inContext
in interface Pluggable
- Parameters:
o
- An identification of the context.
The interpretation of criteria is specific to
the plug-in type, but must be consistent
across that type. The plug-in must want
to be exposed to all contexts.
- Returns:
- True if the plug-in wants to make itself available
for this context, otherwise false.
- See Also:
Pluggable.inContext(java.lang.Object[])
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
- See Also:
ArgoModule.isModuleEnabled()
getModulePopUpActions
public Vector getModulePopUpActions(Vector v,
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 actionso
- which the actions are valid for
- Returns:
- Vector containing pop-up actions
- See Also:
ArgoModule.getModulePopUpActions(
java.util.Vector, java.lang.Object)
shutdownModule
public boolean shutdownModule()
- Description copied from interface:
ArgoModule
- Method called when Argo is unloading a module.
- Specified by:
shutdownModule
in interface ArgoModule
- Returns:
- true if the module terminated properly.
- See Also:
ArgoModule.shutdownModule()