|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.argouml.application.helpers.SettingsTabHelper
Helper object for Settings Tabs.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.argouml.application.api.Pluggable |
PLUGIN_PREFIX, PLUGIN_TITLE, PLUGIN_VENDOR |
Fields inherited from interface org.argouml.application.api.ArgoModule |
MODULEFILENAME, MODULEFILENAME_ALTERNATE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SettingsTabHelper()
Constructor. |
Method Summary | |
protected JCheckBox |
createCheckBox(String key)
Create a localized JCheckBox. |
protected JLabel |
createLabel(String key)
Create a localized JLabel. |
protected JRadioButton |
createRadioButton(ButtonGroup bg,
String key,
boolean selected)
Create a localized JRadioButton. |
protected JTextField |
createTextField()
Create a JTextField. |
Vector |
getModulePopUpActions(Vector v,
Object o)
Calls all modules to let them add to a popup menu. |
SettingsTabPanel |
getSettingsTabPanel()
Returns the settings tab panel for the plugin. |
JPanel |
getTabPanel()
Gets the JPanel which implements the tab. |
boolean |
inContext(Object[] o)
A function which allows a plug-in to decide if it is available under a specific context. |
boolean |
initializeModule()
Method called when Argo is loading a module. |
boolean |
isModuleEnabled()
Allows determination if a module is enabled or disabled. |
String |
localize(String key)
Helper for localization, localizes using the bundle passed in the constructor. |
void |
setModuleEnabled(boolean v)
Called to enable or disable a module programmatically. |
boolean |
shutdownModule()
Method called when Argo is unloading a module. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.argouml.application.api.SettingsTabPanel |
getTabKey, handleSettingsTabCancel, handleSettingsTabRefresh, handleSettingsTabSave |
Methods inherited from interface org.argouml.application.api.ArgoModule |
getModuleAuthor, getModuleDescription, getModuleKey, getModuleName, getModuleVersion |
Constructor Detail |
public SettingsTabHelper()
Method Detail |
public String localize(String key)
key
- the key for the string to localize
protected JLabel createLabel(String key)
key
- the key of the text for the label
protected JCheckBox createCheckBox(String key)
key
- the key for the string to be localized
protected JRadioButton createRadioButton(ButtonGroup bg, String key, boolean selected)
bg
- the buttongroupkey
- the key for the string to be localizedselected
- true if selected
protected JTextField createTextField()
public void setModuleEnabled(boolean v)
ArgoModule
setModuleEnabled
in interface ArgoModule
v
- true to enable module, false to disableArgoModule.setModuleEnabled(boolean)
public boolean initializeModule()
ArgoModule
initializeModule
in interface ArgoModule
ArgoModule.initializeModule()
public boolean inContext(Object[] o)
Pluggable
inContext
in interface Pluggable
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.
Pluggable.inContext(java.lang.Object[])
public boolean isModuleEnabled()
ArgoModule
isModuleEnabled
in interface ArgoModule
ArgoModule.isModuleEnabled()
public Vector getModulePopUpActions(Vector v, Object o)
ArgoModule
getModulePopUpActions
in interface ArgoModule
v
- Vector of actionso
- which the actions are valid for
ArgoModule.getModulePopUpActions(
java.util.Vector, java.lang.Object)
public boolean shutdownModule()
ArgoModule
shutdownModule
in interface ArgoModule
ArgoModule.shutdownModule()
public SettingsTabPanel getSettingsTabPanel()
PluggableSettingsTab
getSettingsTabPanel
in interface PluggableSettingsTab
PluggableSettingsTab.getSettingsTabPanel()
public JPanel getTabPanel()
SettingsTabPanel
getTabPanel
in interface SettingsTabPanel
SettingsTabPanel.getTabPanel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |