|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--org.argouml.ui.DetailsPane
The lower-right pane of the main Argo/UML 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 NavigationPane, or the MultiEditorPane. There are requests to have the cursor automatically be set to the primary field. $Id: DetailsPane.java,v 1.32 2003/06/30 18:00:23 linus Exp $
| Field Summary | |
|---|---|
protected java.lang.Object |
_item
The currently selected todo item. |
protected int |
_lastNonNullTab
index of the selected tab in the JTabbedPane. |
protected javax.swing.Icon |
_leftArrowIcon
graphic that goes on the tab label |
protected java.util.Vector |
_tabPanels
a list of all the tabs, which are JPanels, in the JTabbedPane _tabs. |
protected javax.swing.JTabbedPane |
_tabs
The top level pane, which is a tabbed pane. |
protected javax.swing.Icon |
_upArrowIcon
graphic that goes on the tab label |
protected static Category |
cat
|
static int |
HEIGHT
|
static int |
INITIAL_HEIGHT
|
static int |
INITIAL_WIDTH
|
static int |
WIDTH
|
| 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 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, PROPERTIES, SOMEBITS |
| Constructor Summary | |
|---|---|
DetailsPane(java.lang.String pane,
Orientation orientation)
Gets all of the _tabPanels from the ConfigLoader, then adds them to the JTabbedPane. |
|
| Method Summary | |
|---|---|
void |
addToPropTab(java.lang.Class c,
PropPanel p)
Heper method to add a Property panel for a given class. |
int |
getIndexOfNamedTab(java.lang.String tabName)
Get the index of the tab with the given name |
java.awt.Dimension |
getMinimumSize()
|
javax.swing.JPanel |
getNamedTab(java.lang.String tabName)
Get the JPanel of the tab with the given name |
int |
getQuadrant()
|
TabSpawnable |
getTab(java.lang.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. |
javax.swing.JTabbedPane |
getTabs()
returns the JTabbedPane that contains all details panels. |
java.lang.Object |
getTarget()
Returns the current model target. |
void |
mouseClicked(java.awt.event.MouseEvent me)
if(the mouse click is not in the bounds of the tabbed panel) then call mySingleClick() or myDoubleClick() |
void |
mouseEntered(java.awt.event.MouseEvent me)
empty, no action taken. |
void |
mouseExited(java.awt.event.MouseEvent me)
empty, no action taken. |
void |
mousePressed(java.awt.event.MouseEvent me)
empty, no action taken. |
void |
mouseReleased(java.awt.event.MouseEvent me)
empty, no action taken. |
void |
myDoubleClick(int tab)
Spawns a new tab. |
void |
mySingleClick(int tab)
no action currently executed here. |
boolean |
selectTabNamed(java.lang.String tabName)
|
void |
setOrientation(Orientation orientation)
Set the orientation of this details pane; |
void |
setTarget(java.lang.Object target)
Deprecated. As of ArgoUml version 0.13.5, replaced by TargetListener,
will become non-public in
the future |
boolean |
setToDoItem(java.lang.Object item)
selects the to do tab, and sets the target of that tab. |
void |
stateChanged(javax.swing.event.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 javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static Category cat
public static int WIDTH
public static int HEIGHT
public static int INITIAL_WIDTH
public static int INITIAL_HEIGHT
protected java.lang.Object _item
protected javax.swing.JTabbedPane _tabs
protected java.util.Vector _tabPanels
protected int _lastNonNullTab
protected javax.swing.Icon _upArrowIcon
protected javax.swing.Icon _leftArrowIcon
| Constructor Detail |
public DetailsPane(java.lang.String pane,
Orientation orientation)
| Method Detail |
public javax.swing.JTabbedPane getTabs()
public boolean setToDoItem(java.lang.Object item)
public void setTarget(java.lang.Object target)
TargetListener,
will become non-public in
the future
Decides which panels to enable.
public java.lang.Object getTarget()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic int getIndexOfNamedTab(java.lang.String tabName)
tabName - the name of the required tab
public javax.swing.JPanel getNamedTab(java.lang.String tabName)
tabName - the name of the required tab
public int getTabCount()
public boolean selectTabNamed(java.lang.String tabName)
public void addToPropTab(java.lang.Class c,
PropPanel p)
public TabProps getTabProps()
public TabSpawnable getTab(java.lang.Class tabClass)
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic void mySingleClick(int tab)
public void myDoubleClick(int tab)
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent me)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent me)
mouseClicked in interface java.awt.event.MouseListenerpublic int getQuadrant()
getQuadrant in interface QuadrantPanelpublic void setOrientation(Orientation orientation)
setOrientation in interface Orientablepublic 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-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |