de.uni_paderborn.fujaba.gui
Class PEActLink

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended byde.uni_paderborn.fujaba.gui.BasicPropertyEditor
                          extended byde.uni_paderborn.fujaba.gui.PropertyEditor
                              extended byde.uni_paderborn.fujaba.gui.PEActLink
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class PEActLink
extends PropertyEditor

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.93 $
Author:
$Author: trinet $
See Also:
Serialized Form

Nested Class Summary
(package private)  class PEActLink.MyCellRenderer
          This class renders the content of containerComboBox in human readable format
(package private)  class PEActLink.PEObjListEntry
          Encapsulates UMLObjects only.
(package private)  class PEActLink.PERolePanelItemListener
          Listener class for recalculating assocs if other items are selected
(package private)  class PEActLink.PESelectionListener
          No comment provided by developer, please add a comment to improve documentation.
 
Nested classes inherited from class de.uni_paderborn.fujaba.gui.BasicPropertyEditor
BasicPropertyEditor.ParseException
 
Nested classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
static java.lang.String AnyElement
          Static String for PERadioGroup "multiLinkRadioGoup"
private  PECheck assertion
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String AssertLink
          No comment provided by developer, please add a comment to improve documentation.
private  PEListIncr associations
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String ChildElement
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JComboBox containerComboBox
          Contains the possible containers for sorted links (Multilinks)
static java.lang.String CreateLink
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String DeleteLink
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String FirstElement
          Static String for PERadioGroup "multiLinkRadioGoup"
static java.lang.String IDRef
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String LastElement
          Static String for PERadioGroup "multiLinkRadioGoup"
private  PERadioGroup modifier
          No comment provided by developer, please add a comment to improve documentation.
private  PERadioGroup multiLinkRadioGoup
          Contains the radio group to control sorted links (Multilinks) on sorted assocs
private  PETextField name
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String NegLink
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String NoneLink
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String NullLink
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String OptLink
          No comment provided by developer, please add a comment to improve documentation.
private  PETextField pathExpr
          No comment provided by developer, please add a comment to improve documentation.
private  PETextField range
          No comment provided by developer, please add a comment to improve documentation.
private  PERolePanel rolePanel
          No comment provided by developer, please add a comment to improve documentation.
private  UMLIncrement second
          No comment provided by developer, please add a comment to improve documentation.
private  PECheck set
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String TotalityLink
          No comment provided by developer, please add a comment to improve documentation.
private  PERadioGroup type
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.gui.PropertyEditor
 
Fields inherited from class de.uni_paderborn.fujaba.gui.BasicPropertyEditor
asgElement, readOnly
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.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 javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PEActLink(javax.swing.JFrame frame)
          Constructor for class PEActLink
 
Method Summary
protected  void additionalProperties(PEEditPanel panel)
          No comment provided by developer, please add a comment to improve documentation.
 boolean buttonActionPerformed(java.lang.String buttonIdentifier, java.awt.event.ActionEvent e)
          Overwrites buttonActionPerformed from PEBasicPropertyEditor
protected  void cancel()
          No comment provided by developer, please add a comment to improve documentation.
private  boolean checkMultiLinkMode(UMLAssoc assoc)
          No comment provided by developer, please add a comment to improve documentation.
private  UMLAssoc createAssocOnTheFly(UMLObject sourceObj, UMLObject targetObj, java.lang.String name)
           
private  void fillAssociations(UMLLink link)
          Fills the list of associations.
private  void fillAssociations(UMLObject srcObj, UMLObject tgtObj)
          Fills the list of associations.
private  void fillAssocs(de.upb.tools.fca.FTreeSet intersection, UMLClass class1, UMLClass class2)
          Adds all associations between two classes to the list of associations.
private  void fillContainerComboBox(UMLAssoc assoc)
          No comment provided by developer, please add a comment to improve documentation.
private  void fillRolePanel(UMLObject sourceObj, UMLObject targetObj, UMLDiagram diag)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String getPropertyName()
          Get the propertyName attribute of the PEActLink object
protected  void parse()
          No comment provided by developer, please add a comment to improve documentation.
 void rolePanelItemStateChanged(java.awt.event.ItemEvent e)
          Method is called if the selection in the role panel has been changed.
 void selectionChanged()
          No comment provided by developer, please add a comment to improve documentation.
 void setIncrement(UMLIncrement incr, UMLIncrement addIncr)
          Sets the increment attribute of the PEActLink object
protected  void unparse()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.gui.PropertyEditor
getClassIncrement, setIncrement
 
Methods inherited from class de.uni_paderborn.fujaba.gui.BasicPropertyEditor
additionalButtons, buttonAbort_actionPerformed, buttonOK_actionPerformed, centerDialog, focusGained, focusLost, getFocusAdapter, getFrame, getIncrement, initPE, isReadOnly, setFrame, setIncrementWithoutParse, setPanel, setReadOnly, setStatus, showCentered, showLarge
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NullLink

public static final java.lang.String NullLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

NegLink

public static final java.lang.String NegLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

OptLink

public static final java.lang.String OptLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

NoneLink

public static final java.lang.String NoneLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

DeleteLink

public static final java.lang.String DeleteLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

CreateLink

public static final java.lang.String CreateLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

AnyElement

public static final java.lang.String AnyElement
Static String for PERadioGroup "multiLinkRadioGoup"

See Also:
Constant Field Values

FirstElement

public static final java.lang.String FirstElement
Static String for PERadioGroup "multiLinkRadioGoup"

See Also:
Constant Field Values

LastElement

public static final java.lang.String LastElement
Static String for PERadioGroup "multiLinkRadioGoup"

See Also:
Constant Field Values

TotalityLink

public static final java.lang.String TotalityLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

AssertLink

public static final java.lang.String AssertLink
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

ChildElement

public static final java.lang.String ChildElement
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

IDRef

public static final java.lang.String IDRef
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

second

private UMLIncrement second
No comment provided by developer, please add a comment to improve documentation.


rolePanel

private PERolePanel rolePanel
No comment provided by developer, please add a comment to improve documentation.


name

private PETextField name
No comment provided by developer, please add a comment to improve documentation.


associations

private PEListIncr associations
No comment provided by developer, please add a comment to improve documentation.


range

private PETextField range
No comment provided by developer, please add a comment to improve documentation.


type

private PERadioGroup type
No comment provided by developer, please add a comment to improve documentation.


multiLinkRadioGoup

private PERadioGroup multiLinkRadioGoup
Contains the radio group to control sorted links (Multilinks) on sorted assocs


containerComboBox

private javax.swing.JComboBox containerComboBox
Contains the possible containers for sorted links (Multilinks)


modifier

private PERadioGroup modifier
No comment provided by developer, please add a comment to improve documentation.


set

private PECheck set
No comment provided by developer, please add a comment to improve documentation.


assertion

private PECheck assertion
No comment provided by developer, please add a comment to improve documentation.


pathExpr

private PETextField pathExpr
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

PEActLink

public PEActLink(javax.swing.JFrame frame)
Constructor for class PEActLink

Parameters:
frame - No description provided
Method Detail

additionalProperties

protected void additionalProperties(PEEditPanel panel)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
additionalProperties in class BasicPropertyEditor
Parameters:
panel - No description provided

setIncrement

public void setIncrement(UMLIncrement incr,
                         UMLIncrement addIncr)
Sets the increment attribute of the PEActLink object

Parameters:
incr - The new increment value
addIncr - The new increment value

rolePanelItemStateChanged

public void rolePanelItemStateChanged(java.awt.event.ItemEvent e)
Method is called if the selection in the role panel has been changed.

Parameters:
e - No description provided

getPropertyName

public java.lang.String getPropertyName()
Get the propertyName attribute of the PEActLink object

Overrides:
getPropertyName in class BasicPropertyEditor
Returns:
The propertyName value

checkMultiLinkMode

private boolean checkMultiLinkMode(UMLAssoc assoc)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
assoc - No description provided
Returns:
No description provided

fillContainerComboBox

private void fillContainerComboBox(UMLAssoc assoc)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
assoc - No description provided

fillAssocs

private void fillAssocs(de.upb.tools.fca.FTreeSet intersection,
                        UMLClass class1,
                        UMLClass class2)
Adds all associations between two classes to the list of associations. Inherited assocs will be also considered.

Parameters:
class1 - the first class.
class2 - the second class.
intersection - No description provided

fillAssociations

private void fillAssociations(UMLLink link)
Fills the list of associations. Only those assocs, which are in the list, can be selected to create a link between to classes.

Parameters:
link - No description provided

fillAssociations

private void fillAssociations(UMLObject srcObj,
                              UMLObject tgtObj)
Fills the list of associations. Only those assocs, which are in the list, can be selected to create a link between to classes.

Parameters:
srcObj - No description provided
tgtObj - No description provided

fillRolePanel

private void fillRolePanel(UMLObject sourceObj,
                           UMLObject targetObj,
                           UMLDiagram diag)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
sourceObj - No description provided
targetObj - No description provided
diag - No description provided

unparse

protected void unparse()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
unparse in class BasicPropertyEditor

parse

protected void parse()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
parse in class BasicPropertyEditor

createAssocOnTheFly

private UMLAssoc createAssocOnTheFly(UMLObject sourceObj,
                                     UMLObject targetObj,
                                     java.lang.String name)
Parameters:
sourceObj -
targetObj -
name - No description provided
Returns:
No description provided

cancel

protected void cancel()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
cancel in class BasicPropertyEditor

selectionChanged

public void selectionChanged()
No comment provided by developer, please add a comment to improve documentation.


buttonActionPerformed

public boolean buttonActionPerformed(java.lang.String buttonIdentifier,
                                     java.awt.event.ActionEvent e)
Overwrites buttonActionPerformed from PEBasicPropertyEditor

Overrides:
buttonActionPerformed in class BasicPropertyEditor
Parameters:
buttonIdentifier - No description provided
e - No description provided
Returns:
No description provided