- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file GenericTree.java.
◆ addTreeitem()
Definition at line 133 of file GenericTree.java.
134 if(parent.getTreechildren() ==
null) {
135 parent.appendChild(
new Treechildren());
137 parent.getTreechildren().appendChild(child);
◆ afterCompose()
Definition at line 40 of file GenericTree.java.
43 if(internalValue !=
null) {
void setObjectValue(V value)
abstract void populateList()
◆ clearItems()
◆ equals()
Definition at line 128 of file GenericTree.java.
129 return (value ==
null && obj ==
null) ||
130 (value !=
null && value.equals(obj));
◆ getObjectValue()
Definition at line 88 of file GenericTree.java.
92 Treeitem li = getSelectedItem();
93 if(li !=
null && li.getValue() !=
null) {
94 return (V) li.getValue();
◆ populateList()
◆ selectItemByText()
Definition at line 106 of file GenericTree.java.
107 if(text !=
null && text.length() > 3) {
108 for(Object item : getItems()) {
109 if(item instanceof Treeitem) {
110 String l = ((Treeitem) item).getLabel();
111 if(l.toLowerCase().contains(text.toLowerCase())) {
112 setSelectedItem((Treeitem) item);
114 Events.postEvent(
new Event(Events.ON_SELECT, GenericTree.this));
void showItem(Treeitem item)
◆ setObjectValue()
Definition at line 59 of file GenericTree.java.
61 internalValue = value;
63 if(value ==
null && selectFirst && getItemCount() > 0) {
64 setSelectedFirstItem();
66 for(Object item : getItems()) {
67 if(item instanceof Treeitem) {
68 if(
equals((V) ((Treeitem) item).getValue(), (V) value)) {
69 setSelectedItem((Treeitem) item);
boolean equals(V value, V obj)
◆ showItem()
Definition at line 121 of file GenericTree.java.
122 while(item !=
null) {
124 item = item.getParentItem();
◆ populated
The documentation for this class was generated from the following file: