LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.tree
Class LyJQTreeNode

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.tree.LyJQTreeNode
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalTreeNode, LyViewComponent, LyFreeInterface, LySetColorInterface, LySetFontInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface, LySetValidityInterface, LyWebComponent

public class LyJQTreeNode
extends LyJQInternalView
implements LyGraphicalTreeNode


Field Summary
 
Fields inherited from class leon.view.web.LyWebObject
__VERSION, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalTreeNode
__VERSION
 
Constructor Summary
LyJQTreeNode(LyTreeNode lyTreeNode)
           
 
Method Summary
 void addImage(LyImage images, int pos)
          Inserts a sub-component images at given position.
 void addTreeNode(LyTreeNode treeNode, int position)
          Inserts a sub-component treeNodes at given position.
 java.lang.String getFmkId()
          get the fmk id
 java.lang.String getJSLabel()
           
 LyTree getParentTree()
          Gets parent tree instance.
 java.lang.String getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 java.util.List<LyTreeNode> getTreeNodes()
          get tree treeNodes
 void removeImage(LyImage images)
          Removes a sub-component images.
 void removeTreeNode(LyTreeNode treeNode)
          Removes a sub-component treeNodes.
 void setColor(java.lang.String color)
          Updates attribute color to the given value.
 void setExpandable(boolean expandable)
          Updates attribute expandable to the given value.
 void setFont(java.lang.String font)
          Updates attribute font to the given value.
 void setHidden(boolean hidden)
          Updates attribute hidden to the given value.
 void setImage(java.lang.String image)
          Updates attribute image to the given value.
 void setLabel(java.lang.String label)
          Updates attribute label to the given value.
 void setOpen(boolean open)
          Updates attribute open to the given value.
 void setSelected(boolean selected)
          Updates attribute selected to the given value.
 void setTooltip(java.lang.String tooltip)
          Updates attribute tooltip to the given value.
 void setValidity(LyTreeNode.Validity validity)
          Updates attribute validity to the given value.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
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, getLastFrameName, 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
 

Constructor Detail

LyJQTreeNode

public LyJQTreeNode(LyTreeNode lyTreeNode)
Method Detail

getFmkId

public java.lang.String getFmkId()
get the fmk id


getJSLabel

public java.lang.String getJSLabel()

getParentTree

public LyTree getParentTree()
Gets parent tree instance.

Returns:
parent tree instance

getTreeNodes

public java.util.List<LyTreeNode> getTreeNodes()
get tree treeNodes

Returns:
treeNodes list

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LyGraphicalTreeNode
Updates attribute label to the given value.

Specified by:
setLabel in interface LyGraphicalTreeNode
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.

setTooltip

public void setTooltip(java.lang.String tooltip)
Description copied from interface: LyGraphicalTreeNode
Updates attribute tooltip to the given value.

Specified by:
setTooltip in interface LyGraphicalTreeNode
Parameters:
tooltip - New value of tooltip.

setSelected

public void setSelected(boolean selected)
Description copied from interface: LyGraphicalTreeNode
Updates attribute selected to the given value.

Specified by:
setSelected in interface LyGraphicalTreeNode
Specified by:
setSelected in interface LySetSelectedInterface
Parameters:
selected - Boolean indicating if attribute selected is set or unset.

setOpen

public void setOpen(boolean open)
Description copied from interface: LyGraphicalTreeNode
Updates attribute open to the given value.

Specified by:
setOpen in interface LyGraphicalTreeNode
Parameters:
open - Boolean indicating if attribute open is set or unset.

setHidden

public void setHidden(boolean hidden)
Description copied from interface: LyGraphicalTreeNode
Updates attribute hidden to the given value.

Specified by:
setHidden in interface LyGraphicalTreeNode
Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.

setExpandable

public void setExpandable(boolean expandable)
Description copied from interface: LyGraphicalTreeNode
Updates attribute expandable to the given value.

Specified by:
setExpandable in interface LyGraphicalTreeNode
Parameters:
expandable - Boolean indicating if attribute expandable is set or unset.

setImage

public void setImage(java.lang.String image)
Description copied from interface: LyGraphicalTreeNode
Updates attribute image to the given value.

Specified by:
setImage in interface LyGraphicalTreeNode
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.

setValidity

public void setValidity(LyTreeNode.Validity validity)
Description copied from interface: LyGraphicalTreeNode
Updates attribute validity to the given value.

Specified by:
setValidity in interface LyGraphicalTreeNode
Specified by:
setValidity in interface LySetValidityInterface
Parameters:
validity - New value of validity.

setFont

public void setFont(java.lang.String font)
Description copied from interface: LyGraphicalTreeNode
Updates attribute font to the given value.

Specified by:
setFont in interface LyGraphicalTreeNode
Specified by:
setFont in interface LySetFontInterface
Parameters:
font - New value of font.

setColor

public void setColor(java.lang.String color)
Description copied from interface: LyGraphicalTreeNode
Updates attribute color to the given value.

Specified by:
setColor in interface LyGraphicalTreeNode
Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.

addImage

public void addImage(LyImage images,
                     int pos)
Description copied from interface: LyGraphicalTreeNode
Inserts a sub-component images at given position.

Specified by:
addImage in interface LyGraphicalTreeNode
Parameters:
images - The images to add to images list.
pos - Position where the sub-component is inserted.

removeImage

public void removeImage(LyImage images)
Description copied from interface: LyGraphicalTreeNode
Removes a sub-component images.

Specified by:
removeImage in interface LyGraphicalTreeNode
Parameters:
images - The images to remove to images list.

addTreeNode

public void addTreeNode(LyTreeNode treeNode,
                        int position)
Description copied from interface: LyGraphicalTreeNode
Inserts a sub-component treeNodes at given position.

Specified by:
addTreeNode in interface LyGraphicalTreeNode
Parameters:
treeNode - The treeNodes to add to treeNodes list.
position - Position where the sub-component is inserted.

removeTreeNode

public void removeTreeNode(LyTreeNode treeNode)
Description copied from interface: LyGraphicalTreeNode
Removes a sub-component treeNodes.

Specified by:
removeTreeNode in interface LyGraphicalTreeNode
Parameters:
treeNode - The treeNodes to remove to treeNodes list.

getReloadScript

public java.lang.String getReloadScript()
Description copied from class: LyJQInternalView
this method is to be implemented by internal views to get the reload script for the page element

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com