|
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.LyStrutsInterval
public class LyStrutsInterval
This class implements the Interval object (as described in the dtd) for web viewer.
INTERVAL: Interval
An interval is defined by a begin date and an end date. If the end date is not specified, the
interval is replaced by a point (an image representing a date). An interval has a label and a
color. It may be resizable (it is possible to change its begin and end dates), movable on its
parent line and may have vertical lines on its extremities. It may also have dependencies to
other intervals represented by arrows linking this interval with the pointed intervals. An
interval may also contain periods allowing to split it into several sub-intervals. These periods
are described by a begin date and an end date.
LyInterval
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 | |
---|---|
LyStrutsInterval(LyInterval interval)
Class constructor of an Interval object for the struts target. |
Method Summary | |
---|---|
void |
addPeriod(LyPeriod period,
int pos)
Inserts a sub-component periods at given position. |
java.util.Date |
getBeginDate()
Return the begin date of the interval using the date format. |
java.util.Date |
getEndDate()
Return the end date of the interval using the date format. |
java.util.Date |
parseDate(java.lang.String value)
Parses a date value using date time format and date format. |
void |
refresh()
Refresh frame containing this web object. |
void |
removePeriod(LyPeriod period)
Removes a sub-component periods. |
void |
setBeginDate(java.lang.String beginDate)
Updates attribute beginDate to the given value. |
void |
setCenterLabel(java.lang.String label)
Updates attribute centerLabel to the given value. |
void |
setColor(java.lang.String color)
Updates attribute color to the given value. |
void |
setDependencies(java.lang.String dependencies)
Updates attribute dependencies to the given value. |
void |
setDrawVerticalLines(boolean drawVerticalLines)
Updates attribute drawVerticalLines to the given value. |
void |
setEndDate(java.lang.String endDate)
Updates attribute endDate to the given value. |
void |
setFont(java.lang.String font)
Updates attribute font to the given value. |
void |
setForegroundColor(java.lang.String foregroundColor)
|
void |
setLabel(java.lang.String label)
Updates attribute label to the given value. |
void |
setLeftResizable(boolean leftResizable)
Updates attribute leftResizable to the given value. |
void |
setMovable(boolean movable)
Updates attribute movable to the given value. |
void |
setRightResizable(boolean rightResizable)
Updates attribute rightResizable to the given value. |
void |
setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value. |
void |
setVerticalLinesColor(java.lang.String verticalLinesColor)
Updates attribute verticalLinesColor to the given value. |
void |
writeHtml(LyWebPageWriter pw)
This method does nothing. |
void |
writeInterval(LyWebPageWriter pw)
Writes HTML description corresponding to this interval. |
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, 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 LyStrutsInterval(LyInterval interval)
interval
- the generic Interval defined for every type of view targetsMethod Detail |
---|
public void writeHtml(LyWebPageWriter pw)
writeHtml
in interface LyWebComponent
pw
- the page writerpublic void writeInterval(LyWebPageWriter pw)
pw
- the page writerpublic java.util.Date getBeginDate()
public java.util.Date getEndDate()
public java.util.Date parseDate(java.lang.String value)
value
- the date value
public void addPeriod(LyPeriod period, int pos)
LyGraphicalInterval
addPeriod
in interface LyGraphicalInterval
period
- The periods to add to periods list.pos
- Position where the sub-component is inserted.public void removePeriod(LyPeriod period)
LyGraphicalInterval
removePeriod
in interface LyGraphicalInterval
period
- The periods to remove to periods list.public void setBeginDate(java.lang.String beginDate)
LyGraphicalInterval
setBeginDate
in interface LyGraphicalInterval
beginDate
- New value of beginDate.public void setColor(java.lang.String color)
LyGraphicalInterval
setColor
in interface LyGraphicalInterval
setColor
in interface LySetColorInterface
color
- New value of color.public void setDependencies(java.lang.String dependencies)
LyGraphicalInterval
setDependencies
in interface LyGraphicalInterval
dependencies
- New value of dependencies.public void setDrawVerticalLines(boolean drawVerticalLines)
LyGraphicalInterval
setDrawVerticalLines
in interface LyGraphicalInterval
drawVerticalLines
- Boolean indicating if attribute drawVerticalLines is set or unset.public void setEndDate(java.lang.String endDate)
LyGraphicalInterval
setEndDate
in interface LyGraphicalInterval
endDate
- New value of endDate.public void setFont(java.lang.String font)
LyGraphicalInterval
setFont
in interface LyGraphicalInterval
setFont
in interface LySetFontInterface
font
- New value of font.public void setForegroundColor(java.lang.String foregroundColor)
public void setLabel(java.lang.String label)
LyGraphicalInterval
setLabel
in interface LyGraphicalInterval
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setTooltip(java.lang.String tooltip)
LyGraphicalInterval
setTooltip
in interface LyGraphicalInterval
tooltip
- New value of tooltip.public void setCenterLabel(java.lang.String label)
LyGraphicalInterval
setCenterLabel
in interface LyGraphicalInterval
label
- New value of centerLabel.public void setLeftResizable(boolean leftResizable)
LyGraphicalInterval
setLeftResizable
in interface LyGraphicalInterval
leftResizable
- Boolean indicating if attribute leftResizable is set or unset.public void setMovable(boolean movable)
LyGraphicalInterval
setMovable
in interface LyGraphicalInterval
movable
- Boolean indicating if attribute movable is set or unset.public void setRightResizable(boolean rightResizable)
LyGraphicalInterval
setRightResizable
in interface LyGraphicalInterval
rightResizable
- Boolean indicating if attribute rightResizable is set or unset.public void setVerticalLinesColor(java.lang.String verticalLinesColor)
LyGraphicalInterval
setVerticalLinesColor
in interface LyGraphicalInterval
verticalLinesColor
- New value of verticalLinesColor.public void refresh()
refresh
in class LyWebObject
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |