|
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.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.jquery.component.LyJQInternalView
leon.view.web.jquery.component.fieldItem.LyJQFieldItem
leon.view.web.jquery.component.panel.LyJQPanel
leon.view.web.jquery.component.gantt.LyJQGantt
public class LyJQGantt
Nested Class Summary | |
---|---|
static class |
LyJQGantt._LySpecialDay
Internal class representing a special day for the planning. |
Field Summary | |
---|---|
static short |
SCALE_DAY
Scale (in day). |
static short |
SCALE_HOUR
Scale (in hour). |
static short |
SCALE_MINUTE
Scale (in minute). |
static short |
SCALE_MONTH
Scale (in month). |
static short |
SCALE_SECOND
Scale (in second). |
static short |
SCALE_WEEK
Scale (in week). |
static short |
SCALE_YEAR
Scale (in year). |
Fields inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem |
---|
__VERSION |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Fields inherited from interface leon.view.graphic.LyGraphicalGantt |
---|
__VERSION |
Fields inherited from interface leon.view.setinterface.LySetVisibleInterface |
---|
__VERSION |
Fields inherited from interface leon.view.setinterface.LyResetContentInterface |
---|
__VERSION |
Fields inherited from interface leon.view.setinterface.LySetIdleInterface |
---|
__VERSION |
Fields inherited from interface leon.view.setinterface.LySetPopupMenuInterface |
---|
__VERSION |
Constructor Summary | |
---|---|
LyJQGantt(LyGantt gantt)
Class constructor of a Map object for the struts target. |
Method Summary | |
---|---|
void |
addDay(LyDay daies,
int pos)
Inserts a sub-component daies at given position. |
void |
addLine(LyLine lineToAdd,
int position)
Inserts a sub-component lines at given position. |
java.util.Date |
getBeginDate()
Gets the begin date of the planning (first date visible). |
float |
getBeginDatePosition()
get the begin date of the visible part of the gantt planning |
java.awt.Color |
getColor(java.lang.String key)
Retrieves a Color from the current environment. |
java.lang.String |
getDateForGivenXPosition(float xPosition)
Retrieves the String value of the date which corresponds to the given xPosition |
java.text.DateFormat |
getDateFormat()
Gets the date format of the component. |
java.text.DateFormat |
getDateTimeFormat()
Gets the date and time format of the component. |
java.util.Date |
getEndDate()
Gets the end date of the planning (last date visible). |
float |
getEndDatePosition()
get the end date of the visible part of the gantt planning |
java.awt.Font |
getFont(java.lang.String key)
Retrieves a Font from the current environment. |
java.util.List<LyLine> |
getGanttLines()
get gantt lines |
java.util.Date |
getInitialBeginDate()
Gets the initial begin date. |
java.util.Date |
getInitialEndDate()
Gets the initial end date. |
java.lang.String |
getMonthNameAndYear(java.util.Calendar calendar)
Retrieves month name and year for a given calendar |
java.util.ArrayList<java.lang.Object> |
getPlanningDownScaleElements()
getPlanningDownScaleElements build a list which be used to display the down scale part of the gantt |
java.lang.String |
getReloadScript()
this method is to be implemented by internal views to get the reload script for the page element |
java.lang.String |
getShortDayName(java.util.Calendar tempCalendar)
Retrieves the short day name for a given calendar |
long |
getStepWidthInMilliSecond()
Gets the number of milli second representing a step on the down scale. |
java.util.ArrayList<java.lang.Object> |
getUpperScaleElements()
getUpperScaleElements build a list which be used to display the upper scale part of the gantt |
int |
getVisibleLineCount(LyLine line)
|
float |
getXPositionOfGivenDate(java.util.Calendar intervaleCalendar)
Retrieves the position float value for a given calendar |
void |
init()
Initialization method. |
boolean |
isGantt()
|
void |
refresh()
Refresh frame containing this web object. |
void |
removeDay(LyDay daies)
Removes a sub-component daies. |
void |
removeLine(LyLine lineToRemove)
Removes a sub-component lines. |
void |
resetContent()
Reset the view for a new XML Structure. |
void |
resetContent(boolean full)
Reset the view for a new XML Structure. |
void |
setBeginDate(java.lang.String beginDate)
Updates attribute beginDate to the given value. |
void |
setBigScale(short scale)
Sets the big scale of the planning. |
void |
setContent()
Sets the content of the gantt planning. |
void |
setCurrentDateRefreshPeriod(int currentDateRefreshPeriod)
Updates attribute currentDateRefreshPeriod to the given value. |
void |
setEndDate(java.lang.String endDate)
Updates attribute endDate to the given value. |
void |
setHCenteredLine(java.lang.String hCenteredLine)
Updates attribute hCenteredLine to the given value. |
void |
setIdle(boolean status)
Sets or unset the idle mode on the component/node. |
void |
setScale(short scale)
Sets the scale type of the planning. |
void |
setSpecialDays(java.util.Vector<LyJQGantt._LySpecialDay> days)
Sets the list of special days for this planning. |
void |
setVCenteredLine(java.lang.String vCenteredLine)
Updates attribute vCenteredLine to the given value. |
void |
setVisible(boolean status)
Sets the visibility status of this component. |
void |
setZoomFactor(LyGantt.ZoomFactor scale)
Updates attribute zoomFactor to the given value. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
Methods inherited from class leon.view.web.jquery.component.panel.LyJQPanel |
---|
isChart, isForm, isGantt, isMap, isNotice, isPanel, isTable, isTree, setPopupMenu |
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem |
---|
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getTarget, isEditable, isEnabled, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, setLabel |
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView |
---|
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty |
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, 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 |
---|
public static final short SCALE_SECOND
public static final short SCALE_MINUTE
public static final short SCALE_HOUR
public static final short SCALE_DAY
public static final short SCALE_WEEK
public static final short SCALE_MONTH
public static final short SCALE_YEAR
Constructor Detail |
---|
public LyJQGantt(LyGantt gantt)
map
- the generic Map defined for every type of view targets.Method Detail |
---|
public int getVisibleLineCount(LyLine line)
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
writeHtml
in class LyJQFieldItem
pw
- the page writerpublic void setZoomFactor(LyGantt.ZoomFactor scale)
LyGraphicalGantt
setZoomFactor
in interface LyGraphicalGantt
scale
- New value of zoomFactor.LyGraphicalGantt.setZoomFactor(leon.view.LyGantt.ZoomFactor)
public void setScale(short scale)
scale
- the new scale, can be LyJQGanttCanvas#SCALE_DAY
,
LyJQGanttCanvas#SCALE_HOUR
,
LyJQGanttCanvas#SCALE_MINUTE
,
LyJQGanttCanvas#SCALE_MONTH
,
LyJQGanttCanvas#SCALE_SECOND
,
LyJQGanttCanvas#SCALE_WEEK
or
LyJQGanttCanvas#SCALE_YEAR
public void setBigScale(short scale)
scale
- the new big scalepublic void setContent()
public java.text.DateFormat getDateTimeFormat()
public void setSpecialDays(java.util.Vector<LyJQGantt._LySpecialDay> days)
days
- the list of _LySpecialDay instancespublic java.util.Date getBeginDate()
setBeginDate(String)
public java.util.Date getEndDate()
setEndDate(String)
public void init()
leon.view.web.LyWebPage#init()
public final java.awt.Color getColor(java.lang.String key)
key
- The ressource name (key) of the Color.
LyEnvironment#getColor(String)
public final java.awt.Font getFont(java.lang.String key)
key
- The ressource name (key) of the font.
LyEnvironment#getFont(String)
public java.text.DateFormat getDateFormat()
setDateFormat(String, String)
public java.util.List<LyLine> getGanttLines()
public void setIdle(boolean status)
LySetIdleInterface
setIdle
in interface LySetIdleInterface
status
- new idle status (LySetIdleInterface interface)LySetIdleInterface.setIdle(boolean)
public void resetContent()
LyResetContentInterface
resetContent
in interface LyResetContentInterface
LyResetContentInterface.resetContent()
public void resetContent(boolean full)
LyResetContentInterface
resetContent
in interface LyResetContentInterface
full
- indicates whether old components must be removed from graphical view.LyResetContentInterface.resetContent(boolean)
public void setVisible(boolean status)
LySetVisibleInterface
setVisible
in interface LySetVisibleInterface
status
- new visibility status, if true the component will be shown, if false it will be
hidenLySetVisibleInterface.setVisible(boolean)
public void setBeginDate(java.lang.String beginDate)
LyGraphicalGantt
setBeginDate
in interface LyGraphicalGantt
beginDate
- New value of beginDate.LyGraphicalGantt.setBeginDate(java.lang.String)
public void setEndDate(java.lang.String endDate)
LyGraphicalGantt
setEndDate
in interface LyGraphicalGantt
endDate
- New value of endDate.LyGraphicalGantt.setEndDate(java.lang.String)
public void refresh()
LyWebObject
refresh
in class LyWebObject
public void setHCenteredLine(java.lang.String hCenteredLine)
LyGraphicalGantt
setHCenteredLine
in interface LyGraphicalGantt
hCenteredLine
- New value of hCenteredLine.LyGraphicalGantt.setHCenteredLine(java.lang.String)
public void setVCenteredLine(java.lang.String vCenteredLine)
LyGraphicalGantt
setVCenteredLine
in interface LyGraphicalGantt
vCenteredLine
- New value of vCenteredLine.LyGraphicalGantt.setVCenteredLine(java.lang.String)
public void addLine(LyLine lineToAdd, int position)
LyGraphicalGantt
addLine
in interface LyGraphicalGantt
lineToAdd
- The lines to add to lines list.position
- Position where the sub-component is inserted.LyGraphicalGantt.addLine(leon.view.LyLine, int)
public void removeLine(LyLine lineToRemove)
LyGraphicalGantt
removeLine
in interface LyGraphicalGantt
lineToRemove
- The lines to remove to lines list.LyGraphicalGantt.removeLine(leon.view.LyLine)
public void addDay(LyDay daies, int pos)
LyGraphicalGantt
addDay
in interface LyGraphicalGantt
daies
- The daies to add to daies list.pos
- Position where the sub-component is inserted.LyGraphicalGantt.addDay(leon.view.LyDay, int)
public void removeDay(LyDay daies)
LyGraphicalGantt
removeDay
in interface LyGraphicalGantt
daies
- The daies to remove to daies list.LyGraphicalGantt.removeDay(leon.view.LyDay)
public boolean isGantt()
public java.lang.String getReloadScript()
LyJQInternalView
getReloadScript
in class LyJQFieldItem
public java.util.Date getInitialBeginDate()
public java.util.Date getInitialEndDate()
public void setCurrentDateRefreshPeriod(int currentDateRefreshPeriod)
LyGraphicalGantt
setCurrentDateRefreshPeriod
in interface LyGraphicalGantt
currentDateRefreshPeriod
- New value of currentDateRefreshPeriod.public java.lang.String getMonthNameAndYear(java.util.Calendar calendar)
calendar
- to check
public java.lang.String getShortDayName(java.util.Calendar tempCalendar)
calendar
- to check
public java.util.ArrayList<java.lang.Object> getUpperScaleElements()
public java.util.ArrayList<java.lang.Object> getPlanningDownScaleElements()
public long getStepWidthInMilliSecond()
public float getXPositionOfGivenDate(java.util.Calendar intervaleCalendar)
the
- calendar to check.
public java.lang.String getDateForGivenXPosition(float xPosition)
xPosition
- :indicates the float number of scales from the first date.
public float getBeginDatePosition()
public float getEndDatePosition()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |