public abstract class IlpGraphInteractorAction extends IlpAbstractGraphAction implements InteractorListener
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier | Constructor and Description |
---|---|
protected |
IlpGraphInteractorAction(IlpViewsView view,
AbstractButton button,
IlpViewsViewInteractor interactor,
String bundle)
Creates the action.
|
protected |
IlpGraphInteractorAction(IlpViewsView view,
AbstractButton button,
IlvManagerViewInteractor interactor,
String bundle)
Creates the action.
|
protected |
IlpGraphInteractorAction(IlpViewsView view,
String bundle)
Creates the action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
protected boolean |
belongsToThisInteractor(IlvManagerViewInteractor otherInteractor)
Indicates if the given interactors is the same one as the interactor
registered for this action.
|
IlpViewsViewInteractor |
getCplInteractor()
Deprecated.
Please use
getIlpInteractor instead. |
IlpViewsViewInteractor |
getIlpInteractor()
Gets the associated JTGO interactor.
|
IlvManagerViewInteractor |
getIlvInteractor()
Gets the associated Rogue Wave JViews interactor.
|
void |
interactorChanged(InteractorChangedEvent event)
Listen to interactor changes in the attached views.
|
void |
setButton(AbstractButton b)
Associates a button with this action.
|
protected void |
setIlpInteractor(IlpViewsViewInteractor interactor)
Sets the associated JTGO interactor.
|
protected void |
setIlvInteractor(IlvManagerViewInteractor interactor)
Sets the associated Rogue Wave JViews interactor.
|
getContext, getView
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected IlpGraphInteractorAction(IlpViewsView view, AbstractButton button, IlvManagerViewInteractor interactor, String bundle)
view
- The view on which to operate.button
- Button to which the action will be attached.interactor
- The interactor to activate when the button is pressed.bundle
- The resource bundle containing localized messages.protected IlpGraphInteractorAction(IlpViewsView view, AbstractButton button, IlpViewsViewInteractor interactor, String bundle)
view
- The view on which to operate.button
- Button to which the action will be attached.interactor
- The interactor to activate when the button is pressed.bundle
- The resource bundle containing localized messages.protected IlpGraphInteractorAction(IlpViewsView view, String bundle)
An interactor must be set prior to use.
view
- The view on which to operate.bundle
- The resource bundle containing localized messages.setIlpInteractor(ilog.cpl.graphic.views.IlpViewsViewInteractor)
,
setIlvInteractor(ilog.views.IlvManagerViewInteractor)
,
setButton(javax.swing.AbstractButton)
public void setButton(AbstractButton b)
b
- Button where this action is currently registeredpublic IlvManagerViewInteractor getIlvInteractor()
public IlpViewsViewInteractor getIlpInteractor()
@Deprecated public IlpViewsViewInteractor getCplInteractor()
getIlpInteractor
instead.protected void setIlpInteractor(IlpViewsViewInteractor interactor)
interactor
- the JTGO interactor to be set.protected void setIlvInteractor(IlvManagerViewInteractor interactor)
interactor
- The Rogue Wave JViews interactor to be set.protected boolean belongsToThisInteractor(IlvManagerViewInteractor otherInteractor)
This implementation verifies if the given interactor corresponds
to getIlvInteractor()
.
public void interactorChanged(InteractorChangedEvent event)
interactorChanged
in interface InteractorListener
event
- The modification event.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.