ilog.cpl.table.interactor
Class IlpDefaultTableViewInteractor

java.lang.Object
  extended by ilog.cpl.interactor.IlpAbstractInteractor
      extended by ilog.cpl.interactor.IlpDefaultViewInteractor
          extended by ilog.cpl.table.interactor.IlpDefaultTableViewInteractor
All Implemented Interfaces:
IlpInteractor, IlpViewInteractor

public class IlpDefaultTableViewInteractor
extends IlpDefaultViewInteractor

This is the table view specific view interactor.

The default implementation provides the following support, which is specific to the Table component:

Since:
JTGO 3.0
See Also:
IlpTableController.setHeaderInteractor(ilog.cpl.table.interactor.IlpDefaultTableHeaderInteractor), IlpDefaultTableHeaderInteractor, IlpDefaultViewInteractor

Constructor Summary
IlpDefaultTableViewInteractor()
          Default constructor.
IlpDefaultTableViewInteractor(IlpPopupMenuFactory menuFactory)
          Constructor allowing installation of a pop-up menu in the table view.
 
Method Summary
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).
 
Methods inherited from class ilog.cpl.interactor.IlpDefaultViewInteractor
attach, createActionEvent, detach, getController, GetDefaultActionEventFactory, getInteractionState, isUsingObjectInteractor, processEvent, setUsingObjectInteractor
 
Methods inherited from class ilog.cpl.interactor.IlpAbstractInteractor
createActionEvent, displayPopupMenu, getAction, getAction, getActionEventFactory, getGestureAction, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, processGesture, processKeyEvent, processMouseOrFocusEvent, setAction, setAction, setActionEventFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.interactor.IlpInteractor
getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
 

Constructor Detail

IlpDefaultTableViewInteractor

public IlpDefaultTableViewInteractor()
Default constructor. It does not install any pop-up menu in the table view.


IlpDefaultTableViewInteractor

public IlpDefaultTableViewInteractor(IlpPopupMenuFactory menuFactory)
Constructor allowing installation of a pop-up menu in the table view. No pop-up menu is installed if the given menu factory is null.

Parameters:
menuFactory - The menu factory providing the pop-up menu to display in the table view. Can be null.
Method Detail

delegateEvent

protected boolean delegateEvent(IlpInteractionContext ctxt,
                                MouseEvent e)
Redefined to delegate mouse events which occur in the table header to IlpDefaultTableHeaderInteractor. This method is not documented.

Overrides:
delegateEvent in class IlpDefaultViewInteractor
Parameters:
ctxt - The interaction context used to store persistent information.
e - The mouse event to delegate.
Returns:
true if the given event has been handled by a sub-interactor.
See Also:
IlpDefaultViewInteractor.isUsingObjectInteractor()

manageSelection

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). This method is not documented.

Overrides:
manageSelection in class IlpAbstractInteractor
Parameters:
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.
See Also:
IlpAbstractInteractor.manageSelection(ilog.cpl.interactor.IlpInteractionContext, ilog.cpl.util.selection.IlpRepresentationObjectSelectionModel, ilog.cpl.model.IlpRepresentationObject)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.