ilog.cpl.graph.action
Class IlpCreateLinkAction

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

public class IlpCreateLinkAction
extends IlpCreateObjectAction

This action creates a representation link.

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
IlpCreateLinkAction(Class clazz)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Executes the action.
protected  IlpAttributeGroup getLinkAttributeGroup(IlpCreateLinkActionEvent event)
          Returns the attribute group for the link business object that will be created by this action.
 
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

IlpCreateLinkAction

public IlpCreateLinkAction(Class clazz)
Constructor.

Specifies which representation object implementation class should be used.

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

getLinkAttributeGroup

protected IlpAttributeGroup getLinkAttributeGroup(IlpCreateLinkActionEvent event)
Returns the attribute group for the link business object that will be created by this action.

By default, the attribute group used is IltLink.

Parameters:
event - Event that is generated when the creation of a link object is requested.
Returns:
The attribute group of the link that is created.
Since:
JTGO 4.0

actionPerformed

public void actionPerformed(ActionEvent event)
Executes the action.

Parameters:
event - An IlpCreateLinkActionEvent.


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