|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
ilog.cpl.graph.action.toolbar.IlpAbstractGraphAction
ilog.cpl.graph.action.toolbar.IlpGraphInteractorAction
public abstract class IlpGraphInteractorAction
This action sets an interactor on the view. The button remains highlighted as long as the interactor is active.
| 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 |
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. |
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
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 ILOG JTGO interactor. |
IlvManagerViewInteractor |
getIlvInteractor()
Gets the associated ILOG 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 ILOG JTGO interactor. |
protected void |
setIlvInteractor(IlvManagerViewInteractor interactor)
Sets the associated ILOG JViews interactor. |
| 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 |
|---|
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)| Method Detail |
|---|
public void setButton(AbstractButton b)
b - Button where this action is currently registeredpublic IlvManagerViewInteractor getIlvInteractor()
public IlpViewsViewInteractor getIlpInteractor()
public IlpViewsViewInteractor getCplInteractor()
getIlpInteractor instead.
protected void setIlpInteractor(IlpViewsViewInteractor interactor)
interactor - protected void setIlvInteractor(IlvManagerViewInteractor interactor)
interactor - 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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||