public class IlpDefaultTableViewInteractor extends IlpDefaultViewInteractor
The default implementation provides the following support, which is specific to the Table component:
IlpDefaultViewInteractor
to delegate the
events which occur in the table header to the configured Table Header interactor,
IlpDefaultTableHeaderInteractor
;Constructor and Description |
---|
IlpDefaultTableViewInteractor()
Default constructor.
|
IlpDefaultTableViewInteractor(IlpPopupMenuFactory menuFactory)
Constructor allowing installation of a pop-up menu in the table view.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
delegateEvent(IlpInteractionContext ctxt,
MouseEvent e)
Redefined to delegate mouse events which occur in the table header to
IlpDefaultTableHeaderInteractor . |
protected void |
manageSelection(IlpInteractionContext ctxt,
IlpRepresentationObjectSelectionModel selectionModel,
IlpRepresentationObject ro)
Redefined to manage the selection when a pop-up menu is about to be
displayed, taking care of the particular selection of the table which
allows the selection of an attribute for a representation object (cell selection).
|
attach, createActionEvent, detach, getController, GetDefaultActionEventFactory, getInteractionState, isUsingObjectInteractor, processEvent, setUsingObjectInteractor
createActionEvent, displayPopupMenu, getAction, getAction, getActionEventFactory, getGestureAction, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, isSelectable, processGesture, processKeyEvent, processMouseOrFocusEvent, setAction, setAction, setActionEventFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGestureAction, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
public IlpDefaultTableViewInteractor()
public IlpDefaultTableViewInteractor(IlpPopupMenuFactory menuFactory)
null
.menuFactory
- The menu factory providing the pop-up menu to display
in the table view. Can be null
.protected boolean delegateEvent(IlpInteractionContext ctxt, MouseEvent e)
IlpDefaultTableHeaderInteractor
.
This method is not documented.delegateEvent
in class IlpDefaultViewInteractor
ctxt
- The interaction context used to store persistent information.e
- The mouse event to delegate.true
if the given event has been handled by a
sub-interactor.IlpDefaultViewInteractor.isUsingObjectInteractor()
protected void manageSelection(IlpInteractionContext ctxt, IlpRepresentationObjectSelectionModel selectionModel, IlpRepresentationObject ro)
manageSelection
in class IlpAbstractInteractor
ctxt
- The interaction context of the event.selectionModel
- The selection model handling the selected objects.
It should not be null
in this method.ro
- The representation object which was under the mouse when the
event occurred. Could be null
.IlpAbstractInteractor.manageSelection(ilog.cpl.interactor.IlpInteractionContext, ilog.cpl.util.selection.IlpRepresentationObjectSelectionModel, ilog.cpl.model.IlpRepresentationObject)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.