|
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.LySwingCell
public class LySwingCell
This class implements the Cell object (as described in the dtd) for swing viewer.
LyCell
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingCell(LyCell cell)
Class constructor of a cell object for the Swing target. |
Method Summary | |
---|---|
void |
addCell(LyCell cell,
int pos)
This cell cannot have sub-cells, thus this method does not do anything. |
java.awt.Color |
getColor()
Gets the background color of this cell. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.awt.Image |
getEditionImage()
Returns the image for an editable cell. |
java.awt.Font |
getFont()
Gets the font used for this cell. |
java.awt.Color |
getFontColor()
Gets the background color of this cell. |
java.lang.String |
getId()
Return current component identification (LyGetIdInterface interface). |
java.awt.Image |
getImage()
Returns the image of this cell. |
java.lang.String |
getLabel()
Accessor to the label (LyGetLabelInterface interface). |
LyRow |
getParentRow()
Returns the parent row component. |
LyTable |
getParentTable()
Returns the parent table component. |
java.lang.String |
getTooltip()
Returns the tooltip of this cell. |
int |
getWidth(java.awt.FontMetrics fm)
Returns the width of this cell. |
void |
initialize()
Initializes this object. |
void |
removeCell(LyCell cell)
This cell cannot have sub-cells, thus this method does not do anything. |
void |
setBottomBorderColor(java.lang.String bottomBorderColor)
Updates attribute bottomBorderColor to the given value. |
void |
setBottomLeftImage(java.lang.String bottomLeftImage)
Updates attribute bottomLeftImage to the given value. |
void |
setBottomRightImage(java.lang.String bottomRightImage)
Updates attribute bottomRightImage to the given value. |
void |
setColor(java.lang.String color)
Updates attribute color to the given value. |
void |
setComponent(java.awt.Component c)
(non-Javadoc). |
void |
setContent()
Sets the content of this object. |
void |
setEditable(boolean editable)
Updates attribute editable to the given value. |
void |
setFont(java.lang.String font)
|
void |
setImage(java.lang.String image)
(Modification) Accessor (LySetLabelInterface interface). |
void |
setLabel(java.lang.String label)
Sets the label of the component. |
void |
setLeftBorderColor(java.lang.String leftBorderColor)
Updates attribute leftBorderColor to the given value. |
void |
setObjectId(java.lang.String objectId)
The objectId of this object cannot change. |
void |
setRightBorderColor(java.lang.String rightBorderColor)
Updates attribute rightBorderColor to the given value. |
void |
setSelected(boolean selected)
Updates attribute selected to the given value. |
void |
setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value. |
void |
setTopBorderColor(java.lang.String topBorderColor)
Updates attribute topBorderColor to the given value. |
void |
setTopLeftImage(java.lang.String topLeftImage)
Updates attribute topLeftImage to the given value. |
void |
setTopRightImage(java.lang.String topRightImage)
Updates attribute topRightImage to the given value. |
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
Constructor Detail |
---|
public LySwingCell(LyCell cell)
cell
- a CELL component defined for every type of view targets. This cell is initialized
specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public void setLabel(java.lang.String label)
LySetLabelInterface
setLabel
in interface LyGraphicalCell
setLabel
in interface LySetLabelInterface
label
- new labelpublic void setObjectId(java.lang.String objectId)
setObjectId
in interface LyGraphicalCell
objectId
- New value of objectId.public java.lang.String getLabel()
LyGetLabelInterface
getLabel
in interface LyGetLabelInterface
public int getWidth(java.awt.FontMetrics fm)
fm
- the font metrics used to compute text width.
public void setTooltip(java.lang.String tooltip)
LyGraphicalCell
setTooltip
in interface LyGraphicalCell
tooltip
- New value of tooltip.public java.lang.String getTooltip()
setTooltip(String)
public void setImage(java.lang.String image)
LySetImageInterface
setImage
in interface LyGraphicalCell
setImage
in interface LySetImageInterface
image
- of the image in the properties or image pathpublic java.awt.Image getImage()
setImage(String)
public java.awt.Image getEditionImage()
public java.lang.String getId()
LyGetIdInterface
getId
in interface LyGetIdInterface
public java.awt.Color getColor()
setColor(String)
public java.awt.Color getFontColor()
setColor(String)
public void setColor(java.lang.String color)
LyGraphicalCell
setColor
in interface LyGraphicalCell
setColor
in interface LySetColorInterface
color
- New value of color.public void setBottomBorderColor(java.lang.String bottomBorderColor)
LyGraphicalCell
setBottomBorderColor
in interface LyGraphicalCell
bottomBorderColor
- New value of bottomBorderColor.public void setLeftBorderColor(java.lang.String leftBorderColor)
LyGraphicalCell
setLeftBorderColor
in interface LyGraphicalCell
leftBorderColor
- New value of leftBorderColor.public void setRightBorderColor(java.lang.String rightBorderColor)
LyGraphicalCell
setRightBorderColor
in interface LyGraphicalCell
rightBorderColor
- New value of rightBorderColor.public void setTopBorderColor(java.lang.String topBorderColor)
LyGraphicalCell
setTopBorderColor
in interface LyGraphicalCell
topBorderColor
- New value of topBorderColor.public void setBottomLeftImage(java.lang.String bottomLeftImage)
LyGraphicalCell
setBottomLeftImage
in interface LyGraphicalCell
bottomLeftImage
- New value of bottomLeftImage.public void setBottomRightImage(java.lang.String bottomRightImage)
LyGraphicalCell
setBottomRightImage
in interface LyGraphicalCell
bottomRightImage
- New value of bottomRightImage.public void setTopLeftImage(java.lang.String topLeftImage)
LyGraphicalCell
setTopLeftImage
in interface LyGraphicalCell
topLeftImage
- New value of topLeftImage.public void setTopRightImage(java.lang.String topRightImage)
LyGraphicalCell
setTopRightImage
in interface LyGraphicalCell
topRightImage
- New value of topRightImage.public void setEditable(boolean editable)
LyGraphicalCell
setEditable
in interface LyGraphicalCell
setEditable
in interface LySetEditableInterface
editable
- Boolean indicating if attribute editable is set or unset.public void setSelected(boolean selected)
LyGraphicalCell
setSelected
in interface LyGraphicalCell
setSelected
in interface LySetSelectedInterface
selected
- Boolean indicating if attribute selected is set or unset.public void setFont(java.lang.String font)
public java.awt.Font getFont()
setFont(String)
public void addCell(LyCell cell, int pos)
addCell
in interface LyGraphicalCell
cell
- The cells to add to cells list.pos
- Position where the sub-component is inserted.removeCell(LyCell)
,
LyGraphicalCell.addCell(LyCell, int)
public void removeCell(LyCell cell)
removeCell
in interface LyGraphicalCell
cell
- The cells to remove to cells list.addCell(LyCell, int)
,
LyGraphicalCell.removeCell(LyCell)
public LyRow getParentRow()
public LyTable getParentTable()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void setComponent(java.awt.Component c)
LySwingComponent.getComponent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |