ilog.cpl.network.action.toolbar
Class IlpNetworkInteractorAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ilog.cpl.graph.action.toolbar.IlpAbstractGraphAction
          extended by ilog.cpl.graph.action.toolbar.IlpGraphInteractorAction
              extended by ilog.cpl.network.action.toolbar.IlpNetworkInteractorAction
All Implemented Interfaces:
InteractorListener, ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
IlpNetworkEditEquipmentObjectAction, IlpNetworkEditGroupAction, IlpNetworkEditLinkPortAction, IlpNetworkSelectAction

public class IlpNetworkInteractorAction
extends IlpGraphInteractorAction

This action sets an interactor on the view. The button remains highlighted as long as the interactor is active.

Since:
JTGO 3.0
See Also:
Serialized Form

Field Summary
 
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
protected IlpNetworkInteractorAction(IlpViewsView view)
          Creates the action.
  IlpNetworkInteractorAction(IlpViewsView view, AbstractButton button, IlpViewsViewInteractor interactor)
          Creates the action.
protected IlpNetworkInteractorAction(IlpViewsView view, AbstractButton button, IlvManagerViewInteractor interactor)
          Creates the action.
 
Method Summary
 
Methods inherited from class ilog.cpl.graph.action.toolbar.IlpGraphInteractorAction
actionPerformed, belongsToThisInteractor, getCplInteractor, getIlpInteractor, getIlvInteractor, interactorChanged, setButton, setIlpInteractor, setIlvInteractor
 
Methods inherited from class ilog.cpl.graph.action.toolbar.IlpAbstractGraphAction
getContext, getView
 
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

IlpNetworkInteractorAction

protected IlpNetworkInteractorAction(IlpViewsView view,
                                     AbstractButton button,
                                     IlvManagerViewInteractor interactor)
Creates the action.

Parameters:
view - The view on which to operate.
button - Button to which the action is attached.
interactor - The interactor to activate when the button is pressed.

IlpNetworkInteractorAction

public IlpNetworkInteractorAction(IlpViewsView view,
                                  AbstractButton button,
                                  IlpViewsViewInteractor interactor)
Creates the action.

Parameters:
view - The view on which to operate.
button - Button to which the action is attached.
interactor - The interactor to activate when the button is pressed.

IlpNetworkInteractorAction

protected IlpNetworkInteractorAction(IlpViewsView view)
Creates the action.

An interactor must be registered to this action prior to use.

Parameters:
view - The view on which to operate.

Use this constructor when using cascading style sheets to add new buttons to a network component toolbar. Please refer to IlpToolBarRenderer for information on how your new toolbar actions should be registered.

Since:
JTGO 4.0
See Also:
IlpGraphInteractorAction.setIlpInteractor(ilog.cpl.graphic.views.IlpViewsViewInteractor), IlpGraphInteractorAction.setIlvInteractor(ilog.views.IlvManagerViewInteractor)


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