|
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.web.LyWebObject
leon.view.web.struts.LyStrutsLine
public class LyStrutsLine
This class implements the Line object (as described in the dtd) for web viewer.
LINE: Line of a planning
LyTreeNode
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsLine(LyLine line)
Class constructor of a Line object for the Struts target. |
Method Summary | |
---|---|
void |
addComponent(LyComponent component,
int pos)
Inserts a sub-component components at given position. |
int |
computeHeight()
Computes the height of the line. |
void |
computeLineBounds()
Compute line bounds and send it to the Gantt component. |
void |
drawLine(java.awt.Graphics g,
java.awt.Rectangle bounds,
int scaleHeight)
Draws the line on the planning. |
java.lang.String |
getBeginning()
Gets the begining of the HTML representation : the parent line HTML representation. |
java.util.Date |
getLimitDate(boolean max)
Gets the limit date for this line (minimum or maximum). |
boolean |
hasChildSelected()
Looks for selected children inside this line. |
void |
prepareBeginning(LyStrutsLine parent,
boolean isLast)
Prepare the beginnining : builds the given parent line string representation. |
void |
removeComponent(LyComponent component)
Removes a sub-component components. |
void |
setColor(java.lang.String color)
Updates attribute color to the given value. |
void |
setFont(java.lang.String font)
Updates attribute font to the given value. |
void |
setForegroundColor(java.lang.String color)
|
void |
setHidden(boolean hidden)
Updates attribute hidden to the given value. |
void |
setImage(java.lang.String key)
Updates attribute image to the given value. |
void |
setLabel(java.lang.String label)
Updates attribute label to the given value. |
void |
setOpen(boolean open)
Updates attribute open to the given value. |
void |
setSelected(boolean status)
Updates attribute selected to the given value. |
void |
setSuperLineColor(java.lang.String superLineColor)
Updates attribute superLineColor to the given value. |
void |
setSuperLineHidden(boolean superLineHidden)
Updates attribute superLineHidden to the given value. |
void |
setSuperLineLabel(java.lang.String label)
Updates attribute superLineLabel to the given value. |
void |
setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
void |
writeLine(LyWebPageWriter pw,
LyStrutsLine parent,
boolean isLast)
Write HTML description corresponding to this line. |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, 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 LyStrutsLine(LyLine line)
treeNode
- the generic Tree Node defined for every type of view targetsMethod Detail |
---|
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic java.lang.String getBeginning()
public void prepareBeginning(LyStrutsLine parent, boolean isLast)
parent
- the parent lineisLast
- true if the line is the lastpublic int computeHeight()
public void computeLineBounds()
public void writeLine(LyWebPageWriter pw, LyStrutsLine parent, boolean isLast)
pw
- the page writerparent
- the parent lineisLast
- true if this line is the last onepublic void drawLine(java.awt.Graphics g, java.awt.Rectangle bounds, int scaleHeight)
g
- the graphic contextbounds
- the bounds of place reserved for the linescaleHeight
- scale heightpublic boolean hasChildSelected()
public java.util.Date getLimitDate(boolean max)
max
- indicate if maximum or minimum date must be returned and if end date is null, we
consider begin date instead.
public void setLabel(java.lang.String label)
LyGraphicalLine
setLabel
in interface LyGraphicalLine
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setTooltip(java.lang.String tooltip)
LyGraphicalLine
setTooltip
in interface LyGraphicalLine
tooltip
- New value of tooltip.public void setSelected(boolean status)
LyGraphicalLine
setSelected
in interface LyGraphicalLine
setSelected
in interface LySetSelectedInterface
status
- Boolean indicating if attribute selected is set or unset.public void setHidden(boolean hidden)
LyGraphicalLine
setHidden
in interface LyGraphicalLine
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.public void setImage(java.lang.String key)
LyGraphicalLine
setImage
in interface LyGraphicalLine
setImage
in interface LySetImageInterface
key
- New value of image.public void setOpen(boolean open)
LyGraphicalLine
setOpen
in interface LyGraphicalLine
open
- Boolean indicating if attribute open is set or unset.public void setColor(java.lang.String color)
LyGraphicalLine
setColor
in interface LyGraphicalLine
setColor
in interface LySetColorInterface
color
- New value of color.public void setFont(java.lang.String font)
LyGraphicalLine
setFont
in interface LyGraphicalLine
setFont
in interface LySetFontInterface
font
- New value of font.public void setForegroundColor(java.lang.String color)
public void addComponent(LyComponent component, int pos)
LyGraphicalLine
addComponent
in interface LyGraphicalLine
component
- The components to add to components list.pos
- Position where the sub-component is inserted.public void removeComponent(LyComponent component)
LyGraphicalLine
removeComponent
in interface LyGraphicalLine
component
- The components to remove to components list.public void setSuperLineColor(java.lang.String superLineColor)
LyGraphicalLine
setSuperLineColor
in interface LyGraphicalLine
superLineColor
- New value of superLineColor.public void setSuperLineLabel(java.lang.String label)
LyGraphicalLine
setSuperLineLabel
in interface LyGraphicalLine
label
- New value of superLineLabel.public void setSuperLineHidden(boolean superLineHidden)
LyGraphicalLine
setSuperLineHidden
in interface LyGraphicalLine
superLineHidden
- Boolean indicating if attribute superLineHidden is set or unset.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |