LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingEntry

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.win.swing.LySwingObject
          extended by leon.view.win.swing.LySwingEntry
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalEntry, LyViewComponent, LyFreeInterface, LySetImageInterface, LySetValidityInterface, LySwingComponent

public class LySwingEntry
extends LySwingObject
implements LyGraphicalEntry

This class implements the dictionary Entry object (as described in the dtd) for swing viewer.

An entry represents a node or a leaf of a dictionary. An entry may contain several sub-entries.

See Also:
LyDictionary

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySwingEntry(LyEntry entry)
          Class constructor of an Entry object for the Swing target.
 
Method Summary
 void computeTreeNodeValidity(LyComponent node)
          Computes the subtree validity.
 java.awt.Component getComponent()
          Returns null.
 javax.swing.tree.DefaultMutableTreeNode getMutableTreeNode()
          Gets the internal mutable tree node of this entry.
 LyJTreeElement getTreeElement()
          Gets the associated tree element.
 void initialize()
          Initialises the component.
 void setChecked(boolean status)
          Doesn't do anything.
 void setContent()
          Fills this component with its associated entry values.
 void setImage(java.lang.String image)
          Doesn't do anything.
 void setOpen(boolean open)
          Doesn't do anything.
 void setValidity(LyTreeNode.Validity validity)
          (non-Javadoc).
 
Methods inherited from class leon.view.win.swing.LySwingObject
getBounds, getChildrenBounds, getDefaultFrame
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, 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

__VERSION

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

LySwingEntry

public LySwingEntry(LyEntry entry)
Class constructor of an Entry object for the Swing target.

Parameters:
entry - an ENTRY component defined for every type of view targets. This component is initialized specificaly for the Swing view.
Method Detail

initialize

public void initialize()
Initialises the component. Retrieves the parent dictionary of this entry then configures the swing implementation of this tree element.


getComponent

public java.awt.Component getComponent()
Returns null.

Specified by:
getComponent in interface LySwingComponent
Overrides:
getComponent in class LySwingObject
Returns:
this Swing view component
See Also:
LySwingComponent.getComponent()

setContent

public void setContent()
Fills this component with its associated entry values.


setChecked

public void setChecked(boolean status)
Doesn't do anything.

Specified by:
setChecked in interface LyGraphicalEntry
Parameters:
status - Boolean indicating if attribute checked is set or unset.
See Also:
LyGraphicalEntry.setChecked(boolean)

setOpen

public void setOpen(boolean open)
Doesn't do anything.

Specified by:
setOpen in interface LyGraphicalEntry
Parameters:
open - Boolean indicating if attribute open is set or unset.
See Also:
LyGraphicalEntry.setOpen(boolean)

setImage

public void setImage(java.lang.String image)
Doesn't do anything.

Specified by:
setImage in interface LyGraphicalEntry
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.
See Also:
LySetImageInterface.setImage(java.lang.String)

getTreeElement

public LyJTreeElement getTreeElement()
Gets the associated tree element.

Returns:
the tree element of this entry

getMutableTreeNode

public javax.swing.tree.DefaultMutableTreeNode getMutableTreeNode()
Gets the internal mutable tree node of this entry.

Returns:
the internal tree node

setValidity

public void setValidity(LyTreeNode.Validity validity)
(non-Javadoc).

Specified by:
setValidity in interface LyGraphicalEntry
Specified by:
setValidity in interface LySetValidityInterface
Parameters:
validity - New value of validity.
See Also:
leon.view.setinterface.LySetValidityInterface#setValidity(java.lang.String)

computeTreeNodeValidity

public void computeTreeNodeValidity(LyComponent node)
Computes the subtree validity.

Parameters:
node - current node which may be a LyTreeNode or a LyEntry (dictionnary)
See Also:
LyJTreeElementEntryImpl.computeTreeNodeValidity(LyComponent)

(c) January 2013 - W4 S.A.

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