|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xulux.gui.XuluxWidget
org.xulux.gui.ContainerWidget
org.xulux.guilayer.swing.widgets.Tree
public class Tree
| Field Summary | |
|---|---|
protected NyxTreeCellRenderer |
cellRenderer
the cell renderer |
protected java.lang.Object |
content
the content |
protected boolean |
contentChanged
the content has changed |
protected SwingTreeModel |
contentHandler
the contenthandler |
protected boolean |
hasChildPopups
has childpopups |
protected ImmidiateTreeSelectionListener |
immidiateListener
the immidiatelistener |
protected XuluxJTree |
jtree
The native jtree |
protected MouseDoubleClickTreeListener |
mdcListener
|
protected org.xulux.api.gui.IWidget |
menu
the menu |
protected javax.swing.JScrollPane |
scrollPane
the native scrollpane |
protected NewSelectionListener |
selectionListener
the selectionlistener |
| Fields inherited from class org.xulux.gui.ContainerWidget |
|---|
widgets |
| Fields inherited from class org.xulux.gui.XuluxWidget |
|---|
initialized, initializing, isRefreshing, log, previousValue, properties, value, visible |
| Constructor Summary | |
|---|---|
Tree(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addToParent(org.xulux.api.gui.IWidget widget)
|
boolean |
canContainValue()
|
void |
contentChanged()
|
void |
destroy()
|
protected void |
expand(java.lang.Object root,
boolean leaf)
|
protected void |
expandDefault(java.lang.Object root)
The default method to expand. |
protected void |
expandFrom(java.lang.Object root,
java.lang.Class untill)
|
protected void |
expandToLevel(java.lang.Object root)
Does not do anything atm. |
protected void |
expandToLevel(java.lang.Object root,
int level)
Expands the tree to the specified level. |
protected void |
expandTree(java.lang.String untill)
Expands the tree. |
void |
focus()
|
java.lang.Object |
getContent()
|
java.lang.Object |
getGuiValue()
|
java.lang.Object |
getNativeWidget()
|
SwingTreeModel |
getSwingModel()
|
java.lang.Object |
getValue()
|
void |
initialize()
We need to set the model on initialization and replace the root node on refresh. |
protected void |
initializePopupMenu()
Initializes the popupmenus of the tree. |
boolean |
isValueEmpty()
|
void |
refresh()
|
void |
setContent(java.lang.Object object)
|
void |
setValue(java.lang.Object value)
Set the currently selected value in the tree. |
| Methods inherited from class org.xulux.gui.ContainerWidget |
|---|
addChildWidget, canBeRootWidget, canContainChildren, destroyChildren, getChildWidgets, getWidgetInitializer, initializeChildren |
| Methods inherited from class org.xulux.gui.XuluxWidget |
|---|
addDependency, addPropertyHandler, addPropertyHandler, addXuluxListener, clear, equals, getDependencies, getField, getName, getParent, getPart, getPrefix, getPreviousValue, getProperties, getProperty, getPropertyHandler, getPropertyHandlers, getProvider, getRealProperty, getRealValue, getRectangle, getRules, getWidgetType, handleProperties, handleProperty, hasDependencies, ignoreLayout, ignoreUse, isEnabled, isImmidiate, isInitializing, isRefreshing, isRequired, isRootWidget, isSkip, isUseIgnored, isValidValue, isVisible, notifyListeners, processDestroy, processInit, processNativeWidget, registerRule, removeAllRules, setAutoRefresh, setContainerWidgetHandler, setEnabled, setField, setImmidiate, setLazyProperty, setName, setParent, setPart, setPosition, setPrefix, setProperty, setProvider, setRequired, setRootWidget, setSize, setSkip, setValidValue, setVisible, setWidgetInitializer, setWidgetType, toString, updateWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XuluxJTree jtree
protected javax.swing.JScrollPane scrollPane
protected java.lang.Object content
protected boolean contentChanged
protected SwingTreeModel contentHandler
protected boolean hasChildPopups
protected org.xulux.api.gui.IWidget menu
protected NyxTreeCellRenderer cellRenderer
protected NewSelectionListener selectionListener
protected ImmidiateTreeSelectionListener immidiateListener
protected MouseDoubleClickTreeListener mdcListener
| Constructor Detail |
|---|
public Tree(java.lang.String name)
name - the name of the tree| Method Detail |
|---|
public void destroy()
destroy in interface org.xulux.api.gui.IContainerWidgetHandlerdestroy in interface org.xulux.api.gui.IWidgetdestroy in class org.xulux.gui.ContainerWidgetIWidget.destroy()public java.lang.Object getNativeWidget()
getNativeWidget in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#getNativeWidget()public void initialize()
initialize in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#initialize()public void refresh()
refresh in interface org.xulux.api.gui.IWidgetrefresh in class org.xulux.gui.XuluxWidgetorg.xulux.nyx.gui.XuluxWidget#refresh()
protected void expandToLevel(java.lang.Object root,
int level)
root - the root levellevel - the levelprotected void expandToLevel(java.lang.Object root)
root - the root objectprotected void expandTree(java.lang.String untill)
untill - - a string representation untill wath kind of object
the tree should be expanded.
protected void expand(java.lang.Object root,
boolean leaf)
root - the root objectleaf - true or false. If true it will NOT show the leaf, otherwise it will
protected void expandFrom(java.lang.Object root,
java.lang.Class untill)
root - - the root to expand fromuntill - - the class to expand untill.protected void expandDefault(java.lang.Object root)
root - the root objectpublic java.lang.Object getGuiValue()
getGuiValue in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#getGuiValue()public void focus()
focus in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#focus()public boolean isValueEmpty()
isValueEmpty in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#isValueEmpty()public boolean canContainValue()
canContainValue in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#canContainValue()public void setContent(java.lang.Object object)
setContent in interface org.xulux.api.gui.IContentWidgetorg.xulux.nyx.gui.IContentWidget#setContent(java.lang.Object)public java.lang.Object getContent()
getContent in interface org.xulux.api.gui.IContentWidgetorg.xulux.nyx.gui.IContentWidget#getContent()public void contentChanged()
contentChanged in interface org.xulux.api.gui.IContentWidgetorg.xulux.nyx.gui.IContentWidget#contentChanged()public void addToParent(org.xulux.api.gui.IWidget widget)
addToParent in interface org.xulux.api.gui.IContainerWidgetHandlerorg.xulux.nyx.gui.ContainerWidget#addToParent(org.xulux.nyx.gui.XuluxWidget)protected void initializePopupMenu()
public java.lang.Object getValue()
getValue in interface org.xulux.api.gui.IWidgetgetValue in class org.xulux.gui.XuluxWidgetorg.xulux.nyx.gui.XuluxWidget#getValue()public void setValue(java.lang.Object value)
setValue in interface org.xulux.api.gui.IWidgetsetValue in class org.xulux.gui.XuluxWidgetXuluxWidget.setValue(java.lang.Object)public SwingTreeModel getSwingModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||