org.argouml.uml.ui
Class PropPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.argouml.ui.TabSpawnable
                      extended byorg.argouml.uml.ui.PropPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.lang.Cloneable, java.util.EventListener, java.awt.image.ImageObserver, ru.novosoft.uml.MElementListener, java.awt.MenuContainer, Orientable, java.io.Serializable, TabModelTarget, TabTarget, TargetListener, UMLUserInterfaceContainer
Direct Known Subclasses:
PropPanelDiagram, PropPanelModelElement, TabDocumentation

public abstract class PropPanel
extends TabSpawnable
implements TabModelTarget, ru.novosoft.uml.MElementListener, UMLUserInterfaceContainer

This abstract class provides the basic layout and event dispatching support for all Property Panels.

The property panel is layed out as a number (specified in the constructor) of equally sized panels that split the available space. Each panel has a column of "captions" and matching column of "fields" which are laid out indepently from the other panels.

The Properties panels for UML Model Elements are structured in an inheritance hierarchy that matches the UML 1.3 metamodel.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  java.util.ResourceBundle _bundle
           
protected static javax.swing.ImageIcon _deleteIcon
           
private  javax.swing.event.EventListenerList _listenerList
           
private  ru.novosoft.uml.foundation.core.MModelElement _modelElement
           
protected static javax.swing.ImageIcon _navUpIcon
           
private  java.util.Vector _panels
           
private static Profile _profile
           
private  java.lang.Object _target
           
private  javax.swing.JLabel _titleLabel
           
protected  javax.swing.JToolBar buttonPanel
           
private  javax.swing.JPanel buttonPanelWithFlowLayout
           
private  javax.swing.JPanel captionPanel
           
private  javax.swing.JPanel center
          The metaclass/property pairs for the third party listener (if we have set one up.
private  int lastRow
           
protected  java.awt.Font smallFont
           
 
Fields inherited from class org.argouml.ui.TabSpawnable
orientation, OVERLAPP
 
Fields inherited from class javax.swing.JPanel
 
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.Container
 
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
PropPanel(java.lang.String title, javax.swing.ImageIcon icon, int panelCount)
          Deprecated. As of ArgoUml version 0.13.2 (7-Dec-2002), replaced by PropPanel(String, ImageIcon, Orientation). Use of GridBagLayout is being dropped in favour of LabelledLayout Done by Bob Tarling.
PropPanel(java.lang.String title, javax.swing.ImageIcon icon, Orientation orientation)
          Construct new PropPanel using LabelledLayout.
PropPanel(java.lang.String title, int panelCount)
          Deprecated. As of ArgoUml version 0.13.2 (7-Dec-2002), replaced by PropPanel(String, ImageIcon, Orientation) I propose to remove this by version 0.15 (Bob Tarling)
PropPanel(java.lang.String title, Orientation orientation)
          Constructs a new Proppanel without an icon.
 
Method Summary
 void addCaption(java.awt.Component component, int row, int panel, double weighty)
          Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addField(String, Component) - Labelled layout method. I propose to remove this by version 0.15 (Bob Tarling)
 void addCaption(java.lang.String label, int row, int panel, double weighty)
          Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addField(String, Component) - Labelled layout method I propose to remove this by version 0.15 (Bob Tarling)
 void addField(java.awt.Component component, int row, int panel, double weighty)
          Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addField(String, Component) - Labelled layout method. I propose to remove this by version 0.15 (Bob Tarling)
 javax.swing.JLabel addField(java.lang.String label, java.awt.Component component)
          Add a component with the specified label.
 javax.swing.JLabel addFieldAfter(java.lang.String label, java.awt.Component component, java.awt.Component afterComponent)
          Add a component with the specified label positioned after another component.
 javax.swing.JLabel addFieldBefore(java.lang.String label, java.awt.Component component, java.awt.Component beforeComponent)
          Add a component with the specified label positioned before another component.
 void addLinkField(java.awt.Component component, int row, int panel, double weighty)
          Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addLinkField(String, JComponent) - Labelled layout method. The method will be removed in release 0.15
 void addLinkField(java.lang.String label, javax.swing.JComponent component)
          Adds a component to the fields of the specified panel and sets the background and color to indicate the field is a link.
 void addMElementListener(java.lang.Object target)
          This method (and removeMElementListener) can be overriden if the prop panel wants to monitor additional objects.
protected  void addSeperator()
           
private  void fireTargetAdded(TargetEvent targetEvent)
           
private  void fireTargetRemoved(TargetEvent targetEvent)
           
private  void fireTargetSet(TargetEvent targetEvent)
           
 java.lang.String formatCollection(java.util.Iterator iter)
          Formats a collection of model elements.
 java.lang.String formatElement(ru.novosoft.uml.foundation.core.MModelElement element)
          Formats the specified model element.
 java.lang.String formatNamespace(ru.novosoft.uml.foundation.core.MNamespace namespace)
          Formats the model element as a namespace.
protected  java.lang.Object getDisplayNamespace()
          This method can be overriden in derived Panels where the appropriate namespace for display may not be the same as the namespace of the target
 ru.novosoft.uml.foundation.core.MModelElement getModelElement()
          Returns the current target for the container if the target is a MModelElement, otherwise null.
 Profile getProfile()
          Returns the current profile, may not be null.
 java.util.ResourceBundle getResourceBundle()
           
 java.lang.Object getTarget()
          Returns the current target for the container, may be null.
 boolean isNavigateBackEnabled()
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBackPossible()
 boolean isNavigateForwardEnabled()
          Deprecated. As of ArgoUml version 0.13.5, replaced by TargetManager.getInstance().navigateForwardPossible()
 boolean isRemovableElement()
          Check whether this element can be deleted.
 void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
           
 java.lang.String localize(java.lang.String key)
          Returns a localized string corresponding to the key.
 boolean navigateBack(boolean attempt)
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBackward()
 void navigateBackAction()
          Deprecated. As of ArgoUml version 0.13.5, replaced by TargetManager.navigateBackward().
 boolean navigateForward(boolean attempt)
          Deprecated. As of ArgoUml version 0.13.5, replaced by TargetManager.navigateForward()
 void navigateForwardAction()
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateForward()
 void navigateTo(java.lang.Object element)
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().setTarget(Object target).
 void propertySet(ru.novosoft.uml.MElementEvent mee)
           
 void recovered(ru.novosoft.uml.MElementEvent mee)
           
 void refresh()
          Refreshes the tab IN TOTAL
private  javax.swing.event.EventListenerList registrateTargetListeners(java.awt.Container container)
          Builds a eventlistenerlist of all targetlisteners that are part of this container and its children.
 void removed(ru.novosoft.uml.MElementEvent mee)
           
 void removeElement()
           
protected  void removeMElementListener(java.lang.Object target)
          This method (and addMElementListener) can be overriden if the prop panel wants to monitor additional objects.
 void roleAdded(ru.novosoft.uml.MElementEvent mee)
           
 void roleRemoved(ru.novosoft.uml.MElementEvent mee)
           
 void setNameEventListening(java.lang.Class[] metaclasses)
          Deprecated. As of ArgoUml version unknown(earlier than 0.13.5), replaced by UmlModelEventPump.addModelEventListener( Object , Object). since components should register themselves.
 void setOrientation(Orientation orientation)
          Set the orientation of the panel
 void setTarget(java.lang.Object t)
          Deprecated. As Of Argouml version 0.13.5, This will change visibility from release 0.16
 boolean shouldBeEnabled(java.lang.Object target)
          Returns true if the tab should be enabled with the given target
 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 org.argouml.ui.TabSpawnable
clone, getTitle, setTitle, spawn
 
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, getMinimumSize, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_target

private java.lang.Object _target

_modelElement

private ru.novosoft.uml.foundation.core.MModelElement _modelElement

_profile

private static Profile _profile

_bundle

private java.util.ResourceBundle _bundle

_panels

private java.util.Vector _panels

lastRow

private int lastRow

_listenerList

private javax.swing.event.EventListenerList _listenerList

center

private javax.swing.JPanel center
The metaclass/property pairs for the third party listener (if we have set one up. We use this when creating a new listener on target change.


buttonPanel

protected javax.swing.JToolBar buttonPanel

buttonPanelWithFlowLayout

private javax.swing.JPanel buttonPanelWithFlowLayout

_titleLabel

private javax.swing.JLabel _titleLabel

captionPanel

private javax.swing.JPanel captionPanel

_deleteIcon

protected static javax.swing.ImageIcon _deleteIcon

_navUpIcon

protected static javax.swing.ImageIcon _navUpIcon

smallFont

protected java.awt.Font smallFont
Constructor Detail

PropPanel

public PropPanel(java.lang.String title,
                 javax.swing.ImageIcon icon,
                 Orientation orientation)
Construct new PropPanel using LabelledLayout.

Parameters:
icon - The icon to display for the panel
title - The title of the panel

PropPanel

public PropPanel(java.lang.String title,
                 Orientation orientation)
Constructs a new Proppanel without an icon. If there is an icon it's updated at runtime via settarget.

Parameters:
title -
orientation -

PropPanel

public PropPanel(java.lang.String title,
                 int panelCount)
Deprecated. As of ArgoUml version 0.13.2 (7-Dec-2002), replaced by PropPanel(String, ImageIcon, Orientation) I propose to remove this by version 0.15 (Bob Tarling)

Constructs the PropPanel.

Parameters:
title - Title of panel
panelCount - number of horizontal panels

PropPanel

public PropPanel(java.lang.String title,
                 javax.swing.ImageIcon icon,
                 int panelCount)
Deprecated. As of ArgoUml version 0.13.2 (7-Dec-2002), replaced by PropPanel(String, ImageIcon, Orientation). Use of GridBagLayout is being dropped in favour of LabelledLayout Done by Bob Tarling.

Constructs the PropPanel - DO NOT USE.

Parameters:
title - Title of panel
panelCount - number of horizontal panels
Method Detail

setOrientation

public void setOrientation(Orientation orientation)
Set the orientation of the panel

Specified by:
setOrientation in interface Orientable
Overrides:
setOrientation in class TabSpawnable
Parameters:
orientation -

addField

public javax.swing.JLabel addField(java.lang.String label,
                                   java.awt.Component component)
Add a component with the specified label.

Parameters:
label - the label for the component
component - the component

addFieldAfter

public javax.swing.JLabel addFieldAfter(java.lang.String label,
                                        java.awt.Component component,
                                        java.awt.Component afterComponent)
Add a component with the specified label positioned after another component.

Parameters:
label - the label for the component
component - the component

addFieldBefore

public javax.swing.JLabel addFieldBefore(java.lang.String label,
                                         java.awt.Component component,
                                         java.awt.Component beforeComponent)
Add a component with the specified label positioned before another component.

Parameters:
label - the label for the component
component - the component
beforeComponent - the component

addLinkField

public final void addLinkField(java.lang.String label,
                               javax.swing.JComponent component)
Adds a component to the fields of the specified panel and sets the background and color to indicate the field is a link.

Parameters:
label - the required string label
component - Component to be added

localize

public final java.lang.String localize(java.lang.String key)
Description copied from interface: UMLUserInterfaceContainer
Returns a localized string corresponding to the key.

Specified by:
localize in interface UMLUserInterfaceContainer
Parameters:
key - key for resource bundle, typically english literal
Returns:
localized string for key based on system settings and configuration file

addSeperator

protected final void addSeperator()

getResourceBundle

public java.util.ResourceBundle getResourceBundle()

getProfile

public Profile getProfile()
Description copied from interface: UMLUserInterfaceContainer
Returns the current profile, may not be null.

Specified by:
getProfile in interface UMLUserInterfaceContainer

removeMElementListener

protected void removeMElementListener(java.lang.Object target)
This method (and addMElementListener) can be overriden if the prop panel wants to monitor additional objects.

Parameters:
target - target of prop panel

addMElementListener

public void addMElementListener(java.lang.Object target)
This method (and removeMElementListener) can be overriden if the prop panel wants to monitor additional objects. This method is public only since it is called from a Runnable object.

Parameters:
target - target of prop panel

setTarget

public void setTarget(java.lang.Object t)
Deprecated. As Of Argouml version 0.13.5, This will change visibility from release 0.16

Set the target to be associated with a particular property panel.

This involves resetting the third party listeners.

Specified by:
setTarget in interface TabTarget
Parameters:
t - The object to be set as a target.

registrateTargetListeners

private javax.swing.event.EventListenerList registrateTargetListeners(java.awt.Container container)
Builds a eventlistenerlist of all targetlisteners that are part of this container and its children.

Parameters:
container - the container to search for targetlisteners
Returns:
an EventListenerList with all TargetListeners on this container and its children.

getTarget

public final java.lang.Object getTarget()
Description copied from interface: UMLUserInterfaceContainer
Returns the current target for the container, may be null.

Specified by:
getTarget in interface TabTarget

getModelElement

public final ru.novosoft.uml.foundation.core.MModelElement getModelElement()
Description copied from interface: UMLUserInterfaceContainer
Returns the current target for the container if the target is a MModelElement, otherwise null.

Specified by:
getModelElement in interface UMLUserInterfaceContainer

refresh

public void refresh()
Description copied from interface: TabTarget
Refreshes the tab IN TOTAL

Specified by:
refresh in interface TabTarget

shouldBeEnabled

public boolean shouldBeEnabled(java.lang.Object target)
Description copied from interface: TabTarget
Returns true if the tab should be enabled with the given target

Specified by:
shouldBeEnabled in interface TabTarget

propertySet

public void propertySet(ru.novosoft.uml.MElementEvent mee)
Specified by:
propertySet in interface ru.novosoft.uml.MElementListener

listRoleItemSet

public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
Specified by:
listRoleItemSet in interface ru.novosoft.uml.MElementListener

recovered

public void recovered(ru.novosoft.uml.MElementEvent mee)
Specified by:
recovered in interface ru.novosoft.uml.MElementListener

removed

public void removed(ru.novosoft.uml.MElementEvent mee)
Specified by:
removed in interface ru.novosoft.uml.MElementListener

roleAdded

public void roleAdded(ru.novosoft.uml.MElementEvent mee)
Specified by:
roleAdded in interface ru.novosoft.uml.MElementListener

roleRemoved

public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
Specified by:
roleRemoved in interface ru.novosoft.uml.MElementListener

getDisplayNamespace

protected java.lang.Object getDisplayNamespace()
This method can be overriden in derived Panels where the appropriate namespace for display may not be the same as the namespace of the target


formatElement

public java.lang.String formatElement(ru.novosoft.uml.foundation.core.MModelElement element)
Description copied from interface: UMLUserInterfaceContainer
Formats the specified model element. Typically, deferred to the profile.

Specified by:
formatElement in interface UMLUserInterfaceContainer

formatNamespace

public java.lang.String formatNamespace(ru.novosoft.uml.foundation.core.MNamespace namespace)
Description copied from interface: UMLUserInterfaceContainer
Formats the model element as a namespace.

Specified by:
formatNamespace in interface UMLUserInterfaceContainer

formatCollection

public java.lang.String formatCollection(java.util.Iterator iter)
Description copied from interface: UMLUserInterfaceContainer
Formats a collection of model elements. Typically, deferred to the profile.

Specified by:
formatCollection in interface UMLUserInterfaceContainer

navigateTo

public void navigateTo(java.lang.Object element)
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().setTarget(Object target).


navigateBack

public boolean navigateBack(boolean attempt)
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBackward()


navigateBackAction

public void navigateBackAction()
Deprecated. As of ArgoUml version 0.13.5, replaced by TargetManager.navigateBackward().


navigateForward

public boolean navigateForward(boolean attempt)
Deprecated. As of ArgoUml version 0.13.5, replaced by TargetManager.navigateForward()


navigateForwardAction

public void navigateForwardAction()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateForward()


isNavigateForwardEnabled

public boolean isNavigateForwardEnabled()
Deprecated. As of ArgoUml version 0.13.5, replaced by TargetManager.getInstance().navigateForwardPossible()


isNavigateBackEnabled

public boolean isNavigateBackEnabled()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBackPossible()


setNameEventListening

public void setNameEventListening(java.lang.Class[] metaclasses)
Deprecated. As of ArgoUml version unknown(earlier than 0.13.5), replaced by UmlModelEventPump.addModelEventListener( Object , Object). since components should register themselves.

Calling this method with an array of metaclasses (for example, MClassifier.class) will result in the prop panel propagating any name changes or removals on any object that on the same event queue as the target that is assignable to one of the metaclasses.

Note. Despite the name, the old implementation tried to listen for ownedElement and baseClass events as well as name events. We incorporate all these.

Note Reworked the implementation to use the new UmlModelEventPump mechanism. In the future proppanels should register directly with UmlModelEventPump IF they are really interested in the events themselves. If components on the proppanels are interested, these components should register themselves.

Parameters:
metaclasses - The metaclass array we wish to listen to.

removeElement

public void removeElement()

isRemovableElement

public boolean isRemovableElement()
Check whether this element can be deleted. Currently it only checks whether we delete the main model. ArgoUML does not like that.

Since:
0.13.2

targetAdded

public void targetAdded(TargetEvent e)
Description copied from interface: TargetListener
Fired when a target is added to the list of targets.

Specified by:
targetAdded in interface TargetListener
Parameters:
e - The targetevent, name will be TARGET_ADDED
See Also:
TargetListener.targetAdded(TargetEvent)

targetRemoved

public void targetRemoved(TargetEvent e)
Description copied from interface: TargetListener
Fired when a target is removed from the list of targets

Specified by:
targetRemoved in interface TargetListener
Parameters:
e - The targetevent, name will be TARGET_REMOVED
See Also:
TargetListener.targetRemoved(TargetEvent)

targetSet

public void targetSet(TargetEvent e)
Description copied from interface: TargetListener
Fired when a total new set of targets is set

Specified by:
targetSet in interface TargetListener
Parameters:
e - The targetevent, name will be TARGET_SET
See Also:
TargetListener.targetSet(TargetEvent)

fireTargetSet

private void fireTargetSet(TargetEvent targetEvent)

fireTargetAdded

private void fireTargetAdded(TargetEvent targetEvent)

fireTargetRemoved

private void fireTargetRemoved(TargetEvent targetEvent)

addCaption

public void addCaption(java.awt.Component component,
                       int row,
                       int panel,
                       double weighty)
Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addField(String, Component) - Labelled layout method. I propose to remove this by version 0.15 (Bob Tarling)

Adds a component to the captions of the specified panel.

Parameters:
component - Component to be added (typically a JLabel)
row - row index, zero-based.
panel - panel index, zero-based.
weighty - specifies how to distribute extra vertical space, see GridBagConstraint for details on usage.

addCaption

public void addCaption(java.lang.String label,
                       int row,
                       int panel,
                       double weighty)
Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addField(String, Component) - Labelled layout method I propose to remove this by version 0.15 (Bob Tarling)


addField

public void addField(java.awt.Component component,
                     int row,
                     int panel,
                     double weighty)
Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addField(String, Component) - Labelled layout method. I propose to remove this by version 0.15 (Bob Tarling)

Adds a component to the fields of the specified panel.

Parameters:
component - Component to be added
row - row index, zero-based.
panel - panel index, zero-based.
weighty - specifies how to distribute extra vertical space, see GridBagConstraint for details on usage.

addLinkField

public final void addLinkField(java.awt.Component component,
                               int row,
                               int panel,
                               double weighty)
Deprecated. as of ArgoUml 0.13.5 (10-may-2003), GridBagConstraints is no longer used as a prop panel layout, replaced by addLinkField(String, JComponent) - Labelled layout method. The method will be removed in release 0.15

Adds a component to the fields of the specified panel and sets the background and color to indicate the field is a link.

Parameters:
component - Component to be added
row - row index, zero-based.
panel - panel index, zero-based.
weighty - specifies how to distribute extra vertical space, see GridBagConstraint for details on usage.


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook