org.argouml.ui
Class DetailsPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.argouml.ui.DetailsPane
All Implemented Interfaces:
javax.accessibility.Accessible, javax.swing.event.ChangeListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, Orientable, QuadrantPanel, java.io.Serializable

public class DetailsPane
extends javax.swing.JPanel
implements javax.swing.event.ChangeListener, java.awt.event.MouseListener, QuadrantPanel, Orientable

The lower-right pane of the main Argo/UML window. 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.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  org.tigris.gef.presentation.Fig _figTarget
          Target is the currently selected object from the UML MModel, usually selected from a Fig in the diagram or from the navigation panel.
protected  java.lang.Object _item
           
protected  int _lastNonNullTab
           
protected  javax.swing.Icon _leftArrowIcon
           
protected  java.lang.Object _modelTarget
           
protected  java.util.Vector _tabPanels
           
protected  javax.swing.JTabbedPane _tabs
           
protected  javax.swing.Icon _upArrowIcon
           
protected static org.apache.log4j.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)
           
 
Method Summary
 void addNavigationListener(NavigationListener navListener)
           
 void addToPropTab(java.lang.Class c, PropPanel p)
           
 int getIndexOfNamedTab(java.lang.String tabName)
           
 java.awt.Dimension getMinimumSize()
           
 javax.swing.JPanel getNamedTab(java.lang.String tabName)
          Get the JPanel of the tab with the given name
 int getQuadrant()
           
 int getTabCount()
          Get the number of tab pages
 TabProps getTabProps()
           
 javax.swing.JTabbedPane getTabs()
           
 java.lang.Object getTarget()
           
 void mouseClicked(java.awt.event.MouseEvent me)
           
 void mouseEntered(java.awt.event.MouseEvent me)
           
 void mouseExited(java.awt.event.MouseEvent me)
           
 void mousePressed(java.awt.event.MouseEvent me)
           
 void mouseReleased(java.awt.event.MouseEvent me)
           
 void myDoubleClick(int tab)
          called when the user clicks twice on a tab.
 void mySingleClick(int tab)
          called when the user clicks once on a tab.
 void removeNavigationListener(NavigationListener navListener)
           
 boolean selectTabNamed(java.lang.String tabName)
           
 void setOrientation(Orientation orientation)
          Set the orientation of this details pane;
 void setTarget(java.lang.Object target)
           
 boolean setToDoItem(java.lang.Object item)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
          called when the user selects a new tab, by clicking or otherwise.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, 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, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat

WIDTH

public static int WIDTH

HEIGHT

public static int HEIGHT

INITIAL_WIDTH

public static int INITIAL_WIDTH

INITIAL_HEIGHT

public static int INITIAL_HEIGHT

_figTarget

protected org.tigris.gef.presentation.Fig _figTarget
Target is the currently selected object from the UML MModel, usually selected from a Fig in the diagram or from the navigation panel.

_modelTarget

protected java.lang.Object _modelTarget

_item

protected java.lang.Object _item

_tabs

protected javax.swing.JTabbedPane _tabs

_tabPanels

protected java.util.Vector _tabPanels

_lastNonNullTab

protected int _lastNonNullTab

_upArrowIcon

protected javax.swing.Icon _upArrowIcon

_leftArrowIcon

protected javax.swing.Icon _leftArrowIcon
Constructor Detail

DetailsPane

public DetailsPane(java.lang.String pane,
                   Orientation orientation)
Method Detail

getTabs

public javax.swing.JTabbedPane getTabs()

setToDoItem

public boolean setToDoItem(java.lang.Object item)

setTarget

public void setTarget(java.lang.Object target)

getTarget

public java.lang.Object getTarget()

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class javax.swing.JComponent

getIndexOfNamedTab

public int getIndexOfNamedTab(java.lang.String tabName)

getNamedTab

public javax.swing.JPanel getNamedTab(java.lang.String tabName)
Get the JPanel of the tab with the given name
Parameters:
tabName - the name of the required tab
Returns:
the tab of the given name

getTabCount

public int getTabCount()
Get the number of tab pages
Returns:
the number of tab pages

selectTabNamed

public boolean selectTabNamed(java.lang.String tabName)

addToPropTab

public void addToPropTab(java.lang.Class c,
                         PropPanel p)

getTabProps

public TabProps getTabProps()

addNavigationListener

public void addNavigationListener(NavigationListener navListener)

removeNavigationListener

public void removeNavigationListener(NavigationListener navListener)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
called when the user selects a new tab, by clicking or otherwise.
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

mySingleClick

public void mySingleClick(int tab)
called when the user clicks once on a tab.

myDoubleClick

public void myDoubleClick(int tab)
called when the user clicks twice on a tab.

mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent me)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent me)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent me)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

getQuadrant

public int getQuadrant()
Specified by:
getQuadrant in interface QuadrantPanel

setOrientation

public void setOrientation(Orientation orientation)
Set the orientation of this details pane;
Specified by:
setOrientation in interface Orientable
Parameters:
the - required orientation


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook