qx.ui.table.selection
Class Manager

java.lang.Object
  extended by qx.core.Object
      extended by qx.ui.table.selection.Manager
Direct Known Subclasses:
SelectionManager

public class Manager
extends Object

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

Widgets that support selection should use this manager. This way the only thing the widget has to do is mapping mouse or key events to indexes and call the corresponding handler method.


Constructor Summary
Manager()
           
 
Method Summary
 void _handleSelectEvent(java.lang.Integer index, java.lang.Object evt)
          Handles a select event.
 Model getSelectionModel()
          Returns the (computed) value of the property selectionModel.
 void handleClick(java.lang.Integer index, java.lang.Object evt)
          Handles the mouse click event.
 void handleMouseDown(java.lang.Integer index, java.lang.Object evt)
          Handles the mouse down event.
 void handleMouseUp(java.lang.Integer index, java.lang.Object evt)
          Handles the mouse up event.
 void handleMoveKeyDown(java.lang.Integer index, java.lang.Object evt)
          Handles a key down event that moved the focus (E.g.
 void handleSelectKeyDown(java.lang.Integer index, java.lang.Object evt)
          Handles the key down event that is used as replacement for mouse clicks (Normally space).
 void initSelectionModel(Model arg)
          Calls the apply method and dispatches the change event of the property selectionModel with the default value defined by the class developer.
 void resetSelectionModel()
          Resets the user value of the property selectionModel.
 void setSelectionModel(Model arg)
          Sets the user value of the property selectionModel.
 
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

Manager

public Manager()
Method Detail

_handleSelectEvent

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

Handles a select event.


getSelectionModel

public Model getSelectionModel()

Returns the (computed) value of the property selectionModel.

For further details take a look at the property definition: selectionModel.


handleClick

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

Handles the mouse click event.


handleMouseDown

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

Handles the mouse down event.


handleMouseUp

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

Handles the mouse up event.


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, ...).


handleSelectKeyDown

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

Handles the key down event that is used as replacement for mouse clicks (Normally space).


initSelectionModel

public void initSelectionModel(Model arg)

Calls the apply method and dispatches the change event of the property selectionModel with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: selectionModel.


resetSelectionModel

public void resetSelectionModel()

Resets the user value of the property selectionModel.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: selectionModel.


setSelectionModel

public void setSelectionModel(Model arg)

Sets the user value of the property selectionModel.

For further details take a look at the property definition: selectionModel.



Copyright © 2008 1&1. All Rights Reserved.