|
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.LyTreeNode
public class LyTreeNode
The LyTreeNode class is a generated Java implementation that corresponds to the element TREE_NODE of the descriptive grammar of the views (views.dtd). <TREE_NODE> : Tree node A tree node can contain a set of nodes (this node is then called parent node of these last ones). 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.
See also tag TREE_NODE of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyTreeNode.Validity
Possible values for attribute 'validity'. |
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 | |
---|---|
LyTreeNode()
Default constructor. |
Method Summary | |
---|---|
void |
addImage(LyImage image)
Adds a sub-component image. |
void |
addTreeNode(LyTreeNode treeNode)
Adds a sub-component treeNode. |
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getClosedDirImage()
Gets value of closedDirImage. |
java.lang.String |
getColor()
Gets value of color. |
java.lang.String |
getEmptyCheckboxImage()
Gets value of emptyCheckboxImage. |
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 |
getImage()
Gets value of image. |
LyImage |
getImage(int i)
Get sub-component Image of index i. |
int |
getImageCount()
Get sub-component Image count. |
java.lang.String |
getInactiveSelectedBackgroundColor()
Gets value of inactiveSelectedBackgroundColor. |
java.lang.String |
getLabel()
Gets value of label. |
java.lang.String |
getOpenDirImage()
Gets value of openDirImage. |
java.lang.String |
getSelectedBackgroundColor()
Gets value of selectedBackgroundColor. |
java.lang.String |
getSelectedCheckboxImage()
Gets value of selectedCheckboxImage. |
java.lang.String |
getSelectedFontColor()
Gets value of selectedFontColor. |
LyTreeNode |
getTemplate()
Gets value of template. |
java.lang.String |
getTooltip()
Gets value of tooltip. |
LyTreeNode |
getTreeNode(int i)
Get sub-component TreeNode of index i. |
int |
getTreeNodeCount()
Get sub-component TreeNode count. |
LyTreeNode.Validity |
getValidity()
Gets value of validity. |
static LyTreeNode.Validity |
getValidity(java.lang.String token)
Utility method to get validity value from a string. |
void |
insertImage(LyImage image,
int pos)
Inserts a sub-component image at given position. |
void |
insertTreeNode(LyTreeNode treeNode,
int pos)
Inserts a sub-component treeNode at given position. |
boolean |
isDefaultClosedDirImage()
Checks whether the closedDirImage attribute is valuated to the default value. |
boolean |
isDefaultColor()
Checks whether the color attribute is valuated to the default value. |
boolean |
isDefaultEmptyCheckboxImage()
Checks whether the emptyCheckboxImage 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 |
isDefaultInactiveSelectedBackgroundColor()
Checks whether the inactiveSelectedBackgroundColor attribute is valuated to the default value. |
boolean |
isDefaultOpenDirImage()
Checks whether the openDirImage attribute is valuated to the default value. |
boolean |
isDefaultSelectedBackgroundColor()
Checks whether the selectedBackgroundColor attribute is valuated to the default value. |
boolean |
isDefaultSelectedCheckboxImage()
Checks whether the selectedCheckboxImage attribute is valuated to the default value. |
boolean |
isDefaultSelectedFontColor()
Checks whether the selectedFontColor attribute is valuated to the default value. |
boolean |
isExpandable()
Checks if value of attribute expandable is set. |
boolean |
isHidden()
Checks if value of attribute hidden is set. |
boolean |
isOpen()
Checks if value of attribute open is set. |
boolean |
isSelected()
Checks if value of attribute selected is set. |
void |
removeImage(LyImage image)
Removes a sub-component image. |
void |
removeTreeNode(LyTreeNode treeNode)
Removes a sub-component treeNode. |
void |
setClosedDirImage(java.lang.String closedDirImage)
Initializes attribute closedDirImage to the given value. |
void |
setColor(java.lang.String color)
Sets attribute color to the given value. |
void |
setEmptyCheckboxImage(java.lang.String emptyCheckboxImage)
Initializes attribute emptyCheckboxImage to the given value. |
void |
setExpandable(boolean expandable)
Sets attribute expandable to the given value. |
void |
setFont(java.lang.String font)
Sets attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value. |
void |
setHidden(boolean hidden)
Sets attribute hidden to the given value. |
void |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setImage(java.lang.String image)
Sets attribute image to the given value. |
void |
setInactiveSelectedBackgroundColor(java.lang.String inactiveSelectedBackgroundColor)
Initializes attribute inactiveSelectedBackgroundColor to the given value. |
void |
setLabel(java.lang.String label)
Sets attribute label to the given value. |
void |
setOpen(boolean open)
Sets attribute open to the given value. |
void |
setOpenDirImage(java.lang.String openDirImage)
Initializes attribute openDirImage to the given value. |
void |
setSelected(boolean selected)
Sets attribute selected to the given value. |
void |
setSelectedBackgroundColor(java.lang.String selectedBackgroundColor)
Initializes attribute selectedBackgroundColor to the given value. |
void |
setSelectedCheckboxImage(java.lang.String selectedCheckboxImage)
Initializes attribute selectedCheckboxImage to the given value. |
void |
setSelectedFontColor(java.lang.String selectedFontColor)
Initializes attribute selectedFontColor to the given value. |
void |
setTemplate(LyTreeNode template)
Initializes attribute template to the given value. |
void |
setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value. |
void |
setValidity(LyTreeNode.Validity validity)
Sets attribute validity to the given value. |
void |
writeXml(java.io.PrintWriter pw,
boolean debug)
Method to rewrite XML corresponding to this component. |
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 LyTreeNode()
Method Detail |
---|
public static final LyTreeNode.Validity getValidity(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 LyTreeNode getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getTooltip()
public boolean isSelected()
public boolean isOpen()
public boolean isHidden()
public boolean isExpandable()
public java.lang.String getImage()
public LyTreeNode.Validity getValidity()
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 getSelectedBackgroundColor()
public boolean isDefaultSelectedBackgroundColor()
public java.lang.String getInactiveSelectedBackgroundColor()
public boolean isDefaultInactiveSelectedBackgroundColor()
public java.lang.String getSelectedFontColor()
public boolean isDefaultSelectedFontColor()
public java.lang.String getEmptyCheckboxImage()
public boolean isDefaultEmptyCheckboxImage()
public java.lang.String getSelectedCheckboxImage()
public boolean isDefaultSelectedCheckboxImage()
public java.lang.String getOpenDirImage()
public boolean isDefaultOpenDirImage()
public java.lang.String getClosedDirImage()
public boolean isDefaultClosedDirImage()
public LyImage getImage(int i)
i
- the index of the Image to get.
public int getImageCount()
public LyTreeNode getTreeNode(int i)
i
- the index of the TreeNode to get.
public int getTreeNodeCount()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyTreeNode template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setTooltip(java.lang.String tooltip)
tooltip
- New value of tooltip.public void setSelected(boolean selected)
setSelected
in interface LySetSelectedInterface
selected
- Boolean indicating if attribute selected is set or unset.public void setOpen(boolean open)
open
- Boolean indicating if attribute open is set or unset.public void setHidden(boolean hidden)
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.public void setExpandable(boolean expandable)
expandable
- Boolean indicating if attribute expandable is set or unset.public void setImage(java.lang.String image)
setImage
in interface LySetImageInterface
image
- New value of image.public void setValidity(LyTreeNode.Validity validity)
setValidity
in interface LySetValidityInterface
validity
- New value of validity.
java.lang.IllegalArgumentException
- if validity parameter is null.public void setFont(java.lang.String font)
setFont
in interface LySetFontInterface
font
- New value of font.public void setColor(java.lang.String color)
setColor
in interface LySetColorInterface
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setSelectedBackgroundColor(java.lang.String selectedBackgroundColor)
selectedBackgroundColor
- New value of selectedBackgroundColor.public void setInactiveSelectedBackgroundColor(java.lang.String inactiveSelectedBackgroundColor)
inactiveSelectedBackgroundColor
- New value of inactiveSelectedBackgroundColor.public void setSelectedFontColor(java.lang.String selectedFontColor)
selectedFontColor
- New value of selectedFontColor.public void setEmptyCheckboxImage(java.lang.String emptyCheckboxImage)
emptyCheckboxImage
- New value of emptyCheckboxImage.public void setSelectedCheckboxImage(java.lang.String selectedCheckboxImage)
selectedCheckboxImage
- New value of selectedCheckboxImage.public void setOpenDirImage(java.lang.String openDirImage)
openDirImage
- New value of openDirImage.public void setClosedDirImage(java.lang.String closedDirImage)
closedDirImage
- New value of closedDirImage.public void addImage(LyImage image)
image
- The image to add to images list.public void insertImage(LyImage image, int pos)
image
- The image to add to images list.pos
- Position where the sub-component is inserted.public void removeImage(LyImage image)
image
- The image to remove to images list.
java.lang.IllegalStateException
- if images list is empty.
java.lang.IllegalArgumentException
- if images list doesn't contain image.public void addTreeNode(LyTreeNode treeNode)
treeNode
- The treeNode to add to treeNodes list.public void insertTreeNode(LyTreeNode treeNode, int pos)
treeNode
- The treeNode to add to treeNodes list.pos
- Position where the sub-component is inserted.public void removeTreeNode(LyTreeNode treeNode)
treeNode
- The treeNode to remove to treeNodes list.
java.lang.IllegalStateException
- if treeNodes list is empty.
java.lang.IllegalArgumentException
- if treeNodes list doesn't contain treeNode.public 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 |