public class IlpDefaultTableHeaderInteractor extends IlpAbstractInteractor
This interactor provides support to define actions associated to gestures, as well as, to create pop-up menus associated to the different table columns.
By default, this interactor associates an action to gesture
BUTTON1_CLICKED.
IlpToggleSortingCriterion| Constructor and Description |
|---|
IlpDefaultTableHeaderInteractor()
Creates a new table header interactor.
|
IlpDefaultTableHeaderInteractor(IlpPopupMenuFactory menuFactory)
Creates a new interactor with the given pop-up menu factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected ActionEvent |
createActionEvent(IlpInteractionContext ctxt,
IlpInteractionState state,
int modifiers)
Deprecated.
Please use
IlpActionEventFactory instead. |
protected boolean |
displayPopupMenu(IlpInteractionContext ctxt,
MouseEvent e)
Displays a pop-up menu on the source and at the location given by
the specified mouse event if this
event corresponds to a pop-up trigger and a pop-up menu factory is set
for this interactor and if this factory does not return
null. |
static IlpActionEventFactory |
GetDefaultActionEventFactory()
Returns the action event factory that is used by default in this
table header interactor.
|
protected IlpInteractionState |
getInteractionState(IlpInteractionContext ctxt)
Looks up the interaction state corresponding to the given context.
|
createActionEvent, delegateEvent, getAction, getAction, getActionEventFactory, getGestureAction, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, isSelectable, manageSelection, processEvent, processGesture, processKeyEvent, processMouseOrFocusEvent, setAction, setAction, setActionEventFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactorypublic IlpDefaultTableHeaderInteractor()
This interactor has a predefined action associated to gesture
BUTTON1_CLICKED.
This action executes the sorting of the column where the event has occurred.
IlpToggleSortingCriterionpublic IlpDefaultTableHeaderInteractor(IlpPopupMenuFactory menuFactory)
This interactor has a predefined action associated to gesture
BUTTON1_CLICKED.
This action executes the sorting of the column where the event has occurred.
menuFactory - The pop-up menu factory for the table header.IlpPopupMenuFactory,
IlpToggleSortingCriterionpublic static IlpActionEventFactory GetDefaultActionEventFactory()
The default action event factory creates
IlpDefaultTableHeaderActionEvent events.
IlpDefaultTableHeaderActionEvent@Deprecated protected ActionEvent createActionEvent(IlpInteractionContext ctxt, IlpInteractionState state, int modifiers)
IlpActionEventFactory instead.ActionEvent.
Redefined to provide an IlpDefaultTableHeaderActionEvent
instance.createActionEvent in class IlpAbstractInteractorctxt - The context where the event occurred.state - The interaction state.modifiers - The modifiers associated with the recognized gesture.IlpAbstractInteractor.setActionEventFactory(ilog.cpl.interactor.IlpActionEventFactory),
IlpDefaultTableHeaderActionEventprotected IlpInteractionState getInteractionState(IlpInteractionContext ctxt)
getInteractionState in class IlpAbstractInteractorctxt - The context where the event occurred.protected boolean displayPopupMenu(IlpInteractionContext ctxt, MouseEvent e)
null.
When a pop-up menu is triggered, the selection is updated by calling the
method IlpAbstractInteractor.manageSelection(ilog.cpl.interactor.IlpInteractionContext, ilog.cpl.util.selection.IlpRepresentationObjectSelectionModel, ilog.cpl.model.IlpRepresentationObject).displayPopupMenu in class IlpAbstractInteractorctxt - The interaction context of the event.e - The mouse event which may correspond to a pop-up trigger.true if a pop-up menu has been shown.IlpInteractionContext© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.