|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.E4HtmlObject
e4s.html.E4HtmlElementGeneral
e4s.html.E4HtmlElement
e4s.html.tree.E4TreeElement
public class E4TreeElement
Display a tree within your HTML page.
The E4TreeElement is somehow the anchor of a tree. A tree consists of elements (nodes)
of type E4TreeNode or, more general, E4TreeNode_Intf.
Each node can contain 1 or more subnodes, by this structure the whole tree can be represented.
There are overridable methods in the module E4ModuleTreeHandling that
will handle toggle nodes and some other functions.
| Example_Tree.java |
E4Tree,
E4TreeNode,
E4TreeNode_Intf,
E4ModuleTreeHandling| Field Summary |
|---|
| Fields inherited from class e4s.html.E4HtmlElementGeneral |
|---|
m_elements, m_needed_scripts |
| Fields inherited from class e4s.html.E4HtmlObject |
|---|
m_parent_e4sID |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
protected |
E4TreeElement()
|
|
E4TreeElement(E4Tree navigation)
|
|
E4TreeElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
Get a vector of used scripts from all subelements. |
void |
collectStylesForEditing(E4StylesHash vec,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with style definitions used so far during display of this page. |
void |
collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with translation texts used so far during display of this page. |
E4ID |
E4ID()
Get the E4ID of the object. |
E4TreeNode_Intf |
findSubnode(long nodeId)
|
long |
getCreationTime()
Get Creation Time for the internal tree. |
long[] |
getOpenNodes()
Get an array of nodes which are open. |
java.lang.String |
getOpenNodesString()
Get a list of nodes which are open. |
E4Tree |
getTree()
|
void |
removeAllNodes()
|
void |
renumberNodes()
Renumbers the nodes, starting with 1. |
void |
setActive(long nodeId)
|
void |
setOpenNodes(long[] nodes)
Define which nodes are open in a tree. |
void |
setOpenNodes(java.lang.String nodes)
Define which nodes are open in a tree. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
java.lang.String |
toString()
|
| Methods inherited from class e4s.html.E4HtmlElement |
|---|
addElement, addElement, addElement, copyElements, print |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, set_e4sID |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Constructor Detail |
|---|
protected E4TreeElement()
public E4TreeElement(E4Tree navigation)
public E4TreeElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
| Method Detail |
|---|
public E4Tree getTree()
public long getCreationTime()
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4HtmlElement_IntfE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function to generate output of those
objects which becomes appended. Normally, there is no need to call this function anyway,
and this also might result in side effects of too-early relasing of objects in some cases.
This function is called by E4ServletImplementation_Intf.write(e4s.html.E4HtmlElement)
on the top level HTML element (common this is a HTML
or BODY element) and branches down to all child elements.
toHtml in interface E4HtmlElement_IntftoHtml in class E4HtmlElementGeneralservlet - the servlet environment currently running in
java.lang.Exceptionpublic E4TreeNode_Intf findSubnode(long nodeId)
public void setActive(long nodeId)
public void collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneral
collectScripts in interface E4HtmlElement_IntfcollectScripts in class E4HtmlElementGeneralv - collect the names of all scriptsservlet - the servlet contextE4JavaScriptpublic void removeAllNodes()
public E4ID E4ID()
E4HtmlObject
E4ID in class E4HtmlObjectE4HtmlObject.E4ID(String),
E4HtmlObject.set_e4sID(e4s.util.E4ID)
public void collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneralE4Label.
collectTranslationsForEditing in interface E4HtmlElement_IntfcollectTranslationsForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collected, may not be nullservlet - the current servlet instanceE4Label_Intf
public void collectStylesForEditing(E4StylesHash vec,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneralE4StyleUsage.
collectStylesForEditing in interface E4HtmlElement_IntfcollectStylesForEditing in class E4HtmlElementGeneralvec - the Vector where the styles will be collected, may not be nullservlet - the servlet contextE4ServletImplementation_Intf.sessionCanEditStyles(),
#collectStylesForEditing(e4s.html.style.E4StylesHash, STYLE_Name, boolean)public void renumberNodes()
setOpenNodes(java.lang.String),
getOpenNodes()public void setOpenNodes(java.lang.String nodes)
nodes - an list, seperated by commas, of nodes to open, null opens no nodes. The list must contains the node id's (e4s.html.E4Tree_Intf#getId()).getOpenNodes(),
setOpenNodes(String),
renumberNodes()public void setOpenNodes(long[] nodes)
nodes - an array of nodes to open, null opens no nodes. The array must contains the node id's (e4s.html.E4Tree_Intf#getId()).getOpenNodes(),
setOpenNodes(String),
renumberNodes()public java.lang.String getOpenNodesString()
e4s.html.E4Tree_Intf#getId()).getOpenNodes(),
setOpenNodes(String),
renumberNodes()public long[] getOpenNodes()
e4s.html.E4Tree_Intf#getId()).getOpenNodesString(),
setOpenNodes(long[]),
renumberNodes()public java.lang.String toString()
toString in class E4Objectpublic static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||