|
|||||||||||
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.DetailsPane
The lower-right pane of the main ArgoUML window, which shows the details of a selected model element.
This panel has several tabs that show details of the selected ToDoItem, or the selected model element in the Explorer (NavigatorPane), or the MultiEditorPane.
There are requests to have the cursor automatically be set to the primary field.
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 Object |
currentTarget
The current target. |
private int |
lastNonNullTab
index of the selected tab in the JTabbedPane. |
private Icon |
leftArrowIcon
Graphic that goes on the tab label. |
private EventListenerList |
listenerList
The list with targetlisteners, this are the property panels managed by TabProps It should only contain one listener at a time. |
private static Logger |
LOG
Logger. |
private Object |
selectedTodoItem
The currently selected todo item. |
private Vector |
tabPanelList
a list of all the tabs, which are JPanels, in the JTabbedPane tabs. |
private JTabbedPane |
topLevelTabbedPane
The top level pane, which is a tabbed pane. |
private Icon |
upArrowIcon
Graphic that goes on the tab label. |
Fields inherited from class javax.swing.JPanel |
|
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.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 | |
DetailsPane(String pane,
org.tigris.swidgets.Orientation orientation)
Gets all of the tabPanels from the ConfigLoader, then adds them to the JTabbedPane. |
Method Summary | |
private void |
addTargetListener(TargetListener listener)
Adds a listener. |
void |
addToPropTab(Class c,
PropPanel p)
Helper method to add a Property panel for a given class. |
private void |
enableTabs(Object target)
Enables/disables the tabs on the tabbed card. |
private void |
fireTargetAdded(TargetEvent targetEvent)
|
private void |
fireTargetRemoved(TargetEvent targetEvent)
|
private void |
fireTargetSet(TargetEvent targetEvent)
|
int |
getIndexOfNamedTab(String tabName)
Get the index of the tab with the given name. |
Dimension |
getMinimumSize()
|
JPanel |
getNamedTab(String tabName)
Get the JPanel of the tab with the given name. |
int |
getQuadrant()
This shall return a corner indentification. |
TabSpawnable |
getTab(Class tabClass)
Returns the tab instance of the specified class. |
int |
getTabCount()
Get the number of tabs. |
TabProps |
getTabProps()
returns the Property panel in the Details Pane. |
JTabbedPane |
getTabs()
Returns the JTabbedPane that contains all details panels. |
Object |
getTarget()
Returns the current model target. |
void |
mouseClicked(MouseEvent me)
if(the mouse click is not in the bounds of the tabbed panel) then call mySingleClick() or myDoubleClick() |
void |
mouseEntered(MouseEvent me)
empty, no action taken. |
void |
mouseExited(MouseEvent me)
empty, no action taken. |
void |
mousePressed(MouseEvent me)
empty, no action taken. |
void |
mouseReleased(MouseEvent me)
empty, no action taken. |
void |
myDoubleClick(int tab)
Spawns a new tab. |
void |
mySingleClick(int tab)
no action currently executed here. |
private void |
removeTargetListener(TargetListener listener)
Removes a target listener. |
boolean |
selectTabNamed(String tabName)
Selects a tab by given name. |
void |
setOrientation(org.tigris.swidgets.Orientation orientation)
Set the orientation of this details pane. |
private void |
setTarget(Object target)
Sets the target of the Details pane to either be a selected model element or the owner(model element) of a selected fig. |
boolean |
setToDoItem(Object item)
Selects the to do tab, and sets the target of that tab. |
void |
stateChanged(ChangeEvent e)
Reacts to a change in the selected tab by calling refresh() for TabToDoTarget's & setTarget on a TabModelTarget or TabFigTarget instance old notes: called when the user selects a new 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 selectedTodoItem
private JTabbedPane topLevelTabbedPane
private Object currentTarget
private Vector tabPanelList
private int lastNonNullTab
private EventListenerList listenerList
private Icon upArrowIcon
private Icon leftArrowIcon
Constructor Detail |
public DetailsPane(String pane, org.tigris.swidgets.Orientation orientation)
Sets the target to null.
Registers listeners.
pane
- is probably the name of the pane TODO: verify this!orientation
- is the orientation.Method Detail |
private void addTargetListener(TargetListener listener)
listener
- the listener to addprivate void removeTargetListener(TargetListener listener)
listener
- the listener to removepublic JTabbedPane getTabs()
public boolean setToDoItem(Object item)
item
- the selected todo item
private void setTarget(Object target)
Decides which panels to enable.
public Object getTarget()
public Dimension getMinimumSize()
Component.getMinimumSize()
public int getIndexOfNamedTab(String tabName)
tabName
- the name of the required tab
public JPanel getNamedTab(String tabName)
tabName
- the name of the required tab
public int getTabCount()
public boolean selectTabNamed(String tabName)
tabName
- the given name
public void addToPropTab(Class c, PropPanel p)
c
- the given classp
- the given property panelpublic TabProps getTabProps()
public TabSpawnable getTab(Class tabClass)
tabClass
- the given class
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)
public void mySingleClick(int tab)
tab
- the index of the clicked tabpublic void myDoubleClick(int tab)
tab
- the index of the clicked tabpublic 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(java.awt.event.MouseEvent)
public int getQuadrant()
QuadrantPanel
getQuadrant
in interface QuadrantPanel
QuadrantPanel.getQuadrant()
public void setOrientation(org.tigris.swidgets.Orientation orientation)
setOrientation
in interface org.tigris.swidgets.Orientable
orientation
- the required orientationpublic void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(TargetEvent)
public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(TargetEvent)
public void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SETTargetListener.targetSet(TargetEvent)
private void enableTabs(Object target)
private void fireTargetSet(TargetEvent targetEvent)
private void fireTargetAdded(TargetEvent targetEvent)
private void fireTargetRemoved(TargetEvent targetEvent)
|
|||||||||||
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 |