|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsTreeNode
public class LyStrutsTreeNode
This class implements the TreeNode object (as described in the dtd) for web viewer.
TREE_NODE: Tree node
A tree node can contain a set of nodes (this node is then called parent node of those last
nodes). It is possible to assign a label and several images to a tree node, and to indicate if it
is selected, valid or open. It is also possible to indicate the font and the different colors of
the node.
LyTreeNode
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsTreeNode(LyTreeNode treeNode)
Class constructor of a Tree Node object for the struts target. |
Method Summary | |
---|---|
void |
addImage(LyImage image,
int pos)
(non-Javadoc). |
void |
addTreeNode(LyTreeNode treeNode,
int pos)
Inserts a sub-component treeNodes at given position. |
void |
computeTreeNodeValidity(LyComponent node)
Computes the sub-tree validity. |
java.lang.String |
getBeginning()
Gets the begining of the HTML representation of the node (its parent representation). |
java.lang.String |
getLastFrameName()
Gets the last frame name where this tree node where generated. |
LyTree |
getParentTree()
Gets parent tree instance. |
boolean |
hasChildSelected()
Indicates if this node has at least one descendant selected. |
void |
prepareBeginning(LyStrutsTreeNode parent,
boolean isLast)
Prepare the begining of the HTML representation of the node (its parent representation). |
void |
removeImage(LyImage image)
(non-Javadoc). |
void |
removeTreeNode(LyTreeNode treeNode)
Removes a sub-component treeNodes. |
void |
setColor(java.lang.String color)
(non-Javadoc). |
void |
setExpandable(boolean expandable)
(non-Javadoc). |
void |
setFont(java.lang.String font)
(non-Javadoc). |
void |
setForegroundColor(java.lang.String color)
(non-Javadoc). |
void |
setHidden(boolean hidden)
(non-Javadoc). |
void |
setImage(java.lang.String key)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
(non-Javadoc). |
void |
setOpen(boolean open)
(non-Javadoc). |
void |
setSelected(boolean status)
(non-Javadoc). |
void |
setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value. |
void |
setValidity(LyTreeNode.Validity validity)
(non-Javadoc). |
void |
updateValidityFromView()
Updates the tree node validity from the view component. |
void |
writeHtml(LyWebPageWriter pw)
(non-Javadoc). |
void |
writeNode(LyWebPageWriter pw,
LyStrutsTreeNode parent,
boolean isLast,
LyTree.SelectionMode selectionMode,
LyTree.SelectionType selectionType)
Writes the HTML representation of this node. |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStrutsTreeNode(LyTreeNode treeNode)
treeNode
- the generic Tree Node defined for every type of view targetsMethod Detail |
---|
public void addTreeNode(LyTreeNode treeNode, int pos)
LyGraphicalTreeNode
addTreeNode
in interface LyGraphicalTreeNode
treeNode
- The treeNodes to add to treeNodes list.pos
- Position where the sub-component is inserted.public void removeTreeNode(LyTreeNode treeNode)
LyGraphicalTreeNode
removeTreeNode
in interface LyGraphicalTreeNode
treeNode
- The treeNodes to remove to treeNodes list.public void setSelected(boolean status)
setSelected
in interface LyGraphicalTreeNode
setSelected
in interface LySetSelectedInterface
status
- Boolean indicating if attribute selected is set or unset.LySetSelectedInterface.setSelected(boolean)
public void setOpen(boolean open)
setOpen
in interface LyGraphicalTreeNode
open
- Boolean indicating if attribute open is set or unset.LyGraphicalTreeNode.setOpen(boolean)
public void writeHtml(LyWebPageWriter pw)
writeHtml
in interface LyWebComponent
pw
- the page writerLyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)
public java.lang.String getBeginning()
public void prepareBeginning(LyStrutsTreeNode parent, boolean isLast)
parent
- the parent node of this nodeisLast
- true is this node is the last of the britherhood, false otherwisepublic LyTree getParentTree()
public java.lang.String getLastFrameName()
getLastFrameName
in class LyWebObject
public void writeNode(LyWebPageWriter pw, LyStrutsTreeNode parent, boolean isLast, LyTree.SelectionMode selectionMode, LyTree.SelectionType selectionType)
pw
- the page writerparent
- the parent of this node, null it this is the rootisLast
- indicates if this node is the last of the brotherhood or notselectionMode
- the selection modeselectionType
- the selection typepublic boolean hasChildSelected()
public void updateValidityFromView()
public void computeTreeNodeValidity(LyComponent node)
node
- current nodepublic void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalTreeNode
setLabel
in interface LySetLabelInterface
label
- New value of label.LySetLabelInterface.setLabel(java.lang.String)
public void setHidden(boolean hidden)
setHidden
in interface LyGraphicalTreeNode
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.LySetHiddenInterface.setHidden(boolean)
public void setImage(java.lang.String key)
setImage
in interface LyGraphicalTreeNode
setImage
in interface LySetImageInterface
key
- New value of image.LySetImageInterface.setImage(java.lang.String)
public void setColor(java.lang.String color)
setColor
in interface LyGraphicalTreeNode
setColor
in interface LySetColorInterface
color
- New value of color.LySetColorInterface.setColor(java.lang.String)
public void setFont(java.lang.String font)
setFont
in interface LyGraphicalTreeNode
setFont
in interface LySetFontInterface
font
- New value of font.LySetFontInterface.setFont(java.lang.String)
public void setForegroundColor(java.lang.String color)
leon.view.graphic.LyGraphicalTreeNode#setForegroundColor(java.lang.String)
public void addImage(LyImage image, int pos)
addImage
in interface LyGraphicalTreeNode
image
- The images to add to images list.pos
- Position where the sub-component is inserted.LyGraphicalTreeNode.addImage(leon.view.LyImage, int)
public void removeImage(LyImage image)
removeImage
in interface LyGraphicalTreeNode
image
- The images to remove to images list.LyGraphicalTreeNode.removeImage(leon.view.LyImage)
public void setValidity(LyTreeNode.Validity validity)
setValidity
in interface LyGraphicalTreeNode
setValidity
in interface LySetValidityInterface
validity
- New value of validity.leon.view.setinterface.LySetValidityInterface#setValidity(java.lang.String)
public void setExpandable(boolean expandable)
setExpandable
in interface LyGraphicalTreeNode
expandable
- Boolean indicating if attribute expandable is set or unset.LyGraphicalTreeNode.setExpandable(boolean)
public void setTooltip(java.lang.String tooltip)
LyGraphicalTreeNode
setTooltip
in interface LyGraphicalTreeNode
tooltip
- New value of tooltip.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |