|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.core.Widget
qx.ui.core.Parent
qx.ui.layout.BoxLayout
qx.ui.layout.VerticalBoxLayout
qx.ui.table.Table
qx.ui.treevirtual.TreeVirtual
public class TreeVirtual
A “virtual” tree
WARNING: This widget is still in development and the interface to it is likely to change. If you choose to use this widget, be aware that you may need to make manual changes in accordance with interface changes.
A number of convenience methods are available in the following mixins:
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
TreeVirtual()
|
|
TreeVirtual(java.lang.Object headings)
|
|
TreeVirtual(java.lang.Object headings,
java.lang.Object custom)
|
Method Summary | |
---|---|
java.lang.Object |
_calculateSelectedNodes()
Calculate and return the set of nodes which are currently selected by the user, on the screen. |
void |
_onkeydown(java.lang.Object evt)
Event handler. |
void |
_onkeypress(Event evt)
|
void |
_onSelectionChanged(java.lang.Object evt)
Event handler. |
boolean |
getAlwaysShowOpenCloseSymbol()
Set whether the open/close button should be displayed on a branch, even if the branch has no children. |
java.lang.Object |
getDataModel()
Return the data model for this tree. |
boolean |
getExcludeFirstLevelTreeLines()
Get whether drawing of first-level tree lines should be disabled even if drawing of tree lines is enabled. |
java.lang.Integer |
getFirstChild(java.lang.Object nodeReference)
Get the first child of the specified node. |
java.lang.Object |
getHierarchy(java.lang.Object nodeReference)
Obtain the entire hierarchy of labels from the root down to the specified node. |
java.lang.Integer |
getLastChild(java.lang.Object nodeReference)
Get the last child of the specified node. |
java.lang.Integer |
getNextSibling(java.lang.Object nodeReference)
Get the next sibling of the specified node. |
boolean |
getOpenCloseClickSelectsRow()
Returns the (computed) value of the property openCloseClickSelectsRow . |
java.lang.Integer |
getPrevSibling(java.lang.Object nodeReference)
Get the previous sibling of the specified node. |
java.lang.Object |
getSelectedNodes()
Return the nodes that are currently selected. |
java.lang.Integer |
getSelectionMode(java.lang.Object mode)
Get the selection mode currently in use. |
boolean |
getUseTreeLines()
Get whether lines linking tree children shall be drawn on the tree. |
void |
initOpenCloseClickSelectsRow(boolean arg)
Calls the apply method and dispatches the change event of the property openCloseClickSelectsRow
with the default value defined by the class developer. |
boolean |
isOpenCloseClickSelectsRow()
Check whether the (computed) value of the boolean property openCloseClickSelectsRow equals true . |
void |
resetOpenCloseClickSelectsRow()
Resets the user value of the property openCloseClickSelectsRow . |
void |
setAlwaysShowOpenCloseSymbol(boolean b)
Set whether the open/close button should be displayed on a branch, even if the branch has no children. |
void |
setCellFocusAttributes(java.lang.Object attributes)
Set the attributes used to indicate the cell that has the focus. |
void |
setExcludeFirstLevelTreeLines(boolean b)
Set whether drawing of first-level tree-node lines are disabled even if drawing of tree lines is enabled. |
void |
setOpenCloseClickSelectsRow(boolean arg)
Sets the user value of the property openCloseClickSelectsRow . |
void |
setOverflow(java.lang.String s)
|
void |
setSelectionMode(java.lang.Integer mode)
Set the selection mode. |
void |
setState(java.lang.Object nodeReference,
java.lang.Object attributes)
Set state attributes of a tree node. |
void |
setUseTreeLines(boolean b)
Set whether lines linking tree children shall be drawn on the tree. |
boolean |
toggleOpenCloseClickSelectsRow()
Toggles the (computed) value of the boolean property openCloseClickSelectsRow . |
void |
toggleOpened(java.lang.Object nodeReference)
Toggle the opened state of the node: if the node is opened, close it; if it is closed, open it. |
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 TreeVirtual()
public TreeVirtual(java.lang.Object headings)
public TreeVirtual(java.lang.Object headings, java.lang.Object custom)
Method Detail |
---|
public java.lang.Object _calculateSelectedNodes()
Calculate and return the set of nodes which are currently selected by the user, on the screen. In the process of calculating which nodes are selected, the nodes corresponding to the selected rows on the screen are marked as selected by setting their bSelected property to true, and all previously-selected nodes have their bSelected property reset to false.
public void _onkeydown(java.lang.Object evt)
Event handler. Called when a key was pressed.
We handle the Enter key to toggle opened/closed tree state. All other keydown events are passed to our superclass.
_onkeydown
in class Table
public void _onkeypress(Event evt)
public void _onSelectionChanged(java.lang.Object evt)
Event handler. Called when the selection has changed.
_onSelectionChanged
in class Table
public boolean getAlwaysShowOpenCloseSymbol()
Set whether the open/close button should be displayed on a branch, even if the branch has no children.
public java.lang.Object getDataModel()
Return the data model for this tree.
public boolean getExcludeFirstLevelTreeLines()
Get whether drawing of first-level tree lines should be disabled even
if drawing of tree lines is enabled.
(See also getUseTreeLines()
)
public java.lang.Integer getFirstChild(java.lang.Object nodeReference)
Get the first child of the specified node.
public java.lang.Object getHierarchy(java.lang.Object nodeReference)
Obtain the entire hierarchy of labels from the root down to the specified node.
public java.lang.Integer getLastChild(java.lang.Object nodeReference)
Get the last child of the specified node.
public java.lang.Integer getNextSibling(java.lang.Object nodeReference)
Get the next sibling of the specified node.
public boolean getOpenCloseClickSelectsRow()
Returns the (computed) value of the property openCloseClickSelectsRow
.
For further details take a look at the property definition: openCloseClickSelectsRow
.
public java.lang.Integer getPrevSibling(java.lang.Object nodeReference)
Get the previous sibling of the specified node.
public java.lang.Object getSelectedNodes()
Return the nodes that are currently selected.
public java.lang.Integer getSelectionMode(java.lang.Object mode)
Get the selection mode currently in use.
public boolean getUseTreeLines()
Get whether lines linking tree children shall be drawn on the tree.
public void initOpenCloseClickSelectsRow(boolean arg)
Calls the apply method and dispatches the change event of the property openCloseClickSelectsRow
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: openCloseClickSelectsRow
.
public boolean isOpenCloseClickSelectsRow()
Check whether the (computed) value of the boolean property openCloseClickSelectsRow
equals true
.
For further details take a look at the property definition: openCloseClickSelectsRow
.
public void resetOpenCloseClickSelectsRow()
Resets the user value of the property openCloseClickSelectsRow
.
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: openCloseClickSelectsRow
.
public void setAlwaysShowOpenCloseSymbol(boolean b)
Set whether the open/close button should be displayed on a branch, even if the branch has no children.
public void setCellFocusAttributes(java.lang.Object attributes)
Set the attributes used to indicate the cell that has the focus.
public void setExcludeFirstLevelTreeLines(boolean b)
Set whether drawing of first-level tree-node lines are disabled even if drawing of tree lines is enabled.
public void setOpenCloseClickSelectsRow(boolean arg)
Sets the user value of the property openCloseClickSelectsRow
.
For further details take a look at the property definition: openCloseClickSelectsRow
.
public void setOverflow(java.lang.String s)
public void setSelectionMode(java.lang.Integer mode)
Set the selection mode.
public void setState(java.lang.Object nodeReference, java.lang.Object attributes)
Set state attributes of a tree node.
public void setUseTreeLines(boolean b)
Set whether lines linking tree children shall be drawn on the tree.
public boolean toggleOpenCloseClickSelectsRow()
Toggles the (computed) value of the boolean property openCloseClickSelectsRow
.
For further details take a look at the property definition: openCloseClickSelectsRow
.
public void toggleOpened(java.lang.Object nodeReference)
Toggle the opened state of the node: if the node is opened, close it; if it is closed, open it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |