public class IlpViewsViewInteractor extends IlpDefaultViewInteractor implements IlpViewInteractor
Note: This interactor can only be used with an IlpViewsView object.
| Constructor and Description |
|---|
IlpViewsViewInteractor()
Default constructor
|
IlpViewsViewInteractor(IlvManagerViewInteractor interactor)
Creates the interactor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(IlpGraphicController controller)
Attaches this interactor to the view.
|
protected boolean |
delegateEvent(IlpInteractionContext ctxt,
MouseEvent e)
Redefined to delegate event management to an object interactor.
|
void |
detach()
Detaches this interactor from the view.
|
Action |
getGestureAction(IlpGesture gesture)
Provides default gesture actions, depending on the view.
|
IlvManagerViewInteractor |
getViewsInteractor()
Returns the encapsulated Perforce JViews interactor.
|
boolean |
processEvent(IlpInteractionContext context,
AWTEvent event)
Process an event.
|
void |
setViewsInteractor(IlvManagerViewInteractor interactor)
Sets the view interactor.
|
createActionEvent, getController, GetDefaultActionEventFactory, getInteractionState, isUsingObjectInteractor, setUsingObjectInteractorcreateActionEvent, displayPopupMenu, getAction, getAction, getActionEventFactory, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, isSelectable, manageSelection, processGesture, processKeyEvent, processMouseOrFocusEvent, setAction, setAction, setActionEventFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetController, isUsingObjectInteractor, setUsingObjectInteractorgetGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactorypublic IlpViewsViewInteractor(IlvManagerViewInteractor interactor)
public IlpViewsViewInteractor()
public IlvManagerViewInteractor getViewsInteractor()
public void setViewsInteractor(IlvManagerViewInteractor interactor)
interactor - Interactorpublic void attach(IlpGraphicController controller)
attach in interface IlpViewInteractorattach in class IlpDefaultViewInteractorcontroller - Graphic controllerIlpDefaultViewInteractor.detach()public void detach()
detach in interface IlpViewInteractordetach in class IlpDefaultViewInteractorIlpDefaultViewInteractor.attach(ilog.cpl.graphic.IlpGraphicController)public boolean processEvent(IlpInteractionContext context, AWTEvent event)
processEvent in interface IlpInteractorprocessEvent in class IlpDefaultViewInteractorcontext - Interaction contextevent - EventIlpAbstractInteractor.processKeyEvent(ilog.cpl.interactor.IlpInteractionContext, java.awt.event.KeyEvent),
IlpAbstractInteractor.delegateEvent(ilog.cpl.interactor.IlpInteractionContext, java.awt.event.MouseEvent),
IlpAbstractInteractor.displayPopupMenu(ilog.cpl.interactor.IlpInteractionContext, java.awt.event.MouseEvent),
IlpAbstractInteractor.processMouseOrFocusEvent(ilog.cpl.interactor.IlpInteractionContext, java.awt.AWTEvent),
IlpInteractionContextprotected boolean delegateEvent(IlpInteractionContext ctxt, MouseEvent e)
IlpDefaultViewInteractor.isUsingObjectInteractor() returns true,IlpGraphic,IlpGraphic,
a MouseEvent.MOUSE_ENTERED event is delegated to the object.
Similarly, a MouseEvent.MOUSE_EXITED event is delegated to the (exited) object as soon as
the cursor leaves the object or the view.delegateEvent in class IlpDefaultViewInteractorctxt - The interaction context used to store persistent information.e - The mouse event to be managed.true if the given event has been handled by a
sub-interactor.IlpDefaultViewInteractor.isUsingObjectInteractor()public Action getGestureAction(IlpGesture gesture)
getGestureAction in interface IlpInteractorgetGestureAction in class IlpAbstractInteractorgesture - GestureIlpAbstractInteractor.setGestureAction(ilog.cpl.interactor.IlpGesture, javax.swing.Action)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.