|
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.LyFieldItem
leon.view.LyPanel
leon.view.LyGantt
public class LyGantt
The LyGantt class is a generated Java implementation that corresponds to the element GANTT of the descriptive grammar of the views (views.dtd). <GANTT> : GANTT planning A Gantt planning is a graphical component that generally allows representing the planning of a project by visualizing the different tasks that compose it. It is constituted by two distinct parts: a planning on the right and a tree view on the left. To each node of the tree corresponds a representation on the planning, horizontally aligned with this node (the node and its representation make what we will call a line). This representation may be a segment, a filled rectangle or a point. A Gantt planning has a begin date and an end date that represent the limits of the visible part of the planning. The full size of the planning is automatically computed with the dates of the intervals. It also has a date format used to represent the dates of the intervals and a zoom factor indicating the steps of the vertical grid of the planning (months, weeks, days, hours or minutes). The tree view allows visualizing the different lines with the capacity of hiding or showing the sub-lines. Each node of the tree has a label, an image, a background color, a foreground color and a font. The planning allows visualizing the time intervals associated to the nodes of the tree. If a line contains intervals it is represented in the planning by points or filled rectangles (depending on the begin and end dates). If a line contains sub-lines it is represented by a segment starting from the minimum date of its sub-intervals and going to the maximum date of its sub-intervals. It is also possible to indicate particular days that must appear with a color on the planning. Those days may be of three types: days of week (for example Saturday and Sunday), days of year (for example May the 1st) and special days (for example 24th December 2006). Remark: a generic Application Engine action « _gantt » is added with its controller, builder and behavior.
See also tag GANTT of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyGantt.ZoomFactor
Possible values for attribute 'zoomFactor'. |
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 | |
---|---|
LyGantt()
Default constructor. |
Method Summary | |
---|---|
void |
addDay(LyDay day)
Adds a sub-component day. |
void |
addLine(LyLine line)
Adds a sub-component line. |
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getBackgroundColor()
Gets value of backgroundColor. |
java.lang.String |
getBeginDate()
Gets value of beginDate. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getController()
Gets value of controller. |
int |
getCurrentDateRefreshPeriod()
Gets value of currentDateRefreshPeriod. |
java.lang.String |
getDateFormat()
Gets value of dateFormat. |
java.lang.String |
getDateSelectorBean()
Gets value of dateSelectorBean. |
LyDay |
getDay(int i)
Get sub-component Day of index i. |
int |
getDayCount()
Get sub-component Day count. |
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 |
getHCenteredLine()
Gets value of hCenteredLine. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getInputArrowDownImage()
Gets value of inputArrowDownImage. |
java.lang.String |
getInputArrowUpImage()
Gets value of inputArrowUpImage. |
java.lang.String |
getInputBigDownArrowImage()
Gets value of inputBigDownArrowImage. |
java.lang.String |
getInputFont()
Gets value of inputFont. |
LyLine |
getLine(int i)
Get sub-component Line of index i. |
int |
getLineCount()
Get sub-component Line count. |
java.lang.String |
getLinesColor()
Gets value of linesColor. |
java.lang.String |
getPlanningBackgroundColor()
Gets value of planningBackgroundColor. |
java.lang.String |
getScaleBackgroundColor()
Gets value of scaleBackgroundColor. |
java.lang.String |
getScaleLinesColor()
Gets value of scaleLinesColor. |
LyGantt |
getTemplate()
Gets value of template. |
java.lang.String |
getTimeFormat()
Gets value of timeFormat. |
java.lang.String |
getToolTipBackgroundColor()
Gets value of toolTipBackgroundColor. |
java.lang.String |
getToolTipFont()
Gets value of toolTipFont. |
java.lang.String |
getToolTipFontColor()
Gets value of toolTipFontColor. |
java.lang.String |
getTreeBackgroundColor()
Gets value of treeBackgroundColor. |
java.lang.String |
getUpperScaleFont()
Gets value of upperScaleFont. |
java.lang.String |
getVCenteredLine()
Gets value of vCenteredLine. |
java.lang.String |
getWeekendColor()
Gets value of weekendColor. |
LyGantt.ZoomFactor |
getZoomFactor()
Gets value of zoomFactor. |
static LyGantt.ZoomFactor |
getZoomFactor(java.lang.String token)
Utility method to get zoomFactor value from a string. |
void |
insertDay(LyDay day,
int pos)
Inserts a sub-component day at given position. |
void |
insertLine(LyLine line,
int pos)
Inserts a sub-component line at given position. |
boolean |
isAllowElementHiding()
Checks if value of attribute allowElementHiding is set. |
boolean |
isAllowIntervalDivision()
Checks if value of attribute allowIntervalDivision is set. |
boolean |
isAllowSplit()
Checks if value of attribute allowSplit is set. |
boolean |
isDefaultBackgroundColor()
Checks whether the backgroundColor 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 |
isDefaultInputArrowDownImage()
Checks whether the inputArrowDownImage attribute is valuated to the default value. |
boolean |
isDefaultInputArrowUpImage()
Checks whether the inputArrowUpImage attribute is valuated to the default value. |
boolean |
isDefaultInputBigDownArrowImage()
Checks whether the inputBigDownArrowImage attribute is valuated to the default value. |
boolean |
isDefaultInputFont()
Checks whether the inputFont attribute is valuated to the default value. |
boolean |
isDefaultLinesColor()
Checks whether the linesColor attribute is valuated to the default value. |
boolean |
isDefaultPlanningBackgroundColor()
Checks whether the planningBackgroundColor attribute is valuated to the default value. |
boolean |
isDefaultScaleBackgroundColor()
Checks whether the scaleBackgroundColor attribute is valuated to the default value. |
boolean |
isDefaultScaleLinesColor()
Checks whether the scaleLinesColor attribute is valuated to the default value. |
boolean |
isDefaultToolTipBackgroundColor()
Checks whether the toolTipBackgroundColor attribute is valuated to the default value. |
boolean |
isDefaultToolTipFont()
Checks whether the toolTipFont attribute is valuated to the default value. |
boolean |
isDefaultToolTipFontColor()
Checks whether the toolTipFontColor attribute is valuated to the default value. |
boolean |
isDefaultTreeBackgroundColor()
Checks whether the treeBackgroundColor attribute is valuated to the default value. |
boolean |
isDefaultUpperScaleFont()
Checks whether the upperScaleFont attribute is valuated to the default value. |
boolean |
isDefaultWeekendColor()
Checks whether the weekendColor attribute is valuated to the default value. |
boolean |
isDisplayTimeSelector()
Checks if value of attribute displayTimeSelector is set. |
void |
removeDay(LyDay day)
Removes a sub-component day. |
void |
removeLine(LyLine line)
Removes a sub-component line. |
void |
setAllowElementHiding(boolean allowElementHiding)
Initializes attribute allowElementHiding to the given value. |
void |
setAllowIntervalDivision(boolean allowIntervalDivision)
Initializes attribute allowIntervalDivision to the given value. |
void |
setAllowSplit(boolean allowSplit)
Initializes attribute allowSplit to the given value. |
void |
setBackgroundColor(java.lang.String backgroundColor)
Initializes attribute backgroundColor to the given value. |
void |
setBeginDate(java.lang.String beginDate)
Sets attribute beginDate to the given value. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
void |
setController(java.lang.String controller)
Initializes attribute controller to the given value. |
void |
setCurrentDateRefreshPeriod(int currentDateRefreshPeriod)
Sets attribute currentDateRefreshPeriod to the given value. |
void |
setDateFormat(java.lang.String dateFormat)
Initializes attribute dateFormat to the given value. |
void |
setDateSelectorBean(java.lang.String dateSelectorBean)
Initializes attribute dateSelectorBean to the given value. |
void |
setDisplayTimeSelector(boolean displayTimeSelector)
Initializes attribute displayTimeSelector to the given value. |
void |
setEndDate(java.lang.String endDate)
Sets attribute endDate to the given value. |
void |
setFont(java.lang.String font)
Initializes attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value. |
void |
setHCenteredLine(java.lang.String hCenteredLine)
Sets attribute hCenteredLine to the given value. |
void |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setInputArrowDownImage(java.lang.String inputArrowDownImage)
Initializes attribute inputArrowDownImage to the given value. |
void |
setInputArrowUpImage(java.lang.String inputArrowUpImage)
Initializes attribute inputArrowUpImage to the given value. |
void |
setInputBigDownArrowImage(java.lang.String inputBigDownArrowImage)
Initializes attribute inputBigDownArrowImage to the given value. |
void |
setInputFont(java.lang.String inputFont)
Initializes attribute inputFont to the given value. |
void |
setLinesColor(java.lang.String linesColor)
Initializes attribute linesColor to the given value. |
void |
setPlanningBackgroundColor(java.lang.String planningBackgroundColor)
Initializes attribute planningBackgroundColor to the given value. |
void |
setScaleBackgroundColor(java.lang.String scaleBackgroundColor)
Initializes attribute scaleBackgroundColor to the given value. |
void |
setScaleLinesColor(java.lang.String scaleLinesColor)
Initializes attribute scaleLinesColor to the given value. |
void |
setTemplate(LyGantt template)
Initializes attribute template to the given value. |
void |
setTimeFormat(java.lang.String timeFormat)
Initializes attribute timeFormat to the given value. |
void |
setToolTipBackgroundColor(java.lang.String toolTipBackgroundColor)
Initializes attribute toolTipBackgroundColor to the given value. |
void |
setToolTipFont(java.lang.String toolTipFont)
Initializes attribute toolTipFont to the given value. |
void |
setToolTipFontColor(java.lang.String toolTipFontColor)
Initializes attribute toolTipFontColor to the given value. |
void |
setTreeBackgroundColor(java.lang.String treeBackgroundColor)
Initializes attribute treeBackgroundColor to the given value. |
void |
setUpperScaleFont(java.lang.String upperScaleFont)
Initializes attribute upperScaleFont to the given value. |
void |
setVCenteredLine(java.lang.String vCenteredLine)
Sets attribute vCenteredLine to the given value. |
void |
setWeekendColor(java.lang.String weekendColor)
Initializes attribute weekendColor to the given value. |
void |
setZoomFactor(LyGantt.ZoomFactor zoomFactor)
Sets attribute zoomFactor 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.LyPanel |
---|
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting |
Methods inherited from class leon.view.LyFieldItem |
---|
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput |
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 LyGantt()
Method Detail |
---|
public static final LyGantt.ZoomFactor getZoomFactor(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyGantt getTemplate()
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public java.lang.String getBeginDate()
public java.lang.String getEndDate()
public java.lang.String getDateFormat()
public java.lang.String getTimeFormat()
public LyGantt.ZoomFactor getZoomFactor()
public int getCurrentDateRefreshPeriod()
public boolean isAllowElementHiding()
public boolean isAllowIntervalDivision()
public boolean isAllowSplit()
public boolean isDisplayTimeSelector()
public java.lang.String getHCenteredLine()
public java.lang.String getVCenteredLine()
public java.lang.String getDateSelectorBean()
public java.lang.String getBackgroundColor()
public boolean isDefaultBackgroundColor()
public java.lang.String getTreeBackgroundColor()
public boolean isDefaultTreeBackgroundColor()
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public java.lang.String getToolTipFont()
public boolean isDefaultToolTipFont()
public java.lang.String getToolTipFontColor()
public boolean isDefaultToolTipFontColor()
public java.lang.String getToolTipBackgroundColor()
public boolean isDefaultToolTipBackgroundColor()
public java.lang.String getUpperScaleFont()
public boolean isDefaultUpperScaleFont()
public java.lang.String getPlanningBackgroundColor()
public boolean isDefaultPlanningBackgroundColor()
public java.lang.String getScaleBackgroundColor()
public boolean isDefaultScaleBackgroundColor()
public java.lang.String getScaleLinesColor()
public boolean isDefaultScaleLinesColor()
public java.lang.String getLinesColor()
public boolean isDefaultLinesColor()
public java.lang.String getWeekendColor()
public boolean isDefaultWeekendColor()
public java.lang.String getInputFont()
public boolean isDefaultInputFont()
public java.lang.String getInputBigDownArrowImage()
public boolean isDefaultInputBigDownArrowImage()
public java.lang.String getInputArrowUpImage()
public boolean isDefaultInputArrowUpImage()
public java.lang.String getInputArrowDownImage()
public boolean isDefaultInputArrowDownImage()
public LyLine getLine(int i)
i
- the index of the Line to get.
public int getLineCount()
public LyDay getDay(int i)
i
- the index of the Day to get.
public int getDayCount()
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyGantt template)
template
- New value of template.public void setController(java.lang.String controller)
setController
in interface LySetControllerInterface
controller
- New value of controller.LySetControllerInterface.setController(java.lang.String)
public void setBeginDate(java.lang.String beginDate)
beginDate
- New value of beginDate.public void setEndDate(java.lang.String endDate)
endDate
- New value of endDate.public void setDateFormat(java.lang.String dateFormat)
dateFormat
- New value of dateFormat.public void setTimeFormat(java.lang.String timeFormat)
timeFormat
- New value of timeFormat.public void setZoomFactor(LyGantt.ZoomFactor zoomFactor)
zoomFactor
- New value of zoomFactor.
java.lang.IllegalArgumentException
- if zoomFactor parameter is null.public void setCurrentDateRefreshPeriod(int currentDateRefreshPeriod)
currentDateRefreshPeriod
- New value of currentDateRefreshPeriod.public void setAllowElementHiding(boolean allowElementHiding)
allowElementHiding
- Boolean indicating if attribute allowElementHiding is set or unset.public void setAllowIntervalDivision(boolean allowIntervalDivision)
allowIntervalDivision
- Boolean indicating if attribute allowIntervalDivision is set or unset.public void setAllowSplit(boolean allowSplit)
allowSplit
- Boolean indicating if attribute allowSplit is set or unset.public void setDisplayTimeSelector(boolean displayTimeSelector)
displayTimeSelector
- Boolean indicating if attribute displayTimeSelector is set or unset.public void setHCenteredLine(java.lang.String hCenteredLine)
hCenteredLine
- New value of hCenteredLine.public void setVCenteredLine(java.lang.String vCenteredLine)
vCenteredLine
- New value of vCenteredLine.public void setDateSelectorBean(java.lang.String dateSelectorBean)
dateSelectorBean
- New value of dateSelectorBean.public void setBackgroundColor(java.lang.String backgroundColor)
backgroundColor
- New value of backgroundColor.public void setTreeBackgroundColor(java.lang.String treeBackgroundColor)
treeBackgroundColor
- New value of treeBackgroundColor.public void setFont(java.lang.String font)
font
- New value of font.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setToolTipFont(java.lang.String toolTipFont)
toolTipFont
- New value of toolTipFont.public void setToolTipFontColor(java.lang.String toolTipFontColor)
toolTipFontColor
- New value of toolTipFontColor.public void setToolTipBackgroundColor(java.lang.String toolTipBackgroundColor)
toolTipBackgroundColor
- New value of toolTipBackgroundColor.public void setUpperScaleFont(java.lang.String upperScaleFont)
upperScaleFont
- New value of upperScaleFont.public void setPlanningBackgroundColor(java.lang.String planningBackgroundColor)
planningBackgroundColor
- New value of planningBackgroundColor.public void setScaleBackgroundColor(java.lang.String scaleBackgroundColor)
scaleBackgroundColor
- New value of scaleBackgroundColor.public void setScaleLinesColor(java.lang.String scaleLinesColor)
scaleLinesColor
- New value of scaleLinesColor.public void setLinesColor(java.lang.String linesColor)
linesColor
- New value of linesColor.public void setWeekendColor(java.lang.String weekendColor)
weekendColor
- New value of weekendColor.public void setInputFont(java.lang.String inputFont)
inputFont
- New value of inputFont.public void setInputBigDownArrowImage(java.lang.String inputBigDownArrowImage)
inputBigDownArrowImage
- New value of inputBigDownArrowImage.public void setInputArrowUpImage(java.lang.String inputArrowUpImage)
inputArrowUpImage
- New value of inputArrowUpImage.public void setInputArrowDownImage(java.lang.String inputArrowDownImage)
inputArrowDownImage
- New value of inputArrowDownImage.public void addLine(LyLine line)
line
- The line to add to lines list.public void insertLine(LyLine line, int pos)
line
- The line to add to lines list.pos
- Position where the sub-component is inserted.public void removeLine(LyLine line)
line
- The line to remove to lines list.
java.lang.IllegalStateException
- if lines list is empty.
java.lang.IllegalArgumentException
- if lines list doesn't contain line.public void addDay(LyDay day)
day
- The day to add to daies list.public void insertDay(LyDay day, int pos)
day
- The day to add to daies list.pos
- Position where the sub-component is inserted.public void removeDay(LyDay day)
day
- The day to remove to daies list.
java.lang.IllegalStateException
- if daies list is empty.
java.lang.IllegalArgumentException
- if daies list doesn't contain day.public void setConstraint(LyConstraint constraint)
constraint
- New value of constraintpublic 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 |