|
|||||||||||
| 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
A subclass of JPanel that can act as a tab in the DetailsPane or MultiEditorPane. Added functionality:
Spawning: When the tab is double-clicked, this JPanel will generate a separate window of the same size and with the same contents. This is almost like "tearing off" a tab.
TODO: Spawning of windows disabled in spawn()
Title: This JPanel keeps track of its own title.
Orientation: This JPanel is Orientable.
Cloning: This JPanel may be cloned.
This class used to be named TabSpawnable. Renamed since it is not a Tab, but a Panel, and being spawnable is not any more its main purpose.
| 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, 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.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 | |
AbstractArgoJPanel()
The constructor. |
|
AbstractArgoJPanel(String tag)
The constructor. |
|
AbstractArgoJPanel(String tag,
boolean t)
The constructor. |
|
| Method Summary | |
Object |
clone()
This is not a real clone since it doesn't copy anything from the object it is cloning. |
org.tigris.swidgets.Orientation |
getOrientation()
|
String |
getTitle()
|
void |
setOrientation(org.tigris.swidgets.Orientation o)
Set the orientation of the property panel. |
void |
setTitle(String t)
|
AbstractArgoJPanel |
spawn()
This should take its inspiration from CmdSpawn. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractArgoJPanel()
public AbstractArgoJPanel(String tag)
tag - the name
public AbstractArgoJPanel(String tag,
boolean t)
tag - The name (to be localized).t - if true, remove tab from parent JTabbedPane| Method Detail |
public org.tigris.swidgets.Orientation getOrientation()
public Object clone()
spawn() method copies the title and in
some cases also the Target.
public void setOrientation(org.tigris.swidgets.Orientation o)
setOrientation in interface org.tigris.swidgets.OrientableOrientable.setOrientation(Orientation)public String getTitle()
public void setTitle(String t)
t - The key (to be localized) of the title.public AbstractArgoJPanel spawn()
CmdSpawn.The spawned/cloned tab will be a JFrame. Currently this feature is disabled for ArgoUML, except for the find dialog. Code should behave though as if spawning might work at a later stage.
|
|||||||||||
| 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 |