ilog.cpl.graph.action
Class IlpCreateObjectAction

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

public abstract class IlpCreateObjectAction
extends AbstractAction
implements Action

This action is the base class to create representation nodes and links.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
static String OBJECT_ID_PROPERTY
          This property stores the identifier of the object that has just been created by this action.
 
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
IlpCreateObjectAction(Class clazz)
          Constructor.
 
Method Summary
protected  Class getRepresentationObjectClass()
          Returns the class implementing IlpRepresentationNode.
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

OBJECT_ID_PROPERTY

public static final String OBJECT_ID_PROPERTY
This property stores the identifier of the object that has just been created by this action. The value of this property can be retrieved just after a call to ActionListener.actionPerformed(java.awt.event.ActionEvent).

See Also:
Constant Field Values
Constructor Detail

IlpCreateObjectAction

public IlpCreateObjectAction(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

getRepresentationObjectClass

protected Class getRepresentationObjectClass()
Returns the class implementing IlpRepresentationNode. Instances of this class will be created when this action is performed.

Returns:
Representation node class
Since:
JViews 7.5


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