LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyInterval

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyInterval
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetColorInterface, LySetFontInterface, LySetLabelInterface

public class LyInterval
extends LyComponent
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LySetFontInterface, LySetColorInterface

The LyInterval class is a generated Java implementation that corresponds to the element INTERVAL of the descriptive grammar of the views (views.dtd). <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 splitting it into several sub-intervals. These periods are described by a begin date and an end date.

See Also:
See also tag INTERVAL of grammar leon_views.dtd.

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyInterval()
          Default constructor.
 
Method Summary
 void addPeriod(LyPeriod period)
          Adds a sub-component period.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBeginDate()
          Gets value of beginDate.
 java.lang.String getCenterLabel()
          Gets value of centerLabel.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getDependencies()
          Gets value of dependencies.
 java.lang.String getEndDate()
          Gets value of endDate.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getLabel()
          Gets value of label.
 LyPeriod getPeriod(int i)
          Get sub-component Period of index i.
 int getPeriodCount()
          Get sub-component Period count.
 LyInterval getTemplate()
          Gets value of template.
 java.lang.String getTooltip()
          Gets value of tooltip.
 java.lang.String getVerticalLinesColor()
          Gets value of verticalLinesColor.
 void insertPeriod(LyPeriod period, int pos)
          Inserts a sub-component period at given position.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultFont()
          Checks whether the font attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 boolean isDefaultVerticalLinesColor()
          Checks whether the verticalLinesColor attribute is valuated to the default value.
 boolean isDrawVerticalLines()
          Checks if value of attribute drawVerticalLines is set.
 boolean isLeftResizable()
          Checks if value of attribute leftResizable is set.
 boolean isMovable()
          Checks if value of attribute movable is set.
 boolean isRightResizable()
          Checks if value of attribute rightResizable is set.
 void removePeriod(LyPeriod period)
          Removes a sub-component period.
 void setBeginDate(java.lang.String beginDate)
          Sets attribute beginDate to the given value.
 void setCenterLabel(java.lang.String centerLabel)
          Sets attribute centerLabel to the given value.
 void setColor(java.lang.String color)
          Sets attribute color to the given value.
 void setDependencies(java.lang.String dependencies)
          Sets attribute dependencies to the given value.
 void setDrawVerticalLines(boolean drawVerticalLines)
          Sets attribute drawVerticalLines to the given value.
 void setEndDate(java.lang.String endDate)
          Sets attribute endDate to the given value.
 void setFont(java.lang.String font)
          Sets attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setLeftResizable(boolean leftResizable)
          Sets attribute leftResizable to the given value.
 void setMovable(boolean movable)
          Sets attribute movable to the given value.
 void setRightResizable(boolean rightResizable)
          Sets attribute rightResizable to the given value.
 void setTemplate(LyInterval template)
          Initializes attribute template to the given value.
 void setTooltip(java.lang.String tooltip)
          Sets attribute tooltip to the given value.
 void setVerticalLinesColor(java.lang.String verticalLinesColor)
          Sets attribute verticalLinesColor to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

LyInterval

public LyInterval()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyInterval getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getCenterLabel

public java.lang.String getCenterLabel()
Gets value of centerLabel.

Returns:
value of centerLabel.

getTooltip

public java.lang.String getTooltip()
Gets value of tooltip.

Returns:
value of tooltip.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getColor

public java.lang.String getColor()
Gets value of color.

Returns:
value of color.

isDefaultColor

public boolean isDefaultColor()
Checks whether the color attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getBeginDate

public java.lang.String getBeginDate()
Gets value of beginDate.

Returns:
value of beginDate.

getEndDate

public java.lang.String getEndDate()
Gets value of endDate.

Returns:
value of endDate.

isLeftResizable

public boolean isLeftResizable()
Checks if value of attribute leftResizable is set.

Returns:
true if leftResizable is set, false otherwise.

isRightResizable

public boolean isRightResizable()
Checks if value of attribute rightResizable is set.

Returns:
true if rightResizable is set, false otherwise.

isMovable

public boolean isMovable()
Checks if value of attribute movable is set.

Returns:
true if movable is set, false otherwise.

isDrawVerticalLines

public boolean isDrawVerticalLines()
Checks if value of attribute drawVerticalLines is set.

Returns:
true if drawVerticalLines is set, false otherwise.

getVerticalLinesColor

public java.lang.String getVerticalLinesColor()
Gets value of verticalLinesColor.

Returns:
value of verticalLinesColor.

isDefaultVerticalLinesColor

public boolean isDefaultVerticalLinesColor()
Checks whether the verticalLinesColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getDependencies

public java.lang.String getDependencies()
Gets value of dependencies.

Returns:
value of dependencies.

getPeriod

public LyPeriod getPeriod(int i)
Get sub-component Period of index i.

Parameters:
i - the index of the Period to get.
Returns:
sub-component Period of index i.

getPeriodCount

public int getPeriodCount()
Get sub-component Period count.

Returns:
sub-component Period count.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyInterval template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

public void setLabel(java.lang.String label)
Sets attribute label to the given value.

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

setCenterLabel

public void setCenterLabel(java.lang.String centerLabel)
Sets attribute centerLabel to the given value.

Parameters:
centerLabel - New value of centerLabel.

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value.

Parameters:
tooltip - New value of tooltip.

setFont

public void setFont(java.lang.String font)
Sets attribute font to the given value.

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

setColor

public void setColor(java.lang.String color)
Sets attribute color to the given value.

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

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setBeginDate

public void setBeginDate(java.lang.String beginDate)
Sets attribute beginDate to the given value.

Parameters:
beginDate - New value of beginDate.

setEndDate

public void setEndDate(java.lang.String endDate)
Sets attribute endDate to the given value.

Parameters:
endDate - New value of endDate.

setLeftResizable

public void setLeftResizable(boolean leftResizable)
Sets attribute leftResizable to the given value.

Parameters:
leftResizable - Boolean indicating if attribute leftResizable is set or unset.

setRightResizable

public void setRightResizable(boolean rightResizable)
Sets attribute rightResizable to the given value.

Parameters:
rightResizable - Boolean indicating if attribute rightResizable is set or unset.

setMovable

public void setMovable(boolean movable)
Sets attribute movable to the given value.

Parameters:
movable - Boolean indicating if attribute movable is set or unset.

setDrawVerticalLines

public void setDrawVerticalLines(boolean drawVerticalLines)
Sets attribute drawVerticalLines to the given value.

Parameters:
drawVerticalLines - Boolean indicating if attribute drawVerticalLines is set or unset.

setVerticalLinesColor

public void setVerticalLinesColor(java.lang.String verticalLinesColor)
Sets attribute verticalLinesColor to the given value.

Parameters:
verticalLinesColor - New value of verticalLinesColor.

setDependencies

public void setDependencies(java.lang.String dependencies)
Sets attribute dependencies to the given value.

Parameters:
dependencies - New value of dependencies.

addPeriod

public void addPeriod(LyPeriod period)
Adds a sub-component period.

Parameters:
period - The period to add to periods list.

insertPeriod

public void insertPeriod(LyPeriod period,
                         int pos)
Inserts a sub-component period at given position.

Parameters:
period - The period to add to periods list.
pos - Position where the sub-component is inserted.

removePeriod

public void removePeriod(LyPeriod period)
Removes a sub-component period.

Parameters:
period - The period to remove to periods list.
Throws:
java.lang.IllegalStateException - if periods list is empty.
java.lang.IllegalArgumentException - if periods list doesn't contain period.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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