|
||||||||||
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>
public abstract class AbstractTreeElement<T>
The AbstractTreeElement serves as a common superclass for the TreeFile
and TreeFolder
classes and is an implementation means of
the qooxdoo framework. It has no relevance for application developers.
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
AbstractTreeElement()
|
|
AbstractTreeElement(java.lang.Object treeRowStructure)
|
Method Summary | |
---|---|
void |
_applyIcon(java.lang.String value,
java.lang.String old)
Applies changes of the property value of the property iconSelected . |
void |
_applyLabel(java.lang.Object value,
java.lang.Object old)
|
java.lang.Object |
_applyParent(java.lang.Object value,
java.lang.Object old)
|
void |
_applySelected(java.lang.Object value,
java.lang.Object old)
|
java.lang.Object |
_evalCurrentIcon()
|
void |
_getRowStructure(java.lang.Object labelOrTreeRowStructure,
java.lang.String icon,
java.lang.String iconSelected)
The tree constructor understands two signatures. |
void |
_handleDisplayableCustom(java.lang.Object vDisplayable,
java.lang.Object vParent,
java.lang.Object vHint)
|
void |
_onmousedown(Event e)
|
void |
_onmouseup(java.lang.Object e)
|
void |
addToCustomQueues(java.lang.Object vHint)
Adds the current item to a custom queue. |
void |
addToTreeQueue()
Adds the current element to the tree queue. |
void |
destroy()
deselects, disconnects, removes and disposes the current tree element and its content. |
void |
flushTree()
Flush the tree from the current element on. |
java.lang.Object |
getHierarchy(java.lang.Object vArr)
Obtain the entire hierarchy of labels from the root down to the current node. |
java.lang.String |
getIcon()
Returns the (computed) value of the property icon . |
java.lang.Object |
getIconObject()
|
java.lang.String |
getIconSelected()
Returns the (computed) value of the property iconSelected . |
java.lang.Object |
getIndentObject()
|
java.lang.String |
getLabel()
Returns the (computed) value of the property label . |
Label |
getLabelObject()
|
java.lang.Integer |
getLevel()
Returns the level of the tree element in the tree hierarchy (starting with 0 at the root element). |
T |
getNode()
|
java.lang.Object |
getParentFolder()
Returns the parent folder of this tree element. |
boolean |
getSelected()
Returns the (computed) value of the property selected . |
AbstractTreeElement |
getTree()
Returns the tree from the parent folder of this element. |
void |
initIcon(java.lang.String arg)
Calls the apply method and dispatches the change event of the property icon
with the default value defined by the class developer. |
void |
initIconSelected(java.lang.String arg)
Calls the apply method and dispatches the change event of the property iconSelected
with the default value defined by the class developer. |
void |
initLabel(java.lang.String arg)
Calls the apply method and dispatches the change event of the property label
with the default value defined by the class developer. |
void |
initSelected(boolean arg)
Calls the apply method and dispatches the change event of the property selected
with the default value defined by the class developer. |
boolean |
isSelected()
Check whether the (computed) value of the boolean property selected equals true . |
void |
removeFromCustomQueues(java.lang.Object vHint)
Removes the current element from the custom queue. |
void |
removeFromTreeQueue()
Removes the current element from the tree queue. |
void |
resetIcon()
Resets the user value of the property icon . |
void |
resetIconSelected()
Resets the user value of the property iconSelected . |
void |
resetLabel()
Resets the user value of the property label . |
void |
resetSelected()
Resets the user value of the property selected . |
void |
setIcon(java.lang.String arg)
Sets the user value of the property icon . |
void |
setIconSelected(java.lang.String arg)
Sets the user value of the property iconSelected . |
void |
setLabel(java.lang.String arg)
Sets the user value of the property label . |
void |
setNode(T node)
|
void |
setSelected(boolean arg)
Sets the user value of the property selected . |
boolean |
toggleSelected()
Toggles the (computed) value of the boolean property selected . |
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 AbstractTreeElement()
public AbstractTreeElement(java.lang.Object treeRowStructure)
Method Detail |
---|
public void _applyIcon(java.lang.String value, java.lang.String old)
Applies changes of the property value of the property iconSelected
.
For further details take a look at the property definition: _applyIcon(java.lang.String, java.lang.String)
.
public void _applyLabel(java.lang.Object value, java.lang.Object old)
public java.lang.Object _applyParent(java.lang.Object value, java.lang.Object old)
_applyParent
in class Widget
public void _applySelected(java.lang.Object value, java.lang.Object old)
public java.lang.Object _evalCurrentIcon()
public void _getRowStructure(java.lang.Object labelOrTreeRowStructure, java.lang.String icon, java.lang.String iconSelected)
The tree 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
element is rendered using this structure. Otherwhise the all three
arguments are evaluated.
This function evaluates the constructor arguments and returns a
TreeRowStructure
for the tree element.
public void _handleDisplayableCustom(java.lang.Object vDisplayable, java.lang.Object vParent, java.lang.Object vHint)
_handleDisplayableCustom
in class Parent
public void _onmousedown(Event e)
public void _onmouseup(java.lang.Object e)
public void addToCustomQueues(java.lang.Object vHint)
Adds the current item to a custom queue.
public void addToTreeQueue()
Adds the current element to the tree queue.
public void destroy()
deselects, disconnects, removes and disposes the current tree element and its content.
destroys the current item (TreeFile or TreeFolder) and all its subitems. The destruction of the subitems is done by calling destroyContent. This is done if the subitem has the method destroyContent which is true if the subitem is a TreeFolder (or one of its subclasses).
The method destroyContent is defined in the TreeFolder class.
public void flushTree()
Flush the tree from the current element on.
public java.lang.Object getHierarchy(java.lang.Object vArr)
Obtain the entire hierarchy of labels from the root down to the current node.
public java.lang.String getIcon()
Returns the (computed) value of the property icon
.
For further details take a look at the property definition: icon
.
public java.lang.Object getIconObject()
public java.lang.String getIconSelected()
Returns the (computed) value of the property iconSelected
.
For further details take a look at the property definition: iconSelected
.
public java.lang.Object getIndentObject()
public java.lang.String getLabel()
Returns the (computed) value of the property label
.
For further details take a look at the property definition: label
.
public Label getLabelObject()
public java.lang.Integer getLevel()
Returns the level of the tree element in the tree hierarchy (starting with 0 at the root element).
public java.lang.Object getParentFolder()
Returns the parent folder of this tree element.
public boolean getSelected()
Returns the (computed) value of the property selected
.
For further details take a look at the property definition: selected
.
public AbstractTreeElement getTree()
Returns the tree from the parent folder of this element.
public void initIcon(java.lang.String arg)
Calls the apply method and dispatches the change event of the property icon
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: icon
.
public void initIconSelected(java.lang.String arg)
Calls the apply method and dispatches the change event of the property iconSelected
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: iconSelected
.
public void initLabel(java.lang.String arg)
Calls the apply method and dispatches the change event of the property label
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: label
.
public void initSelected(boolean arg)
Calls the apply method and dispatches the change event of the property selected
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: selected
.
public boolean isSelected()
Check whether the (computed) value of the boolean property selected
equals true
.
For further details take a look at the property definition: selected
.
public void removeFromCustomQueues(java.lang.Object vHint)
Removes the current element from the custom queue.
public void removeFromTreeQueue()
Removes the current element from the tree queue.
public void resetIcon()
Resets the user value of the property icon
.
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: icon
.
public void resetIconSelected()
Resets the user value of the property iconSelected
.
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: iconSelected
.
public void resetLabel()
Resets the user value of the property label
.
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: label
.
public void resetSelected()
Resets the user value of the property selected
.
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: selected
.
public void setIcon(java.lang.String arg)
Sets the user value of the property icon
.
For further details take a look at the property definition: icon
.
public void setIconSelected(java.lang.String arg)
Sets the user value of the property iconSelected
.
For further details take a look at the property definition: iconSelected
.
public void setLabel(java.lang.String arg)
Sets the user value of the property label
.
For further details take a look at the property definition: label
.
public void setSelected(boolean arg)
Sets the user value of the property selected
.
For further details take a look at the property definition: selected
.
public boolean toggleSelected()
Toggles the (computed) value of the boolean property selected
.
For further details take a look at the property definition: selected
.
public T getNode()
public void setNode(T node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |