LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsInterval

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsInterval
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalInterval, LyViewComponent, LyFreeInterface, LySetColorInterface, LySetFontInterface, LySetLabelInterface, LyWebComponent

public class LyStrutsInterval
extends LyWebObject
implements LyGraphicalInterval

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.

See Also:
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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsInterval

public LyStrutsInterval(LyInterval interval)
Class constructor of an Interval object for the struts target.

Parameters:
interval - the generic Interval defined for every type of view targets
Method Detail

writeHtml

public void writeHtml(LyWebPageWriter pw)
This method does nothing.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer

writeInterval

public void writeInterval(LyWebPageWriter pw)
Writes HTML description corresponding to this interval.

Parameters:
pw - the page writer

getBeginDate

public java.util.Date getBeginDate()
Return the begin date of the interval using the date format.

Returns:
the begin date

getEndDate

public java.util.Date getEndDate()
Return the end date of the interval using the date format.

Returns:
the end date

parseDate

public java.util.Date parseDate(java.lang.String value)
Parses a date value using date time format and date format.

Parameters:
value - the date value
Returns:
the parsed date

addPeriod

public void addPeriod(LyPeriod period,
                      int pos)
Description copied from interface: LyGraphicalInterval
Inserts a sub-component periods at given position.

Specified by:
addPeriod in interface LyGraphicalInterval
Parameters:
period - The periods to add to periods list.
pos - Position where the sub-component is inserted.

removePeriod

public void removePeriod(LyPeriod period)
Description copied from interface: LyGraphicalInterval
Removes a sub-component periods.

Specified by:
removePeriod in interface LyGraphicalInterval
Parameters:
period - The periods to remove to periods list.

setBeginDate

public void setBeginDate(java.lang.String beginDate)
Description copied from interface: LyGraphicalInterval
Updates attribute beginDate to the given value.

Specified by:
setBeginDate in interface LyGraphicalInterval
Parameters:
beginDate - New value of beginDate.

setColor

public void setColor(java.lang.String color)
Description copied from interface: LyGraphicalInterval
Updates attribute color to the given value.

Specified by:
setColor in interface LyGraphicalInterval
Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.

setDependencies

public void setDependencies(java.lang.String dependencies)
Description copied from interface: LyGraphicalInterval
Updates attribute dependencies to the given value.

Specified by:
setDependencies in interface LyGraphicalInterval
Parameters:
dependencies - New value of dependencies.

setDrawVerticalLines

public void setDrawVerticalLines(boolean drawVerticalLines)
Description copied from interface: LyGraphicalInterval
Updates attribute drawVerticalLines to the given value.

Specified by:
setDrawVerticalLines in interface LyGraphicalInterval
Parameters:
drawVerticalLines - Boolean indicating if attribute drawVerticalLines is set or unset.

setEndDate

public void setEndDate(java.lang.String endDate)
Description copied from interface: LyGraphicalInterval
Updates attribute endDate to the given value.

Specified by:
setEndDate in interface LyGraphicalInterval
Parameters:
endDate - New value of endDate.

setFont

public void setFont(java.lang.String font)
Description copied from interface: LyGraphicalInterval
Updates attribute font to the given value.

Specified by:
setFont in interface LyGraphicalInterval
Specified by:
setFont in interface LySetFontInterface
Parameters:
font - New value of font.

setForegroundColor

public void setForegroundColor(java.lang.String foregroundColor)

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LyGraphicalInterval
Updates attribute label to the given value.

Specified by:
setLabel in interface LyGraphicalInterval
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.

setTooltip

public void setTooltip(java.lang.String tooltip)
Description copied from interface: LyGraphicalInterval
Updates attribute tooltip to the given value.

Specified by:
setTooltip in interface LyGraphicalInterval
Parameters:
tooltip - New value of tooltip.

setCenterLabel

public void setCenterLabel(java.lang.String label)
Description copied from interface: LyGraphicalInterval
Updates attribute centerLabel to the given value.

Specified by:
setCenterLabel in interface LyGraphicalInterval
Parameters:
label - New value of centerLabel.

setLeftResizable

public void setLeftResizable(boolean leftResizable)
Description copied from interface: LyGraphicalInterval
Updates attribute leftResizable to the given value.

Specified by:
setLeftResizable in interface LyGraphicalInterval
Parameters:
leftResizable - Boolean indicating if attribute leftResizable is set or unset.

setMovable

public void setMovable(boolean movable)
Description copied from interface: LyGraphicalInterval
Updates attribute movable to the given value.

Specified by:
setMovable in interface LyGraphicalInterval
Parameters:
movable - Boolean indicating if attribute movable is set or unset.

setRightResizable

public void setRightResizable(boolean rightResizable)
Description copied from interface: LyGraphicalInterval
Updates attribute rightResizable to the given value.

Specified by:
setRightResizable in interface LyGraphicalInterval
Parameters:
rightResizable - Boolean indicating if attribute rightResizable is set or unset.

setVerticalLinesColor

public void setVerticalLinesColor(java.lang.String verticalLinesColor)
Description copied from interface: LyGraphicalInterval
Updates attribute verticalLinesColor to the given value.

Specified by:
setVerticalLinesColor in interface LyGraphicalInterval
Parameters:
verticalLinesColor - New value of verticalLinesColor.

refresh

public void refresh()
Refresh frame containing this web object.

Overrides:
refresh in class LyWebObject

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com