|
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.LySwingRow
public class LySwingRow
This class implements the Row object (as described in the dtd) for swing viewer.
A row of a list is a set of non-empty cells (or input fields). It is possible to indicate if the row is selected, if an image is assigned to it and if a tooltip is associated to it.
LyRow
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingRow(LyRow row)
Class constructor of a Row object for the Swing target. |
Method Summary | |
---|---|
void |
addComponent(LyComponent component,
int pos)
Inserts a sub-component component at given position. |
java.lang.Object |
getCell(int i)
Gets the cell element at the specified index. |
java.util.Vector<java.lang.Object> |
getCells()
Gets the vector of the LySwingCell objects. |
java.util.Vector<java.lang.Object> |
getCells(boolean reset)
Gets the vector of the LySwingCell objects. |
java.awt.Image |
getClosedRowImage()
Returns the image for a closed row. |
java.awt.Color |
getColor()
Gets the row color. |
int |
getDepth()
Returns the depth of the row in the table when hierarchical. |
java.lang.String |
getId()
Return current component identification (LyGetIdInterface interface). |
java.awt.Image |
getImage()
Gets the row image. |
java.awt.Image |
getOpenRowImage()
Returns the image for an open row. |
LyTable |
getParentTable()
Returns the parent table component. |
java.lang.String |
getToolTip()
Gets the translated tooltip of this row. |
void |
initialize()
Sets the initial image and color parameters for this row. |
boolean |
isSelected()
Gets the selected state of this row. |
boolean |
isSensitive()
Indicates whether this row is sensitive or not. |
void |
removeComponent(LyComponent component)
Removes a sub-component component. |
void |
setBorderColor(java.lang.String color)
(non-Javadoc) |
void |
setBorderHeight(int height)
(non-Javadoc) |
void |
setColor(java.lang.String color)
Sets the color of this row. |
void |
setColor(java.lang.String color,
boolean update)
Sets the color of this row. |
void |
setContent()
Sets the content of this row. |
void |
setHidden(boolean hidden)
(non-Javadoc). |
void |
setImage(java.lang.String image)
Sets the image displayed by this row. |
void |
setIndex(java.lang.String index)
Updates attribute index to the given value. |
void |
setLabel(java.lang.String label)
Updates the label for current row. |
void |
setOpen(boolean open)
The open property is already set when this method is called and only the swing table is updated. |
void |
setResetRowComponents(boolean reset)
Indicates if a reset of the row may be performed. |
void |
setTooltip(java.lang.String tooltip)
The tooltip is already set when this method is called and only the swing component of the row is updated. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getComponent, 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
Constructor Detail |
---|
public LySwingRow(LyRow row)
row
- a ROW component defined for every type of view targets. This row is initialized
for the swing view and filled with its default values.Method Detail |
---|
public void initialize()
public void setContent()
public java.awt.Color getColor()
setColor(String)
public java.awt.Image getImage()
setImage(String)
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalRow
setImage
in interface LySetImageInterface
image
- a string that identifies the image (a key or a path)getImage()
,
setImage(String, boolean)
,
LySetImageInterface.setImage(java.lang.String)
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalRow
setLabel
in interface LySetLabelInterface
label
- the label for this rowLyGraphicalRow.setTooltip(java.lang.String)
public void setIndex(java.lang.String index)
LyGraphicalRow
setIndex
in interface LyGraphicalRow
index
- New value of index.leon.view.setinterface.LyGraphicalRow#setIndex(java.lang.String)
public void setTooltip(java.lang.String tooltip)
setTooltip
in interface LyGraphicalRow
tooltip
- the tooltip for this row, not used in this implementationLyGraphicalRow.setTooltip(java.lang.String)
public boolean isSensitive()
public java.lang.String getToolTip()
public void setColor(java.lang.String color)
setColor
in interface LyGraphicalRow
setColor
in interface LySetColorInterface
color
- a string that identifies the color (a key or a path)getColor()
,
LySetColorInterface.setColor(String)
public void setColor(java.lang.String color, boolean update)
color
- a string that identifies the color (a key or a path)update
- indicates if the table must be updated (by calling the updateTable method)getColor()
,
LySetColorInterface.setColor(String)
public void setOpen(boolean open)
setOpen
in interface LyGraphicalRow
open
- the open property, not used in this implementationLyGraphicalRow.setOpen(boolean)
public void setHidden(boolean hidden)
setHidden
in interface LyGraphicalRow
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.LySetHiddenInterface.setHidden(boolean)
public void setBorderHeight(int height)
setBorderHeight
in interface LyGraphicalRow
height
- New value of borderHeight.LyGraphicalRow.setBorderHeight(int)
public void setBorderColor(java.lang.String color)
setBorderColor
in interface LyGraphicalRow
color
- New value of borderColor.LyGraphicalRow.setBorderColor(String)
public void addComponent(LyComponent component, int pos)
addComponent
in interface LyGraphicalRow
component
- The component to add to components list.pos
- Position where the sub-component is inserted.public void removeComponent(LyComponent component)
removeComponent
in interface LyGraphicalRow
component
- The component to remove to components list.public void setResetRowComponents(boolean reset)
reset
- true if a reset may be performed, false otherwise.public java.lang.String getId()
LyGetIdInterface
getId
in interface LyGetIdInterface
public boolean isSelected()
public java.lang.Object getCell(int i)
i
- the position of the cell in this row
public java.util.Vector<java.lang.Object> getCells()
public java.util.Vector<java.lang.Object> getCells(boolean reset)
reset
- indicates if the list of cells must be rebuilt.
public int getDepth()
public java.awt.Image getOpenRowImage()
public java.awt.Image getClosedRowImage()
public LyTable getParentTable()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |