|
|||||||||||
| 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.ui.AbstractArgoJPanel
org.argouml.uml.ui.TabProps
This is the tab on the details panel (DetailsPane) that holds the property panel. On change of target, the property panel in TabProps is changed.
With the introduction of the TargetManager,
this class holds its original power
of controlling its target. The property panels (subclasses of PropPanel) for
which this class is the container are being registered as TargetListeners in
the setTarget method of this class.
They are not registered with TargetManager
but with this class to prevent race-conditions while firing TargetEvents from
TargetManager.
TODO: Once the old module loader is removed from ArgoUML the
ArgoModuleEventListener
interface can be removed.
| 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.JComponent |
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TabProps()
The constructor. |
|
TabProps(String tabName,
String panelClassBase)
The constructor. |
|
| Method Summary | |
void |
addPanel(Class c,
PropPanel p)
Adds a property panel to the internal list. |
protected void |
finalize()
|
protected String |
getClassBaseName()
|
Object |
getTarget()
Deprecated. As of ArgoUml version 0.13.5, the visibility of this method will change in the future, replaced by TargetManager.getInstance().getTarget(). |
void |
moduleDisabled(ArgoModuleEvent event)
Invoked when a module has been disabled. |
void |
moduleEnabled(ArgoModuleEvent event)
Invoked when a module has been enabled. |
void |
moduleLoaded(ArgoModuleEvent event)
Invoked when a module has been loaded. |
void |
moduleUnloaded(ArgoModuleEvent event)
Invoked when a module has been unloaded. |
void |
refresh()
Refreshes the tab IN TOTAL |
void |
setOrientation(org.tigris.swidgets.Orientation orientation)
Set the orientation of the property panel. |
void |
setTarget(Object t)
Deprecated. As of ArgoUml version 0.13.5, the visibility of this method will change in the future, replaced by TargetManager. |
boolean |
shouldBeEnabled(Object t)
Determines if the property panel should be enabled. |
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
| Methods inherited from class org.argouml.ui.AbstractArgoJPanel |
clone, getOrientation, getTitle, setTitle, spawn |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TabProps()
public TabProps(String tabName,
String panelClassBase)
tabName - the name of the tabpanelClassBase - the panel class base| Method Detail |
protected void finalize()
throws Throwable
ThrowableObject.finalize()public void setOrientation(org.tigris.swidgets.Orientation orientation)
setOrientation in interface org.tigris.swidgets.OrientablesetOrientation in class AbstractArgoJPanelorientation - the new orientation for this property panelOrientable.setOrientation(org.tigris.swidgets.Orientation)
public void addPanel(Class c,
PropPanel p)
c - the metaclass whose details show be displayed
in the property panel pp - an instance of the property panel for the metaclass mpublic void setTarget(Object t)
TargetManager.
setTarget in interface TabTargett - the target to setTabTarget.setTarget(java.lang.Object)public void refresh()
TabTarget
refresh in interface TabTargetTabTarget.refresh()protected String getClassBaseName()
public Object getTarget()
TargetManager.getInstance().getTarget().
getTarget in interface TabTargetTabTarget.getTarget()public boolean shouldBeEnabled(Object t)
shouldBeEnabled in interface TabTargett - the given target
TabTarget.shouldBeEnabled(Object)public void moduleLoaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleLoaded in interface ArgoModuleEventListenerevent - the eventTODO: Replace by another registration procedure.public void moduleUnloaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleUnloaded in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleUnloaded(org.argouml.application.events.ArgoModuleEvent)public void moduleEnabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleEnabled in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleEnabled(org.argouml.application.events.ArgoModuleEvent)public void moduleDisabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleDisabled in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleDisabled(org.argouml.application.events.ArgoModuleEvent)public void targetAdded(TargetEvent e)
TargetListener
targetAdded in interface TargetListenere - The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(org.argouml.ui.targetmanager.TargetEvent)public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved in interface TargetListenere - The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(org.argouml.ui.targetmanager.TargetEvent)public void targetSet(TargetEvent e)
TargetListener
targetSet in interface TargetListenere - The targetevent, name will be TARGET_SETTargetListener.targetSet(org.argouml.ui.targetmanager.TargetEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |