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 Rogue Wave JViews interactor.
|
boolean |
processEvent(IlpInteractionContext context,
AWTEvent event)
Process an event.
|
void |
setViewsInteractor(IlvManagerViewInteractor interactor)
Sets the view interactor.
|
createActionEvent, getController, GetDefaultActionEventFactory, getInteractionState, isUsingObjectInteractor, setUsingObjectInteractor
createActionEvent, displayPopupMenu, getAction, getAction, getActionEventFactory, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, isSelectable, manageSelection, processGesture, processKeyEvent, processMouseOrFocusEvent, setAction, setAction, setActionEventFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getController, isUsingObjectInteractor, setUsingObjectInteractor
getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
public IlpViewsViewInteractor(IlvManagerViewInteractor interactor)
public IlpViewsViewInteractor()
public IlvManagerViewInteractor getViewsInteractor()
public void setViewsInteractor(IlvManagerViewInteractor interactor)
interactor
- Interactorpublic void attach(IlpGraphicController controller)
attach
in interface IlpViewInteractor
attach
in class IlpDefaultViewInteractor
controller
- Graphic controllerIlpDefaultViewInteractor.detach()
public void detach()
detach
in interface IlpViewInteractor
detach
in class IlpDefaultViewInteractor
IlpDefaultViewInteractor.attach(ilog.cpl.graphic.IlpGraphicController)
public boolean processEvent(IlpInteractionContext context, AWTEvent event)
processEvent
in interface IlpInteractor
processEvent
in class IlpDefaultViewInteractor
context
- 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)
,
IlpInteractionContext
protected 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 IlpDefaultViewInteractor
ctxt
- 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 IlpInteractor
getGestureAction
in class IlpAbstractInteractor
gesture
- GestureIlpAbstractInteractor.setGestureAction(ilog.cpl.interactor.IlpGesture, javax.swing.Action)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.