org.argouml.uml.ui
Class TabProps

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.argouml.ui.TabSpawnable
                                |
                                +--org.argouml.uml.ui.TabProps
All Implemented Interfaces:
javax.accessibility.Accessible, ArgoEventListener, ArgoModuleEventListener, java.lang.Cloneable, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, NavigationListener, Orientable, java.io.Serializable, TabModelTarget
Direct Known Subclasses:
TabTable

public class TabProps
extends TabSpawnable
implements TabModelTarget, NavigationListener, ArgoModuleEventListener

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  javax.swing.JPanel _blankPanel
           
protected  javax.swing.JPanel _lastPanel
           
protected  java.lang.String _panelClassBaseName
           
protected  java.util.Hashtable _panels
           
protected  boolean _shouldBeEnabled
           
protected  java.lang.Object _target
           
protected static org.apache.log4j.Category cat
           
 
Fields inherited from class org.argouml.ui.TabSpawnable
orientation, OVERLAPP
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TabProps()
           
TabProps(java.lang.String tabName, java.lang.String panelClassBase)
           
 
Method Summary
 void addNavigationListener(NavigationListener navListener)
           
 void addPanel(java.lang.Class c, PropPanel p)
          Adds a property panel to the internal list.
 void finalize()
           
 TabModelTarget findPanelFor(java.lang.Class targetClass)
           
protected  java.lang.String getClassBaseName()
           
 java.lang.Object getTarget()
           
protected  void initPanels()
          Preload property panels that are commonly used within the first few seconds after the tool is launched.
 boolean isNavigateBackEnabled()
          Returns true if this listener has a target for a back navigation.
 boolean isNavigateForwardEnabled()
          Returns true if this listener has a target for a back navigation.
 void moduleDisabled(ArgoModuleEvent event)
          Invoked when a module has been disabled.
 void moduleEnabled(ArgoModuleEvent event)
          Invoked when a module has been enabled.
 void moduleLoaded(ArgoModuleEvent event)
          Invoked when a module has been loaded.
 void moduleUnloaded(ArgoModuleEvent event)
          Invoked when a module has been unloaded.
 boolean navigateBack(boolean attempt)
          Called to navigate to previous selection returns true if navigation performed
 boolean navigateForward(boolean attempt)
          Called to navigate to next selection returns true if navigation performed
 void navigateTo(java.lang.Object element)
          Called by a user interface element when a request to navigate to a model element has been received.
 void open(java.lang.Object element)
          Called by a user interface element when a request to open a model element in a new window has been recieved.
 java.lang.Class panelClassFor(java.lang.Class targetClass)
           
 void refresh()
           
 void removeNavigationListener(NavigationListener navListener)
           
 void setOrientation(Orientation orientation)
           
 void setTarget(java.lang.Object t)
           
 boolean shouldBeEnabled()
           
 
Methods inherited from class org.argouml.ui.TabSpawnable
clone, getTitle, setTitle, spawn
 
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, getMinimumSize, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat

_target

protected java.lang.Object _target

_shouldBeEnabled

protected boolean _shouldBeEnabled

_blankPanel

protected javax.swing.JPanel _blankPanel

_panels

protected java.util.Hashtable _panels

_lastPanel

protected javax.swing.JPanel _lastPanel

_panelClassBaseName

protected java.lang.String _panelClassBaseName
Constructor Detail

TabProps

public TabProps()

TabProps

public TabProps(java.lang.String tabName,
                java.lang.String panelClassBase)
Method Detail

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

setOrientation

public void setOrientation(Orientation orientation)
Overrides:
setOrientation in class TabSpawnable

initPanels

protected void initPanels()
Preload property panels that are commonly used within the first few seconds after the tool is launched.

addPanel

public void addPanel(java.lang.Class c,
                     PropPanel p)
Adds a property panel to the internal list. This allows a plugin to add a register a new property panel an run-time. This property panel will then be displayed in the detatils pane whenever an element of the given metaclass is selected.
Parameters:
c - the metaclass whose details show be displayed in the property panel p
p - an instance of the property panel for the metaclass m

addNavigationListener

public void addNavigationListener(NavigationListener navListener)

removeNavigationListener

public void removeNavigationListener(NavigationListener navListener)

navigateTo

public void navigateTo(java.lang.Object element)
Called by a user interface element when a request to navigate to a model element has been received.
Specified by:
navigateTo in interface NavigationListener

open

public void open(java.lang.Object element)
Called by a user interface element when a request to open a model element in a new window has been recieved.
Specified by:
open in interface NavigationListener

navigateBack

public boolean navigateBack(boolean attempt)
Description copied from interface: NavigationListener
Called to navigate to previous selection returns true if navigation performed
Specified by:
navigateBack in interface NavigationListener
Following copied from interface: org.argouml.ui.NavigationListener
Parameters:
attempt - false if navigation accomplished by earlier listener
Returns:
true if navigation performed

navigateForward

public boolean navigateForward(boolean attempt)
Description copied from interface: NavigationListener
Called to navigate to next selection returns true if navigation performed
Specified by:
navigateForward in interface NavigationListener
Following copied from interface: org.argouml.ui.NavigationListener
Parameters:
attempt - false if navigation accomplished by earlier listener
Returns:
true if navigation performed

isNavigateForwardEnabled

public boolean isNavigateForwardEnabled()
Description copied from interface: NavigationListener
Returns true if this listener has a target for a back navigation. Only one listener needs to return true for the back button to be enabled.
Specified by:
isNavigateForwardEnabled in interface NavigationListener

isNavigateBackEnabled

public boolean isNavigateBackEnabled()
Description copied from interface: NavigationListener
Returns true if this listener has a target for a back navigation. Only one listener needs to return true for the back button to be enabled.
Specified by:
isNavigateBackEnabled in interface NavigationListener

setTarget

public void setTarget(java.lang.Object t)
Specified by:
setTarget in interface TabModelTarget

refresh

public void refresh()
Specified by:
refresh in interface TabModelTarget

findPanelFor

public TabModelTarget findPanelFor(java.lang.Class targetClass)

panelClassFor

public java.lang.Class panelClassFor(java.lang.Class targetClass)

getClassBaseName

protected java.lang.String getClassBaseName()

getTarget

public java.lang.Object getTarget()
Specified by:
getTarget in interface TabModelTarget

shouldBeEnabled

public boolean shouldBeEnabled()
Specified by:
shouldBeEnabled in interface TabModelTarget

moduleLoaded

public void moduleLoaded(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been loaded.
Specified by:
moduleLoaded in interface ArgoModuleEventListener

moduleUnloaded

public void moduleUnloaded(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been unloaded.
Specified by:
moduleUnloaded in interface ArgoModuleEventListener

moduleEnabled

public void moduleEnabled(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been enabled.
Specified by:
moduleEnabled in interface ArgoModuleEventListener

moduleDisabled

public void moduleDisabled(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been disabled.
Specified by:
moduleDisabled in interface ArgoModuleEventListener


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