|
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.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingFieldItem
leon.view.win.swing.LySwingPanel
leon.view.win.swing.LySwingTree
public class LySwingTree
This class implements the Tree object (as described in the dtd) for swing viewer.
A tree allows to display a set of elements under the form of a tree. It is possible to specify its selection mode (none, simple, multiple or sensitive).
Such a component is interesting to display a hierarchy of objects of an application. It allows to not display some sub-sets of these objects.
LySwingTree
Nested Class Summary | |
---|---|
class |
LySwingTree._LyTreeComponentAdapter
Handles component resize and checks if minimum sizes are valid. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.awt.Dimension |
MINIMUM_SIZE
Minimum size for the viewport. |
Constructor Summary | |
---|---|
LySwingTree(LyTree tree)
Class constructor of a Tree object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.lang.Object |
getLock()
Get a lock on the table to prevent concurrent access on rows |
LySelectionTransmitter |
getSelectionTransmitter()
(non-Javadoc). |
void |
initialize()
Initializes the tree component cell renderers, fonts and colors, then register its events listeners. |
boolean |
isIdle()
Returns the idle mode of this tree. |
void |
selectionPerformed(LySelectionEvent selectionEvent)
(non-Javadoc). |
void |
setActiveNode(java.lang.String activeNode)
This tree doesn't have active nodes. |
void |
setColor(java.lang.String color)
This implementation does not set the tree background color yet. |
void |
setContent()
The tree is empty, thus this content setting doesn't do anything. |
void |
setFont(java.lang.String font)
This implementation does not set the font yet. |
void |
setForegroundColor(java.lang.String color)
This implementation does not set the tree foreground color yet. |
void |
setIdle(boolean status)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
This implementation does not set the tree title label. |
void |
setPopupMenu(LyPopupMenu popupMenu)
Adds the specified popup menu to the tree component and shows it. |
void |
setTreeNode(LyTreeNode treeNode)
Sets the root tree node. |
void |
setWaiting(boolean status)
Sets the waiting status of the swing tree component. |
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 |
---|
public static final java.lang.String __VERSION
public static java.awt.Dimension MINIMUM_SIZE
Constructor Detail |
---|
public LySwingTree(LyTree tree)
tree
- a TREE component defined for every type of view targets. This tree is initialized
specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalTree
setLabel
in interface LySetLabelInterface
label
- new label, not used in this implementationLySetLabelInterface.setLabel(java.lang.String)
public void setColor(java.lang.String color)
color
- value of background color, not usedpublic void setFont(java.lang.String font)
font
- value of label font, not usedpublic void setForegroundColor(java.lang.String color)
color
- value of foreground color, not usedpublic void setTreeNode(LyTreeNode treeNode)
setTreeNode
in interface LyGraphicalTree
treeNode
- new node at the top level of the treeLyGraphicalTree.setTreeNode(LyTreeNode)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void selectionPerformed(LySelectionEvent selectionEvent)
selectionPerformed
in interface LySelectionListener
selectionEvent
- description of the selection which has occuredLySelectionListener.selectionPerformed(leon.view.event.LySelectionEvent)
public void setWaiting(boolean status)
LySwingViewManager.DEFAULT_CURSOR
or LySwingViewManager.WAIT_CURSOR
) as well as the enabled property of this tree.
setWaiting
in interface LySetWaitingInterface
status
- the waiting status to use on this tree componentLySetWaitingInterface.setWaiting(boolean)
public void setIdle(boolean status)
setIdle
in interface LySetIdleInterface
status
- new idle status (LySetIdleInterface interface)LySetIdleInterface.setIdle(boolean)
public void setPopupMenu(LyPopupMenu popupMenu)
setPopupMenu
in interface LySetPopupMenuInterface
setPopupMenu
in class LySwingPanel
popupMenu
- the popup menu to showLySetPopupMenuInterface.setPopupMenu(LyPopupMenu)
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
getActionTransmitter
in class LySwingFieldItem
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
getSelectionTransmitter
in class LySwingFieldItem
null
LyEventTransmitter.getSelectionTransmitter()
public void setActiveNode(java.lang.String activeNode)
setActiveNode
in interface LyGraphicalTree
activeNode
- node to activate. Not used in this implementation.LyGraphicalTree.setActiveNode(java.lang.String)
public boolean isIdle()
isIdle
in interface LyIsIdleInterface
LyIsIdleInterface.isIdle()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public java.lang.Object getLock()
getLock
in interface LyGetLockInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |