ilog.cpl.graph.action
Class IlpCreateNodeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ilog.cpl.graph.action.IlpCreateObjectAction
          extended by ilog.cpl.graph.action.IlpCreateNodeAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
IlpCreateLinearGroupAction, IlpCreateNodeAction, IlpCreatePolyGroupAction, IlpCreateRectGroupAction

public class IlpCreateNodeAction
extends IlpCreateObjectAction

This action creates a representation node.

Since:
JTGO 4.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.cpl.graph.action.IlpCreateObjectAction
OBJECT_ID_PROPERTY
 
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
IlpCreateNodeAction(Class clazz)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Executes the action.
protected  IlpAttributeGroup getNodeAttributeGroup(IlpCreateNodeActionEvent event)
          Returns the business class of the node that will be created.
 
Methods inherited from class ilog.cpl.graph.action.IlpCreateObjectAction
getRepresentationObjectClass
 
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, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

IlpCreateNodeAction

public IlpCreateNodeAction(Class clazz)
Constructor.

Specifies which representation object implementation class should be used.

Parameters:
clazz - A class implementing IlpRepresentationNode interface.
Since:
JTGO 4.0
Method Detail

getNodeAttributeGroup

protected IlpAttributeGroup getNodeAttributeGroup(IlpCreateNodeActionEvent event)
Returns the business class of the node that will be created.

Parameters:
event - Create node event
Returns:
Attribute group that will be used to create the representation object. By default, this method returns null.
Since:
JTGO 4.0

actionPerformed

public void actionPerformed(ActionEvent evt)
Executes the action.

Parameters:
evt - An IlpCreateNodeActionEvent.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.