|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.interactor.IlpAbstractInteractor
ilog.cpl.table.interactor.IlpDefaultTableHeaderInteractor
public class IlpDefaultTableHeaderInteractor
This class models the default table header interactor.
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 Summary | |
|---|---|
IlpDefaultTableHeaderInteractor()
Creates a new table header interactor. |
|
IlpDefaultTableHeaderInteractor(IlpPopupMenuFactory menuFactory)
Creates a new interactor with the given pop-up menu factory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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,
IlpToggleSortingCriterion| Method Detail |
|---|
public static IlpActionEventFactory GetDefaultActionEventFactory()
The default action event factory creates
IlpDefaultTableHeaderActionEvent events.
IlpDefaultTableHeaderActionEvent
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||