uci.uml.ui
Class DetailsPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--uci.uml.ui.DetailsPane

public class DetailsPane
extends JPanel
implements ChangeListener, MouseListener

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.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
protected  Fig _figTarget
          Target is the currently selected object from the UML Model, usually selected from a Fig in the diagram or from the navigation panel.
protected  Object _item
           
protected  int _lastNonNullTab
           
protected  Icon _leftArrowIcon
           
protected  Object _modelTarget
           
protected  Vector _tabPanels
           
protected  JTabbedPane _tabs
           
protected  Icon _upArrowIcon
           
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
 
Constructor Summary
DetailsPane(StatusBar sb)
           
 
Method Summary
 int getIndexOfNamedTab(String tabName)
           
 Dimension getMinimumSize()
           
 Dimension getPreferredSize()
           
 JTabbedPane getTabs()
           
 Object getTarget()
           
 void mouseClicked(MouseEvent me)
           
 void mouseEntered(MouseEvent me)
           
 void mouseExited(MouseEvent me)
           
 void mousePressed(MouseEvent me)
           
 void mouseReleased(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 selectNextTab()
           
 void selectTabNamed(String tabName)
           
 void setTarget(Object target)
           
 void setToDoItem(Object item)
           
 void stateChanged(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, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, 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, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, 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, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, 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

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 Fig _figTarget
Target is the currently selected object from the UML Model, usually selected from a Fig in the diagram or from the navigation panel.

_modelTarget

protected Object _modelTarget

_item

protected Object _item

_tabs

protected JTabbedPane _tabs

_tabPanels

protected Vector _tabPanels

_lastNonNullTab

protected int _lastNonNullTab

_upArrowIcon

protected Icon _upArrowIcon

_leftArrowIcon

protected Icon _leftArrowIcon
Constructor Detail

DetailsPane

public DetailsPane(StatusBar sb)
Method Detail

getTabs

public JTabbedPane getTabs()

setToDoItem

public void setToDoItem(Object item)

setTarget

public void setTarget(Object target)

getTarget

public Object getTarget()

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent

getPreferredSize

public Dimension getPreferredSize()
Overrides:
getPreferredSize in class JComponent

getIndexOfNamedTab

public int getIndexOfNamedTab(String tabName)

selectTabNamed

public void selectTabNamed(String tabName)

selectNextTab

public void selectNextTab()

stateChanged

public void stateChanged(ChangeEvent e)
called when the user selects a new tab, by clicking or otherwise.
Specified by:
stateChanged in interface 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(MouseEvent me)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent me)
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent me)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent me)
Specified by:
mouseExited in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent me)
Specified by:
mouseClicked in interface MouseListener