|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxcent.JaxcentPage
jaxcent.yui.Tree
Class Tree encapsulates the YUI Tree component. Objects of this class must be initialized with the id for the DIV where the tree is to be placed. After that, nodes can be added/removed to the tree, and other operations can be performed.
| Constructor Summary | |
Tree()
|
|
| Method Summary | |
TreeNode |
addDateNode(java.util.Date date)
Add a non-editable date node to the tree root |
TreeNode |
addEditableDateNode(java.util.Date date)
Add an editable date node to the tree root |
TreeNode |
addEditableTextNode(java.lang.String text)
Add an editable text node to the tree root |
TreeNode |
addTextNode(java.lang.String text)
Add a non-editable text node to the tree root |
void |
collapseAll()
Collapse the entire tree. |
void |
draw()
The draw method updates the tree. |
void |
expandAll()
Expand the entire tree. |
void |
init(java.lang.String treeDivId)
To create the tree on the page, init must be called with the id for a DIV where the tree is to be drawn. |
protected void |
onClick(TreeNode node)
Over-ridable method for receiving click events on tree nodes. |
protected void |
onJavaScriptRequest(java.lang.String cmd,
java.lang.String[] args)
|
void |
setDateFormat(char sep,
boolean monthFirst)
Sets the format for displaying the date in date nodes. |
| Methods inherited from class jaxcent.JaxcentPage |
checkElementExists, deleteCookie, deleteElementById, evalJavaScriptCode, evalJavaScriptCode, execJavaScriptCode, execJavaScriptCode, getAllFormData, getAllSessionData, getAppContext, getAppContextKeys, getClientJaxcentURL, getClientVersion, getCookie, getCookies, getCurrentPath, getFormSaveEnabled, getFromAppContext, getHttpSession, getJaxcentVersion, getLocale, getLocales, getRemoteAddr, getScreenSize, getStatusText, getWindowSize, goBack, goForward, invalidateHttpSession, makeContentURL, navigate, onFinalFormData, onLoad, onUnload, removeAppContextKey, resetFromSession, saveInAppContext, setBatchUpdates, setCookie, setCookie, setFormSaveEnabled, setStatusText, showConfirmDialog, showInputDialog, showMessageDialog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Tree()
| Method Detail |
public void init(java.lang.String treeDivId)
throws jaxcent.Jaxception
jaxcent.Jaxception
public void draw()
throws jaxcent.Jaxception
jaxcent.Jaxception
public TreeNode addTextNode(java.lang.String text)
throws jaxcent.Jaxception
jaxcent.Jaxception
public TreeNode addEditableTextNode(java.lang.String text)
throws jaxcent.Jaxception
jaxcent.Jaxception
public void setDateFormat(char sep,
boolean monthFirst)
throws jaxcent.Jaxception
jaxcent.Jaxception
public TreeNode addDateNode(java.util.Date date)
throws jaxcent.Jaxception
jaxcent.Jaxception
public TreeNode addEditableDateNode(java.util.Date date)
throws jaxcent.Jaxception
jaxcent.Jaxception
public void expandAll()
throws jaxcent.Jaxception
jaxcent.Jaxception
public void collapseAll()
throws jaxcent.Jaxception
jaxcent.Jaxceptionprotected void onClick(TreeNode node)
protected void onJavaScriptRequest(java.lang.String cmd,
java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||