|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.table.selection.Model
qx.ui.treevirtual.RecursiveSelectionModel
public class RecursiveSelectionModel
A recursive selection model.
Features:
Model
although no functionality of this class is needed, as several Table and TreeVirtual properties
require a selection model be derived from this class.
Constructor Summary | |
---|---|
RecursiveSelectionModel()
|
|
RecursiveSelectionModel(java.lang.Object tree)
|
Method Summary | |
---|---|
void |
_addSelectionInterval(java.lang.Integer fromIndex,
java.lang.Integer toIndex)
This is called by qx.ui.treevirtual.SimpleTreeDataRowRenderer#updateDataRowElement()
Do nothing. |
void |
_fireChangeSelection()
Fires the “changeSelection” event to all registered listeners. |
void |
_iterateSelection(java.lang.Object data,
java.lang.Object nodeId,
java.lang.Object iterator,
java.lang.Object object)
|
void |
_selectNode(java.lang.Object node,
java.lang.Object selected)
Removes a interval from the current selection. |
void |
_updateParent(java.lang.Object node)
Updates the selection state of parent nodes. |
void |
clearSelection()
Clears the selection. |
java.lang.Integer |
getSelectedCount()
Returns the number of selected leaf items. |
java.lang.Object |
getSelectionMode()
Compatibility with Model . |
boolean |
isSelectedIndex(java.lang.Integer index)
Returns whether a index is selected. |
boolean |
isSelectionEmpty()
Returns whether the selection is empty. |
void |
iterateSelection(java.lang.Object iterator,
java.lang.Object object)
Calls a iterator function for each selected index. |
void |
removeSelectionInterval(java.lang.Integer fromIndex,
java.lang.Integer toIndex)
Unselects a range |
void |
setSelectionInterval(java.lang.Integer fromIndex,
java.lang.Integer toIndex)
Toggle the selection state of the selected interval. |
void |
setSelectionMode()
Compatibility with Model . |
Methods inherited from class qx.ui.table.selection.Model |
---|
_applySelectionMode, _clearSelection, _dumpRanges, addSelectionInterval, getAnchorSelectionIndex, getLeadSelectionIndex, getSelectedRanges, hasBatchMode, initSelectionMode, resetSelectionMode, setBatchMode, setSelectionMode |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
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 |
---|
public RecursiveSelectionModel()
public RecursiveSelectionModel(java.lang.Object tree)
Method Detail |
---|
public void _addSelectionInterval(java.lang.Integer fromIndex, java.lang.Integer toIndex)
This is called by qx.ui.treevirtual.SimpleTreeDataRowRenderer#updateDataRowElement()
Do nothing.
_addSelectionInterval
in class Model
public void _fireChangeSelection()
Fires the “changeSelection” event to all registered listeners. If the selection model currently is in batch mode, only one event will be thrown when batch mode is ended.
_fireChangeSelection
in class Model
public void _iterateSelection(java.lang.Object data, java.lang.Object nodeId, java.lang.Object iterator, java.lang.Object object)
public void _selectNode(java.lang.Object node, java.lang.Object selected)
Removes a interval from the current selection.
public void _updateParent(java.lang.Object node)
Updates the selection state of parent nodes.
public void clearSelection()
Clears the selection.
clearSelection
in class Model
public java.lang.Integer getSelectedCount()
Returns the number of selected leaf items.
getSelectedCount
in class Model
public java.lang.Object getSelectionMode()
Compatibility with Model
.
getSelectionMode
in class Model
public boolean isSelectedIndex(java.lang.Integer index)
Returns whether a index is selected.
isSelectedIndex
in class Model
public boolean isSelectionEmpty()
Returns whether the selection is empty.
isSelectionEmpty
in class Model
public void iterateSelection(java.lang.Object iterator, java.lang.Object object)
Calls a iterator function for each selected index.
Usage Example:
var selectedNodes = []; mySelectionModel.iterateSelection(function(node) { selectedNodes.push(node)); });
iterateSelection
in class Model
public void removeSelectionInterval(java.lang.Integer fromIndex, java.lang.Integer toIndex)
Unselects a range
removeSelectionInterval
in class Model
public void setSelectionInterval(java.lang.Integer fromIndex, java.lang.Integer toIndex)
Toggle the selection state of the selected interval.
setSelectionInterval
in class Model
public void setSelectionMode()
Compatibility with Model
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |