LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyDay

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyDay
All Implemented Interfaces:
LyGetValueInterface, LySetColorInterface, LySetValueInterface

public class LyDay
extends LyComponent
implements LyGetValueInterface, LySetValueInterface, LySetColorInterface

The LyDay class is a generated Java implementation that corresponds to the element DAY of the descriptive grammar of the views (views.dtd). <DAY> : Day A day allows specifying on a Gantt planning the special days (days off for example). Those days may be of three types: days of week (for example Saturday and Sunday), days of year (for example may the first) and special days (for example 24th December 2006).

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

Nested Class Summary
static class LyDay.DayOfWeek
          Possible values for attribute 'dayOfWeek'.
static class LyDay.Type
          Possible values for attribute 'type'.
 
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
LyDay()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getColor()
          Gets value of color.
 LyDay.DayOfWeek getDayOfWeek()
          Gets value of dayOfWeek.
static LyDay.DayOfWeek getDayOfWeek(java.lang.String token)
          Utility method to get dayOfWeek value from a string.
 LyDay.Type getType()
          Gets value of type.
static LyDay.Type getType(java.lang.String token)
          Utility method to get type value from a string.
 java.lang.String getValue()
          Gets value of value.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 void setColor(java.lang.String color)
          Sets attribute color to the given value.
 void setDayOfWeek(LyDay.DayOfWeek dayOfWeek)
          Sets attribute dayOfWeek to the given value.
 void setType(LyDay.Type type)
          Sets attribute type to the given value.
 void setValue(java.lang.String value)
          Sets attribute value 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, getId, 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

LyDay

public LyDay()
Default constructor.

Method Detail

getType

public static final LyDay.Type getType(java.lang.String token)
Utility method to get type value from a string.

Parameters:
token - Token string
Returns:
Type value corresponding to this token

getDayOfWeek

public static final LyDay.DayOfWeek getDayOfWeek(java.lang.String token)
Utility method to get dayOfWeek value from a string.

Parameters:
token - Token string
Returns:
DayOfWeek value corresponding to this token

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getType

public LyDay.Type getType()
Gets value of type.

Returns:
value of type.

getDayOfWeek

public LyDay.DayOfWeek getDayOfWeek()
Gets value of dayOfWeek.

Returns:
value of dayOfWeek.

getValue

public java.lang.String getValue()
Gets value of value.

Specified by:
getValue in interface LyGetValueInterface
Returns:
value of value.

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.

setType

public void setType(LyDay.Type type)
Sets attribute type to the given value.

Parameters:
type - New value of type.
Throws:
java.lang.IllegalArgumentException - if type parameter is null.

setDayOfWeek

public void setDayOfWeek(LyDay.DayOfWeek dayOfWeek)
Sets attribute dayOfWeek to the given value.

Parameters:
dayOfWeek - New value of dayOfWeek.
Throws:
java.lang.IllegalArgumentException - if dayOfWeek parameter is null.

setValue

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

Specified by:
setValue in interface LySetValueInterface
Parameters:
value - New value of value.

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.

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