|
||||||||||
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.tree.AbstractTreeElement<T>
qx.ui.tree.TreeFolder<T>
public class TreeFolder<T>
qx.ui.tree.TreeFolder objects are tree rows which may contain sub-trees
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
TreeFolder()
The TreeFolder constructor understands two signatures. |
|
TreeFolder(java.lang.Object labelOrTreeRowStructure)
The TreeFolder constructor understands two signatures. |
|
TreeFolder(java.lang.Object labelOrTreeRowStructure,
java.lang.String icon)
The TreeFolder constructor understands two signatures. |
|
TreeFolder(java.lang.Object labelOrTreeRowStructure,
java.lang.String icon,
java.lang.String iconSelected)
The TreeFolder constructor understands two signatures. |
Method Summary | |
---|---|
void |
_applyAlwaysShowPlusMinusSymbol(java.lang.Object value,
java.lang.Object old)
|
void |
_applyOpen(java.lang.Object value,
java.lang.Object old)
|
void |
_createChildrenStructure()
|
void |
_handleChildMove(java.lang.Object vChild,
java.lang.Object vRelationIndex,
java.lang.Object vRelationChild)
|
void |
_ondblclick(Event e)
|
void |
_onmousedown(Event e)
|
void |
_onmouseup(Event e)
|
void |
_openCallback()
|
void |
_updateIndent()
|
void |
_updateLastColumn()
|
void |
addAfterToFolder(AbstractTreeElement vChild,
AbstractTreeElement vAfter)
Adds the new tree element vChild to the current folder, after the existing child vAfter. |
void |
addAtBeginToFolder(AbstractTreeElement vChild)
Adds the new tree element vChild at the beginning of the current folder. |
void |
addAtEndToFolder(AbstractTreeElement vChild)
Adds the new tree element vChild at the end of the current folder. |
void |
addAtToFolder(AbstractTreeElement vChild,
java.lang.Integer vIndex)
Adds the new tree element vChild to the current folder, at position vIndex. |
void |
addBeforeToFolder(AbstractTreeElement vChild,
AbstractTreeElement vBefore)
Adds the new tree element vChild to the current folder, before the existing child vBefore. |
TreeFile<T> |
addFile(T node)
|
TreeFolder<T> |
addFolder(T node)
|
void |
addToFolder(AbstractTreeElement varargs)
Adds the passed tree elements to the current folder. |
void |
close()
Closes the current folder. |
void |
destroyContent()
deselects, disconnects, removes and disposes the content of the folder and its subfolders. |
boolean |
getAlwaysShowPlusMinusSymbol()
Returns the (computed) value of the property alwaysShowPlusMinusSymbol . |
VerticalBoxLayout |
getContainerObject()
Returns the container of the current tree element. |
AbstractTreeElement |
getFirstVisibleChildOfFolder()
Returns the first visible child of the folder. |
HorizontalBoxLayout |
getHorizontalLayout()
Returns the HorizontalBoxLayout of the folder. |
java.lang.Object |
getIndentSymbol(boolean vUseTreeLines,
java.lang.Object vColumn,
java.lang.Object vFirstColumn,
java.lang.Object vLastColumn)
Returns a string indicating the symbol used to indent the current item, or null. |
AbstractTreeElement |
getItems(boolean recursive,
boolean invisible)
Returns all children of the folder. |
AbstractTreeElement |
getLastVisibleChildOfFolder()
Returns the last visible child of the folder. |
boolean |
getOpen()
Returns the (computed) value of the property open . |
boolean |
hasContent()
Returns whether the folder has content, i.e. |
void |
initAlwaysShowPlusMinusSymbol(boolean arg)
Calls the apply method and dispatches the change event of the property alwaysShowPlusMinusSymbol
with the default value defined by the class developer. |
void |
initOpen(boolean arg)
Calls the apply method and dispatches the change event of the property open
with the default value defined by the class developer. |
boolean |
isAlwaysShowPlusMinusSymbol()
Check whether the (computed) value of the boolean property alwaysShowPlusMinusSymbol equals true . |
boolean |
isOpen()
Check whether the (computed) value of the boolean property open equals true . |
void |
open()
Opens the current folder. |
void |
remove(Widget varargs)
Remove one or multiple childrens. |
void |
removeAll()
Remove all children. |
void |
removeAt(java.lang.Integer vIndex)
Remove the widget at the specified index. |
void |
resetAlwaysShowPlusMinusSymbol()
Resets the user value of the property alwaysShowPlusMinusSymbol . |
void |
resetOpen()
Resets the user value of the property open . |
void |
setAlwaysShowPlusMinusSymbol(boolean arg)
Sets the user value of the property alwaysShowPlusMinusSymbol . |
void |
setOpen(boolean arg)
Sets the user value of the property open . |
void |
toggle()
Toggles between open and closed status of the folder. |
boolean |
toggleAlwaysShowPlusMinusSymbol()
Toggles the (computed) value of the boolean property alwaysShowPlusMinusSymbol . |
boolean |
toggleOpen()
Toggles the (computed) value of the boolean property open . |
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 TreeFolder()
The TreeFolder constructor understands two signatures. One compatible with the
original qooxdoo tree and one compatible with the treefullcontrol widget.
If the first parameter if of type TreeRowStructure
the tree
folder is rendered using this structure. Otherwhise the all three
arguments are evaluated.
public TreeFolder(java.lang.Object labelOrTreeRowStructure)
The TreeFolder constructor understands two signatures. One compatible with the
original qooxdoo tree and one compatible with the treefullcontrol widget.
If the first parameter if of type TreeRowStructure
the tree
folder is rendered using this structure. Otherwhise the all three
arguments are evaluated.
public TreeFolder(java.lang.Object labelOrTreeRowStructure, java.lang.String icon)
The TreeFolder constructor understands two signatures. One compatible with the
original qooxdoo tree and one compatible with the treefullcontrol widget.
If the first parameter if of type TreeRowStructure
the tree
folder is rendered using this structure. Otherwhise the all three
arguments are evaluated.
public TreeFolder(java.lang.Object labelOrTreeRowStructure, java.lang.String icon, java.lang.String iconSelected)
The TreeFolder constructor understands two signatures. One compatible with the
original qooxdoo tree and one compatible with the treefullcontrol widget.
If the first parameter if of type TreeRowStructure
the tree
folder is rendered using this structure. Otherwhise the all three
arguments are evaluated.
Method Detail |
---|
public void _applyAlwaysShowPlusMinusSymbol(java.lang.Object value, java.lang.Object old)
public void _applyOpen(java.lang.Object value, java.lang.Object old)
public void _createChildrenStructure()
public void _handleChildMove(java.lang.Object vChild, java.lang.Object vRelationIndex, java.lang.Object vRelationChild)
public void _ondblclick(Event e)
public void _onmousedown(Event e)
_onmousedown
in class AbstractTreeElement<T>
public void _onmouseup(Event e)
public void _openCallback()
public void _updateIndent()
public void _updateLastColumn()
public void addAfterToFolder(AbstractTreeElement vChild, AbstractTreeElement vAfter)
Adds the new tree element vChild to the current folder, after the existing child vAfter.
public void addAtBeginToFolder(AbstractTreeElement vChild)
Adds the new tree element vChild at the beginning of the current folder.
public void addAtEndToFolder(AbstractTreeElement vChild)
Adds the new tree element vChild at the end of the current folder.
public void addAtToFolder(AbstractTreeElement vChild, java.lang.Integer vIndex)
Adds the new tree element vChild to the current folder, at position vIndex.
public void addBeforeToFolder(AbstractTreeElement vChild, AbstractTreeElement vBefore)
Adds the new tree element vChild to the current folder, before the existing child vBefore.
public void addToFolder(AbstractTreeElement varargs)
Adds the passed tree elements to the current folder.
public void close()
Closes the current folder.
public void destroyContent()
deselects, disconnects, removes and disposes the content of the folder and its subfolders.
the current items subitems (and the subitems of each subitem) are destroyed going top down the TreeFolder hierarchy. The current item is left as is.
public boolean getAlwaysShowPlusMinusSymbol()
Returns the (computed) value of the property alwaysShowPlusMinusSymbol
.
For further details take a look at the property definition: alwaysShowPlusMinusSymbol
.
public VerticalBoxLayout getContainerObject()
Returns the container of the current tree element.
public AbstractTreeElement getFirstVisibleChildOfFolder()
Returns the first visible child of the folder.
public HorizontalBoxLayout getHorizontalLayout()
Returns the HorizontalBoxLayout of the folder.
public java.lang.Object getIndentSymbol(boolean vUseTreeLines, java.lang.Object vColumn, java.lang.Object vFirstColumn, java.lang.Object vLastColumn)
Returns a string indicating the symbol used to indent the current item, or null.
public AbstractTreeElement getItems(boolean recursive, boolean invisible)
Returns all children of the folder.
public AbstractTreeElement getLastVisibleChildOfFolder()
Returns the last visible child of the folder.
public boolean getOpen()
Returns the (computed) value of the property open
.
For further details take a look at the property definition: open
.
public boolean hasContent()
Returns whether the folder has content, i.e. child folder or files.
public void initAlwaysShowPlusMinusSymbol(boolean arg)
Calls the apply method and dispatches the change event of the property alwaysShowPlusMinusSymbol
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: alwaysShowPlusMinusSymbol
.
public void initOpen(boolean arg)
Calls the apply method and dispatches the change event of the property open
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: open
.
public boolean isAlwaysShowPlusMinusSymbol()
Check whether the (computed) value of the boolean property alwaysShowPlusMinusSymbol
equals true
.
For further details take a look at the property definition: alwaysShowPlusMinusSymbol
.
public boolean isOpen()
Check whether the (computed) value of the boolean property open
equals true
.
For further details take a look at the property definition: open
.
public void open()
Opens the current folder.
public void remove(Widget varargs)
Parent
Remove one or multiple childrens.
remove
in class Parent
public void removeAll()
Parent
Remove all children.
removeAll
in class Parent
public void removeAt(java.lang.Integer vIndex)
Parent
Remove the widget at the specified index.
removeAt
in class Parent
public void resetAlwaysShowPlusMinusSymbol()
Resets the user value of the property alwaysShowPlusMinusSymbol
.
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: alwaysShowPlusMinusSymbol
.
public void resetOpen()
Resets the user value of the property open
.
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: open
.
public void setAlwaysShowPlusMinusSymbol(boolean arg)
Sets the user value of the property alwaysShowPlusMinusSymbol
.
For further details take a look at the property definition: alwaysShowPlusMinusSymbol
.
public void setOpen(boolean arg)
Sets the user value of the property open
.
For further details take a look at the property definition: open
.
public void toggle()
Toggles between open and closed status of the folder.
public boolean toggleAlwaysShowPlusMinusSymbol()
Toggles the (computed) value of the boolean property alwaysShowPlusMinusSymbol
.
For further details take a look at the property definition: alwaysShowPlusMinusSymbol
.
public boolean toggleOpen()
Toggles the (computed) value of the boolean property open
.
For further details take a look at the property definition: open
.
public TreeFile<T> addFile(T node)
public TreeFolder<T> addFolder(T node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |