org.fopps.ui.actions
Class CreateRelationAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.fopps.ui.actions.BaseAction
              |
              +--org.fopps.ui.actions.ProjectAction
                    |
                    +--org.fopps.ui.actions.CreateRelationAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable

public class CreateRelationAction
extends ProjectAction

CreateRelationAction connects two or more projects together. In comparison to CreateMany2OneRelationAction it connects the item in a cascading way (First selected item will be connected two the second, the second to the third and so on).

See Also:
Serialized Form

Nested Class Summary
 class CreateRelationAction.IgnoredLink
           
 
Field Summary
 
Fields inherited from class org.fopps.ui.actions.BaseAction
GROUP, selectedItems
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CreateRelationAction(ActionHandler pListener)
          Constructor for CreateRelationAction.
CreateRelationAction(java.lang.String name, ActionHandler pListener)
          Constructor for CreateRelationAction.
CreateRelationAction(java.lang.String name, javax.swing.Icon icon, ActionHandler pListener)
          Constructor for CreateRelationAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 int itemsNeeded()
          Returns the minimum of selected items.
 void postProcess()
          Called after processElement.
 void preProcess()
          Called before the iteration starts.
 void processElement(java.lang.Object pObject)
          processElement is falled for every selected item
 
Methods inherited from class org.fopps.ui.actions.ProjectAction
acceptSelection, addToPopup
 
Methods inherited from class org.fopps.ui.actions.BaseAction
addToMenu, addToToolBar, clearSelection, compareTo, getAccelerator, getActionHandler, getApplication, getContainer, getGroup, getIcon, getLocaleName, getLongDescription, getMnemonic, getName, getSelectedItems, getSelectionSize, getShortDescription, isStringPropertySet, isTogglable, itemInSelection, itemStateChanged, setAccelerator, setAccelerator, setAcceleratorWithAlt, setAcceleratorWithCtrl, setAcceleratorWithShift, setGroup, setLocaleName, setLongDescription, setMnemonic, setMnemonic, setShortDescription, toString, updateState
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateRelationAction

public CreateRelationAction(ActionHandler pListener)
Constructor for CreateRelationAction.

Parameters:
pListener -

CreateRelationAction

public CreateRelationAction(java.lang.String name,
                            ActionHandler pListener)
Constructor for CreateRelationAction.

Parameters:
name -
pListener -

CreateRelationAction

public CreateRelationAction(java.lang.String name,
                            javax.swing.Icon icon,
                            ActionHandler pListener)
Constructor for CreateRelationAction.

Parameters:
name -
icon -
pListener -
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class ProjectAction
See Also:
ActionListener.actionPerformed(ActionEvent)

preProcess

public void preProcess()
Called before the iteration starts. Overwrite this method to initialize lists or similar

Overrides:
preProcess in class ProjectAction

itemsNeeded

public int itemsNeeded()
Returns the minimum of selected items. If less objects selected, the action is disabled

Overrides:
itemsNeeded in class ProjectAction

processElement

public void processElement(java.lang.Object pObject)
Description copied from class: ProjectAction
processElement is falled for every selected item

Specified by:
processElement in class ProjectAction

postProcess

public void postProcess()
Called after processElement. Use the hook for clean up purposes

Overrides:
postProcess in class ProjectAction


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.