public abstract class IlpGraphInteractorAction extends IlpAbstractGraphAction implements InteractorListener
changeSupport, enabledACCELERATOR_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 Perforce 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 Perforce JViews interactor.
|
getContext, getViewaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected 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 Perforce 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 InteractorListenerevent - The modification event.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.