LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJTreeElementImpl._LyNodeContent

java.lang.Object
  extended by leon.view.win.swing.component.LyJTreeElementImpl._LyNodeContent
Enclosing class:
LyJTreeElementImpl

public static class LyJTreeElementImpl._LyNodeContent
extends java.lang.Object

This class implements the informations that are useful to correctly display a node.


Constructor Summary
LyJTreeElementImpl._LyNodeContent(java.awt.Image image, java.lang.String label, boolean selected, boolean open)
          Creates a node with the specified informations.
LyJTreeElementImpl._LyNodeContent(java.awt.Image image, java.lang.String label, java.lang.String tooltip, boolean selected, boolean open)
          Creates a node with the specified informations.
 
Method Summary
 java.awt.Image getImage()
          Gets the image of this node.
 java.lang.String getLabel()
          Gets the text label of this node.
 java.lang.String getTooltip()
          Gets the tooltip text of this node.
 boolean isOpen()
          Indicates that this node is opened.
 boolean isSelected()
          Indicates that this node is selected.
 void setImage(java.awt.Image im)
          Sets the image of this node.
 void setLabel(java.lang.String label)
          Sets the text label of this node.
 void setOpen(boolean open)
          Sets the opened status of this node.
 void setSelected(boolean selected)
          Sets the selected status of this node.
 void setTooltip(java.lang.String tooltip)
          Sets the tooltip text of this node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LyJTreeElementImpl._LyNodeContent

public LyJTreeElementImpl._LyNodeContent(java.awt.Image image,
                                         java.lang.String label,
                                         boolean selected,
                                         boolean open)
Creates a node with the specified informations. The tooltip text of this node content is not set.

Parameters:
image - the image of this node
label - the text label
selected - Indicates that this node is selected.
open - Indicates that this node is opened.

LyJTreeElementImpl._LyNodeContent

public LyJTreeElementImpl._LyNodeContent(java.awt.Image image,
                                         java.lang.String label,
                                         java.lang.String tooltip,
                                         boolean selected,
                                         boolean open)
Creates a node with the specified informations.

Parameters:
image - the image of this node
label - the text label
tooltip - the tooltip text
selected - Indicates that this node is selected.
open - Indicates that this node is opened.
Method Detail

getImage

public java.awt.Image getImage()
Gets the image of this node.

Returns:
the image
See Also:
setImage(Image)

setImage

public void setImage(java.awt.Image im)
Sets the image of this node.

Parameters:
im - the new image
See Also:
getImage()

getLabel

public java.lang.String getLabel()
Gets the text label of this node.

Returns:
the label
See Also:
setLabel(String)

setLabel

public void setLabel(java.lang.String label)
Sets the text label of this node.

Parameters:
label - the new text label
See Also:
getLabel()

getTooltip

public java.lang.String getTooltip()
Gets the tooltip text of this node.

Returns:
the tooltip
See Also:
setTooltip(String)

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets the tooltip text of this node.

Parameters:
tooltip - the new tooltip
See Also:
getTooltip()

isSelected

public boolean isSelected()
Indicates that this node is selected.

Returns:
true if this node is selected, false otherwise
See Also:
setSelected(boolean)

setSelected

public void setSelected(boolean selected)
Sets the selected status of this node.

Parameters:
selected - Indicates that this node is selected or not.
See Also:
isSelected()

isOpen

public boolean isOpen()
Indicates that this node is opened.

Returns:
true if this node is opened, false otherwise
See Also:
setOpen(boolean)

setOpen

public void setOpen(boolean open)
Sets the opened status of this node.

Parameters:
open - Indicates that this node is opened or not.
See Also:
isOpen()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

(c) January 2013 - W4 S.A.

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