|
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.LyComponent
leon.view.LyFieldItem
leon.view.LyPanel
leon.view.LyTree
public class LyTree
The LyTree class is a generated Java implementation that corresponds to the element TREE of the descriptive grammar of the views (views.dtd). <TREE> : Tree A tree allows displaying a set of elements under the form of a tree. It is possible to specify its selection mode (none, simple, multiple or sensitive). Such a component is interesting to display a hierarchy of objects of an application. It allows not displaying some sub-sets of these objects.
See also tag TREE of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyTree.SelectionMode
Possible values for attribute 'selectionMode'. |
static class |
LyTree.SelectionType
Possible values for attribute 'selectionType'. |
Nested classes/interfaces inherited from class leon.view.LyComponent |
---|
LyComponent.EventType |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.LyComponent |
---|
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID |
Constructor Summary | |
---|---|
LyTree(java.lang.String id)
Constructor with all required attributes. |
Method Summary | |
---|---|
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getActiveNode()
Gets value of activeNode. |
java.lang.String |
getColor()
Gets value of color. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getController()
Gets value of controller. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getLabel()
Gets value of label. |
java.lang.String |
getSelectedColor()
Gets value of selectedColor. |
java.lang.String |
getSelectedFontColor()
Gets value of selectedFontColor. |
LyTree.SelectionMode |
getSelectionMode()
Gets value of selectionMode. |
static LyTree.SelectionMode |
getSelectionMode(java.lang.String token)
Utility method to get selectionMode value from a string. |
LyTree.SelectionType |
getSelectionType()
Gets value of selectionType. |
static LyTree.SelectionType |
getSelectionType(java.lang.String token)
Utility method to get selectionType value from a string. |
LyTree |
getTemplate()
Gets value of template. |
LyTreeNode |
getTreeNode()
Get sub-component TreeNode. |
boolean |
isDefaultColor()
Checks whether the color attribute is valuated to the default value. |
boolean |
isDefaultFont()
Checks whether the font attribute is valuated to the default value. |
boolean |
isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value. |
boolean |
isDefaultSelectedColor()
Checks whether the selectedColor attribute is valuated to the default value. |
boolean |
isDefaultSelectedFontColor()
Checks whether the selectedFontColor attribute is valuated to the default value. |
boolean |
isIsContext()
Checks if value of attribute isContext is set. |
void |
setActiveNode(java.lang.String activeNode)
Sets attribute activeNode to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
void |
setController(java.lang.String controller)
Initializes attribute controller to the given value. |
void |
setFont(java.lang.String font)
Initializes attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value. |
void |
setIsContext(boolean isContext)
Initializes attribute isContext to the given value. |
void |
setLabel(java.lang.String label)
Sets attribute label to the given value. |
void |
setSelectedColor(java.lang.String selectedColor)
Initializes attribute selectedColor to the given value. |
void |
setSelectedFontColor(java.lang.String selectedFontColor)
Initializes attribute selectedFontColor to the given value. |
void |
setSelectionMode(LyTree.SelectionMode selectionMode)
Initializes attribute selectionMode to the given value. |
void |
setSelectionType(LyTree.SelectionType selectionType)
Initializes attribute selectionType to the given value. |
void |
setTemplate(LyTree template)
Initializes attribute template to the given value. |
void |
setTreeNode(LyTreeNode treeNode)
Sets sub-component treeNode. |
void |
writeXml(java.io.PrintWriter pw,
boolean debug)
Method to rewrite XML corresponding to this component. |
Methods inherited from class leon.view.LyPanel |
---|
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting |
Methods inherited from class leon.view.LyFieldItem |
---|
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, updateViewContent, validateInput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyTree(java.lang.String id)
id
- Identifier of the tree.Method Detail |
---|
public static final LyTree.SelectionMode getSelectionMode(java.lang.String token)
token
- Token string
public static final LyTree.SelectionType getSelectionType(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyTree getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public LyTree.SelectionMode getSelectionMode()
public LyTree.SelectionType getSelectionType()
public boolean isIsContext()
public java.lang.String getActiveNode()
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getColor()
public boolean isDefaultColor()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public java.lang.String getSelectedColor()
public boolean isDefaultSelectedColor()
public java.lang.String getSelectedFontColor()
public boolean isDefaultSelectedFontColor()
public LyTreeNode getTreeNode()
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setTemplate(LyTree template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
setLabel
in class LyFieldItem
label
- New value of label.public void setController(java.lang.String controller)
setController
in interface LySetControllerInterface
controller
- New value of controller.LySetControllerInterface.setController(java.lang.String)
public void setSelectionMode(LyTree.SelectionMode selectionMode)
selectionMode
- New value of selectionMode.
java.lang.IllegalArgumentException
- if selectionMode parameter is null.public void setSelectionType(LyTree.SelectionType selectionType)
selectionType
- New value of selectionType.
java.lang.IllegalArgumentException
- if selectionType parameter is null.public void setIsContext(boolean isContext)
isContext
- Boolean indicating if attribute isContext is set or unset.public void setActiveNode(java.lang.String activeNode)
activeNode
- New value of activeNode.public void setFont(java.lang.String font)
font
- New value of font.public void setColor(java.lang.String color)
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setSelectedColor(java.lang.String selectedColor)
selectedColor
- New value of selectedColor.public void setSelectedFontColor(java.lang.String selectedFontColor)
selectedFontColor
- New value of selectedFontColor.public void setTreeNode(LyTreeNode treeNode)
treeNode
- New value of treeNodepublic void setConstraint(LyConstraint constraint)
constraint
- New value of constraintpublic void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |