LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJTreeElementEntryImpl

java.lang.Object
  extended by leon.view.win.swing.component.LyJTreeElementImpl
      extended by leon.view.win.swing.component.LyJTreeElementEntryImpl
All Implemented Interfaces:
LyJTreeElement

public class LyJTreeElementEntryImpl
extends LyJTreeElementImpl

Implementation of a LyJTreeElement for a Dictionnary.

See Also:
LyJTreeElement, LyDictionary

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.win.swing.component.LyJTreeElementImpl
LyJTreeElementImpl._LyMutableTreeNode, LyJTreeElementImpl._LyNodeContent
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyJTreeElementEntryImpl()
          Creates a default tree element.
LyJTreeElementEntryImpl(LyEntry entry)
          Creates a tree element for a class entry.
 
Method Summary
 void backupChildrenValidity(LyEntry node)
          Backups the children validity status of the specified node.
 void changeValidity()
          (non-Javadoc).
 void computeTreeNodeValidity(LyComponent node)
          (non-Javadoc).
 LyEnvironment getEnvironment()
          (non-Javadoc).
 java.lang.String getId()
          (non-Javadoc).
 java.lang.String getLabel()
          (non-Javadoc).
 LyEntry getRootEntry(LyEntry treeNode)
          Gets the top level entry of the specified tree node.
 LyComponent getViewComponent()
          Gets the associated view component of this tree element class entry.
 boolean isOpen()
          (non-Javadoc).
 boolean isSelected()
          (non-Javadoc).
 void updateValidityFromView()
          (non-Javadoc).
 
Methods inherited from class leon.view.win.swing.component.LyJTreeElementImpl
addAdditionalImage, backupChildrenValidity, clearValidityBackupInfos, getAdditionalImages, getColor, getContent, getEmptyCheckboxImage, getFont, getFontColor, getHeightFactor, getMutableTreeNode, getRootTreeNode, getSelectedCheckboxImage, getSelectedColor, getSelectedFontColor, getTree, getTreePath, getValidityImageIndex, getValidityRectangle, removeAdditionalImage, setEmptyCheckboxImage, setExpandable, setHeightFactor, setMutableTreeNode, setSelectedCheckboxImage, setTree, setValidityImage, setValidityRectangle, treeCollapsed, treeExpanded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyJTreeElementEntryImpl

public LyJTreeElementEntryImpl()
Creates a default tree element.


LyJTreeElementEntryImpl

public LyJTreeElementEntryImpl(LyEntry entry)
Creates a tree element for a class entry.

Parameters:
entry - the class entry
Method Detail

getViewComponent

public LyComponent getViewComponent()
Gets the associated view component of this tree element class entry.

Returns:
the view component

isSelected

public boolean isSelected()
(non-Javadoc).

Specified by:
isSelected in interface LyJTreeElement
Overrides:
isSelected in class LyJTreeElementImpl
Returns:
true if this tree node is selected, false otherwise
See Also:
LyJTreeElement.isSelected()

getLabel

public java.lang.String getLabel()
(non-Javadoc).

Specified by:
getLabel in interface LyJTreeElement
Overrides:
getLabel in class LyJTreeElementImpl
Returns:
the label of this tree node
See Also:
LyJTreeElement.getLabel()

getEnvironment

public LyEnvironment getEnvironment()
(non-Javadoc).

Specified by:
getEnvironment in interface LyJTreeElement
Overrides:
getEnvironment in class LyJTreeElementImpl
Returns:
the tree node environment
See Also:
LyJTreeElement.getEnvironment()

isOpen

public boolean isOpen()
(non-Javadoc).

Specified by:
isOpen in interface LyJTreeElement
Overrides:
isOpen in class LyJTreeElementImpl
Returns:
true if this tree node is opened, false otherwise
See Also:
LyJTreeElement.isOpen()

getId

public java.lang.String getId()
(non-Javadoc).

Specified by:
getId in interface LyJTreeElement
Overrides:
getId in class LyJTreeElementImpl
Returns:
the id of this tree node
See Also:
LyJTreeElement.getId()

updateValidityFromView

public void updateValidityFromView()
(non-Javadoc).

Overrides:
updateValidityFromView in class LyJTreeElementImpl
See Also:
LyJTreeElementImpl.updateValidityFromView()

changeValidity

public void changeValidity()
(non-Javadoc).

Specified by:
changeValidity in interface LyJTreeElement
Overrides:
changeValidity in class LyJTreeElementImpl
See Also:
LyJTreeElement.changeValidity()

getRootEntry

public LyEntry getRootEntry(LyEntry treeNode)
Gets the top level entry of the specified tree node.

Parameters:
treeNode - the tree element to find its root tree entry
Returns:
the top level root tree entry

computeTreeNodeValidity

public void computeTreeNodeValidity(LyComponent node)
(non-Javadoc).

Overrides:
computeTreeNodeValidity in class LyJTreeElementImpl
Parameters:
node - the current node which may be a LySwingTreeNode or a LySwingEntry (dictionnary).
See Also:
LyJTreeElementImpl.computeTreeNodeValidity(leon.view.LyComponent)

backupChildrenValidity

public void backupChildrenValidity(LyEntry node)
Backups the children validity status of the specified node.

Parameters:
node - the node to backup

(c) January 2013 - W4 S.A.

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