de.uni_paderborn.fujaba.gui
Class PESelection

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byde.uni_paderborn.fujaba.gui.PEBaseComponent
                      extended byde.uni_paderborn.fujaba.gui.PEHeaderComponent
                          extended byde.uni_paderborn.fujaba.gui.PESelection
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, PEResizable, java.io.Serializable
Direct Known Subclasses:
PETypeSelection

public class PESelection
extends PEHeaderComponent
implements PEResizable

Class to implements a selection component. A selection component contains two list called source and destination and at least a add and a remove button to select and deselect from the source to the destination list.

Version:
$Revision: 1.33 $
Author:
$Author: lowende $
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
 
Fields inherited from class de.uni_paderborn.fujaba.gui.PEHeaderComponent
title
 
Fields inherited from class de.uni_paderborn.fujaba.gui.PEBaseComponent
parent
 
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
PESelection(BasicPropertyEditor parent)
          Constructor for class PESelection
 
Method Summary
protected  void addComponents()
          Access method for an one to n association.
 void addToDest(ASGElement incr)
          The function addToDest () adds a new entry represented by a valid reference to an object of the AST to the destination list.
 void addToDest(ASGElement incr, java.lang.String s)
          The function addToDest () adds a new entry represented by a valid reference to an object of the AST and a string to the source list.
 void addToSource(ASGElement incr)
          The function addToSource () adds a new entry represented by a valid reference to an object of the AST to the source list.
 void addToSource(ASGElement incr, java.lang.String s)
          The function addToSource () adds a new entry represented by a valid reference to an object of the AST and a string to the source list.
 boolean buttonActionPerformed(java.lang.String buttonIdentifier, java.awt.event.ActionEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void clearDest()
          The function clearDest () removes all entries of the destination list
 void clearSource()
          The function clearSource () removes all entries of the source list.
protected  void destSelectionChanged()
          No comment provided by developer, please add a comment to improve documentation.
protected  void fillDestList()
          Override the function fillDestList () to initialize the destination list.
protected  void fillSourceList()
          Override the function fillSourceList () to initialize the source list.
protected  PEButton getAddButton()
          Get the addButton attribute of the PESelection object
protected  PEColumn getButtonColumn()
          Get the buttonColumn attribute of the PESelection object
 PEListIncr getDest()
          Get the dest attribute of the PESelection object
 ASGElement getDestIncrementByName(java.lang.String name)
          Get the destIncrementByName attribute of the PESelection object
 ASGElement getDestSelectedIncr()
          The function getDestinationIncr () returns a valid reference of an object of the AST.
 ASGElement getIncrement()
          The function getIncrement () returns a valid reference of the corresponding AST object.
protected  PEButton getModifyButton()
          Get the modifyButton attribute of the PESelection object
protected  BasicPropertyEditor getParentPE()
          Get the parentPE attribute of the PESelection object
protected  PEButton getRemoveButton()
          Get the removeButton attribute of the PESelection object
 PEListIncr getSource()
          Get the source attribute of the PESelection object
 ASGElement getSourceIncrementByName(java.lang.String name)
          Get the sourceIncrementByName attribute of the PESelection object
 java.util.Enumeration getSourceList()
          The function getSourceLsit returns a enumeration of the objects represented by the source list.
 ASGElement getSourceSelectedIncr()
          The function getSourceSelectedIncr () returns a valid reference of an object of the AST.
 boolean isHorzResizable()
          Get the horzResizable attribute of the PESelection object
 boolean isVertResizable()
          Get the vertResizable attribute of the PESelection object
 void paint(java.awt.Graphics g)
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromDest(ASGElement incr)
          The function removeFromSource () removes a existing entry from the destination list.
 void removeFromSource(ASGElement incr)
          The function removeFromSource () removes a existing entry from the source list.
 void setAddListener(java.awt.event.ActionListener listener)
          The function setAddListener sets a listener for the add button
 void setDestMouseListener(java.awt.event.MouseListener listener)
          The function setDestMouseListener sets a listener for the destination list
 void setDestSelectedIncr(ASGElement incr)
          Sets the destSelectedIncr attribute of the PESelection object
 void setIncrement(ASGElement incr)
          The function setIncrement () sets the corresponding object of the AST
 void setModifyListener(java.awt.event.ActionListener listener)
          The function setModifyListener sets a listener for the modify button
 void setReadOnly(boolean b)
          Sets the readOnly attribute of the PESelection object
 void setRemoveListener(java.awt.event.ActionListener listener)
          The function setAddListener sets a listener for the remove button
 void setSourceMouseListener(java.awt.event.MouseListener listener)
          The function setSourceMouseListener sets a listener for the source list
 void setSourceSelectedIncr(ASGElement incr)
          Sets the sourceSelectedIncr attribute of the PESelection object
protected  void sourceSelectionChanged()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.gui.PEHeaderComponent
getTitle, setHeader
 
Methods inherited from class de.uni_paderborn.fujaba.gui.PEBaseComponent
focusGained, focusLost, getComponentByName, getComponentName, getInsets, getLayoutManager, getStatus, setComponentName, setInsets, setParent, setStatus
 
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, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PESelection

public PESelection(BasicPropertyEditor parent)
Constructor for class PESelection

Parameters:
parent - No description provided
Method Detail

setReadOnly

public void setReadOnly(boolean b)
Sets the readOnly attribute of the PESelection object

Specified by:
setReadOnly in class PEBaseComponent
Parameters:
b - The new readOnly value

getButtonColumn

protected PEColumn getButtonColumn()
Get the buttonColumn attribute of the PESelection object

Returns:
The buttonColumn value

getParentPE

protected BasicPropertyEditor getParentPE()
Get the parentPE attribute of the PESelection object

Returns:
The parentPE value

addComponents

protected void addComponents()
Access method for an one to n association.

Specified by:
addComponents in class PEBaseComponent

setIncrement

public void setIncrement(ASGElement incr)
The function setIncrement () sets the corresponding object of the AST

Parameters:
incr - The new increment value

getIncrement

public ASGElement getIncrement()
The function getIncrement () returns a valid reference of the corresponding AST object.

Returns:
a valid reference of a AST object

clearSource

public void clearSource()
The function clearSource () removes all entries of the source list.


clearDest

public void clearDest()
The function clearDest () removes all entries of the destination list


getSourceSelectedIncr

public ASGElement getSourceSelectedIncr()
The function getSourceSelectedIncr () returns a valid reference of an object of the AST. The function returns the first entry, if more than one selected.

Returns:
a valid reference to an object of the AST

getDestSelectedIncr

public ASGElement getDestSelectedIncr()
The function getDestinationIncr () returns a valid reference of an object of the AST. The function returns the first entry, if more than one selected.

Returns:
a valid reference to an object of the AST

setSourceSelectedIncr

public void setSourceSelectedIncr(ASGElement incr)
Sets the sourceSelectedIncr attribute of the PESelection object

Parameters:
incr - The new sourceSelectedIncr value

setDestSelectedIncr

public void setDestSelectedIncr(ASGElement incr)
Sets the destSelectedIncr attribute of the PESelection object

Parameters:
incr - The new destSelectedIncr value

setAddListener

public void setAddListener(java.awt.event.ActionListener listener)
The function setAddListener sets a listener for the add button

Parameters:
listener - a valid reference of an action adapter

setRemoveListener

public void setRemoveListener(java.awt.event.ActionListener listener)
The function setAddListener sets a listener for the remove button

Parameters:
listener - a valid reference of an action adapter

setModifyListener

public void setModifyListener(java.awt.event.ActionListener listener)
The function setModifyListener sets a listener for the modify button

Parameters:
listener - a valid reference of an action adapter

setSourceMouseListener

public void setSourceMouseListener(java.awt.event.MouseListener listener)
The function setSourceMouseListener sets a listener for the source list

Parameters:
listener - a valid reference of an action adapter

setDestMouseListener

public void setDestMouseListener(java.awt.event.MouseListener listener)
The function setDestMouseListener sets a listener for the destination list

Parameters:
listener - a valid reference of an action adapter

addToSource

public void addToSource(ASGElement incr)
The function addToSource () adds a new entry represented by a valid reference to an object of the AST to the source list.

Parameters:
incr - a valid reference to an object of the AST

addToSource

public void addToSource(ASGElement incr,
                        java.lang.String s)
The function addToSource () adds a new entry represented by a valid reference to an object of the AST and a string to the source list.

Parameters:
incr - a valid reference to an object of the AST
s - a valid string represented the entry in the list

addToDest

public void addToDest(ASGElement incr)
The function addToDest () adds a new entry represented by a valid reference to an object of the AST to the destination list.

Parameters:
incr - a valid reference to an object of the AST

addToDest

public void addToDest(ASGElement incr,
                      java.lang.String s)
The function addToDest () adds a new entry represented by a valid reference to an object of the AST and a string to the source list.

Parameters:
incr - a valid reference to an object of the AST
s - a valid string represented the entry in the list

removeFromSource

public void removeFromSource(ASGElement incr)
The function removeFromSource () removes a existing entry from the source list. The entry will be identified by the reference of the represented object.

Parameters:
incr - a valid reference of an object

removeFromDest

public void removeFromDest(ASGElement incr)
The function removeFromSource () removes a existing entry from the destination list. The entry will be identified by the reference of the represented object.

Parameters:
incr - a valid reference of an object

getSourceList

public java.util.Enumeration getSourceList()
The function getSourceLsit returns a enumeration of the objects represented by the source list.

Returns:
a valid enumeration of the entries.

getSource

public PEListIncr getSource()
Get the source attribute of the PESelection object

Returns:
The source value

getDest

public PEListIncr getDest()
Get the dest attribute of the PESelection object

Returns:
The dest value

fillSourceList

protected void fillSourceList()
Override the function fillSourceList () to initialize the source list. This function will be called if a increment will be set.


fillDestList

protected void fillDestList()
Override the function fillDestList () to initialize the destination list. This function will be called if a increment will be set.


sourceSelectionChanged

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


destSelectionChanged

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


getSourceIncrementByName

public ASGElement getSourceIncrementByName(java.lang.String name)
Get the sourceIncrementByName attribute of the PESelection object

Parameters:
name - No description provided
Returns:
The sourceIncrementByName value

getDestIncrementByName

public ASGElement getDestIncrementByName(java.lang.String name)
Get the destIncrementByName attribute of the PESelection object

Parameters:
name - No description provided
Returns:
The destIncrementByName value

isHorzResizable

public boolean isHorzResizable()
Get the horzResizable attribute of the PESelection object

Specified by:
isHorzResizable in interface PEResizable
Returns:
The horzResizable value

isVertResizable

public boolean isVertResizable()
Get the vertResizable attribute of the PESelection object

Specified by:
isVertResizable in interface PEResizable
Returns:
The vertResizable value

paint

public void paint(java.awt.Graphics g)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
g - No description provided

buttonActionPerformed

public boolean buttonActionPerformed(java.lang.String buttonIdentifier,
                                     java.awt.event.ActionEvent e)
No comment provided by developer, please add a comment to improve documentation.

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

getAddButton

protected PEButton getAddButton()
Get the addButton attribute of the PESelection object

Returns:
The addButton value

getRemoveButton

protected PEButton getRemoveButton()
Get the removeButton attribute of the PESelection object

Returns:
The removeButton value

getModifyButton

protected PEButton getModifyButton()
Get the modifyButton attribute of the PESelection object

Returns:
The modifyButton value