|
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.LyComponent
leon.view.LyDay
public class LyDay
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 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyDay()
Method Detail |
---|
public static final LyDay.Type getType(java.lang.String token)
token
- Token string
public static final LyDay.DayOfWeek getDayOfWeek(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public LyDay.Type getType()
public LyDay.DayOfWeek getDayOfWeek()
public java.lang.String getValue()
getValue
in interface LyGetValueInterface
public java.lang.String getColor()
public boolean isDefaultColor()
public void setType(LyDay.Type type)
type
- New value of type.
java.lang.IllegalArgumentException
- if type parameter is null.public void setDayOfWeek(LyDay.DayOfWeek dayOfWeek)
dayOfWeek
- New value of dayOfWeek.
java.lang.IllegalArgumentException
- if dayOfWeek parameter is null.public void setValue(java.lang.String value)
setValue
in interface LySetValueInterface
value
- New value of value.public void setColor(java.lang.String color)
setColor
in interface LySetColorInterface
color
- New value of color.public void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |