|
|||||||||||
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.MultiEditorPane
The upper right pane in the ArgoUML user interface. It may have several tabs with different kinds of "major" editors that allow the user to edit whatever is selected in the NavigatorPane. Currently, there is only the diagram tab.
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 | |
private org.tigris.gef.base.Editor |
ed
|
private Component |
lastTab
|
private static Logger |
LOG
logger |
private Vector |
tabPanels
|
private JTabbedPane |
tabs
|
private Object |
target
|
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.QuadrantPanel |
Q_BOTTOM, Q_BOTTOM_LEFT, Q_BOTTOM_RIGHT, Q_LEFT, Q_RIGHT, Q_TOP, Q_TOP_LEFT, Q_TOP_RIGHT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
MultiEditorPane()
Constructs the MultiEditorPane. |
Method Summary | |
private void |
enableTabs(Object t)
Enables the tabs on the MultiEditorPane depending on the result of its shouldBeEnabled method. |
int |
getIndexOfNamedTab(String tabName)
Returns the index of a tab with a certain name in the JTabbedPane which is the component shown by the multieditorpane. |
Dimension |
getMinimumSize()
|
Dimension |
getPreferredSize()
|
int |
getQuadrant()
This shall return a corner indentification. |
protected JTabbedPane |
getTabs()
|
void |
mouseClicked(MouseEvent me)
Catches a mouseevent and calls mySingleClick and myDoubleClick if a tab is clicked which is selected. |
void |
mouseEntered(MouseEvent me)
|
void |
mouseExited(MouseEvent me)
|
void |
mousePressed(MouseEvent me)
|
void |
mouseReleased(MouseEvent me)
|
void |
myDoubleClick(int tab)
When the user double clicks on a tab, this tab is spawned by this method if it is selected. |
void |
mySingleClick(int tab)
Called when the user clicks once on a tab. |
void |
selectNextTab()
Selects the next tab in the JTabbedPane. |
void |
selectTabNamed(String tabName)
Selects a certain tab and shows it. |
private void |
setTarget(Object t)
Sets the target of the multieditorpane. |
void |
stateChanged(ChangeEvent e)
Called when the user selects a tab, by clicking or otherwise. |
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 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 |
Field Detail |
private static final Logger LOG
private Object target
private JTabbedPane tabs
private org.tigris.gef.base.Editor ed
private Vector tabPanels
private Component lastTab
Constructor Detail |
public MultiEditorPane()
Method Detail |
public Dimension getPreferredSize()
Component.getPreferredSize()
public Dimension getMinimumSize()
Component.getMinimumSize()
private void setTarget(Object t)
t
- the targetprivate void enableTabs(Object t)
t
- The target for which the shouldBeEnabled test
should hold true.public int getIndexOfNamedTab(String tabName)
tabName
- the given tab name
public void selectTabNamed(String tabName)
tabName
- the name of the tabpublic void selectNextTab()
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)
public void mousePressed(MouseEvent me)
mousePressed
in interface MouseListener
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseReleased(MouseEvent me)
mouseReleased
in interface MouseListener
MouseListener.mouseReleased(java.awt.event.MouseEvent)
public void mouseEntered(MouseEvent me)
mouseEntered
in interface MouseListener
MouseListener.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(MouseEvent me)
mouseExited
in interface MouseListener
MouseListener.mouseExited(java.awt.event.MouseEvent)
public void mouseClicked(MouseEvent me)
mouseClicked
in interface MouseListener
MouseListener.mouseClicked(MouseEvent)
public void mySingleClick(int tab)
tab
- the tab that was clicked onpublic void myDoubleClick(int tab)
tab
- The index of the tab.public int getQuadrant()
QuadrantPanel
getQuadrant
in interface QuadrantPanel
QuadrantPanel.getQuadrant()
public void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(
org.argouml.ui.targetmanager.TargetEvent)
public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(
org.argouml.ui.targetmanager.TargetEvent)
public void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SETTargetListener.targetSet(
org.argouml.ui.targetmanager.TargetEvent)
protected JTabbedPane getTabs()
|
|||||||||||
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 |