qx.ui.treevirtual
Class SelectionManager

java.lang.Object
  extended by qx.core.Object
      extended by qx.ui.table.selection.Manager
          extended by qx.ui.treevirtual.SelectionManager

public class SelectionManager
extends Manager

A selection manager. This is a helper class that handles all selection related events and updates a SelectionModel.

This Selection Manager differs from its superclass in that we do not want rows to be selected when moving around with the keyboard.


Constructor Summary
SelectionManager()
           
SelectionManager(java.lang.Object table)
           
 
Method Summary
 void _handleSelectEvent(java.lang.Integer index, java.lang.Object evt)
          Handles a select event.
 void handleMoveKeyDown(java.lang.Integer index, java.lang.Object evt)
          Handles a key down event that moved the focus (E.g.
 
Methods inherited from class qx.ui.table.selection.Manager
getSelectionModel, handleClick, handleMouseDown, handleMouseUp, handleSelectKeyDown, initSelectionModel, resetSelectionModel, setSelectionModel
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionManager

public SelectionManager()

SelectionManager

public SelectionManager(java.lang.Object table)
Method Detail

_handleSelectEvent

public void _handleSelectEvent(java.lang.Integer index,
                               java.lang.Object evt)

Handles a select event. First we determine if the click was on the open/close button and toggle the opened/closed state as necessary. Then, if the click was not on the open/close button or if the table’s “openCloseClickSelectsRow” property so indicates, call our superclass to handle the actual row selection.

Overrides:
_handleSelectEvent in class Manager

handleMoveKeyDown

public void handleMoveKeyDown(java.lang.Integer index,
                              java.lang.Object evt)

Handles a key down event that moved the focus (E.g. up, down, home, end, ...).

Overrides:
handleMoveKeyDown in class Manager


Copyright © 2008 1&1. All Rights Reserved.