E
- data object storing tasksF
- data object storing dependencies if they are foundpublic class SGanntChart<E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F>> extends SPageNode implements SDefaultPath
Modifier and Type | Field and Description |
---|---|
static int |
SHOWDAYS
used for calendar with
bands for days
show all days
|
static int |
SHOWHOURSINCALENDAR
used for calendar with
only days in calendar shown
only working slots in calendar shown
|
static int |
SHOWSIMPLEHOURS
used for calendar with
bands for days and sub-band for hours
constant hour shown for everyday
|
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SGanntChart(java.lang.String name,
IntegerDataElt hourstartdata,
IntegerDataElt hourenddata,
ArrayDataElt<TObjectDataElt<E>> tasklist,
DataObjectFieldMarker<E> taskstarttimefield,
DataObjectFieldMarker<E> taskendtimefield,
DataObjectFieldMarker<E> label1,
DataObjectFieldMarker<E> label2,
DataObjectDefinition<E> taskdefinition,
SPage parent)
Creates a GANNT chart with variable start and end hour for displaying tasks
per day
|
SGanntChart(java.lang.String name,
int hourstart,
int hourend,
ArrayDataElt<TObjectDataElt<E>> tasklist,
DataObjectFieldMarker<E> taskstarttimefield,
DataObjectFieldMarker<E> taskendtimefield,
DataObjectFieldMarker<E> label1,
DataObjectFieldMarker<E> label2,
DataObjectDefinition<E> taskdefinition,
SPage parent)
Creates a GANNT chart with fixed start hour and end hour for displaying of
day
|
SGanntChart(java.lang.String name,
TextDataElt calendarcode,
ArrayDataElt<TObjectDataElt<E>> tasklist,
DataObjectFieldMarker<E> taskstarttimefield,
DataObjectFieldMarker<E> taskendtimefield,
DataObjectFieldMarker<E> label1,
DataObjectFieldMarker<E> label2,
DataObjectDefinition<E> taskdefinition,
SPage parent)
* Creates a GANNT chart with default start hour end end hour for display
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultAction(SActionRef defaultaction)
sets the default action when clicking on the task in the GANNT chart
|
void |
addDependencies(ArrayDataElt<TObjectDataElt<F>> linkarray,
DataObjectFieldMarker<F> linkobjectid1,
DataObjectFieldMarker<F> linkobjectid2)
adds a dependency array on the GANNT chart
|
void |
addRescheduleAction(SActionRef rescheduleaction)
adds a reschedule action that is triggered when dragging a task on the GANNT
chart
|
java.lang.String |
getPathName() |
SActionDataLoc<DateDataEltType> |
getReschedulePopupEndDate(SActionInputDataRef<DateDataEltType> inputdataref)
gets the new end date inside the reschedule popup to use it as attribute of
an action
|
java.util.function.Function<SActionInputDataRef<DateDataEltType>,SActionDataLoc<DateDataEltType>> |
getReschedulePopupEndDateInput()
gets the new end date inside the reschedule popup to use it as attribute of
an action
|
SActionDataLoc<DateDataEltType> |
getReschedulePopupStartDate(SActionInputDataRef<DateDataEltType> inputdataref)
gets the new start date inside the reschedule popup to use it as attribute of
an action
|
java.util.function.Function<SActionInputDataRef<DateDataEltType>,SActionDataLoc<DateDataEltType>> |
getReschedulePopupStartDateInput()
gets the new start date in the reschedule popup
|
java.util.function.Function<SActionInputDataRef<TObjectIdDataEltType<E>>,SActionDataLoc<TObjectIdDataEltType<E>>> |
getRootTimeslotIdInput()
get the id of the root timeslot element (start of the GANNT chart)
|
java.util.function.Function<SActionInputDataRef<TObjectIdDataEltType<E>>,SActionDataLoc<TObjectIdDataEltType<E>>> |
getSelectedTimeslotIdInput()
gets the id of the selected timeslot as attribute for an action
|
java.lang.String |
getWidgetCode() |
boolean |
hideComponent(SPageData input,
SecurityBuffer buffer)
This method allows to hide component in a layout if the user is not
authorized
|
void |
populateDown(SPageSignifPath parentpath,
SPageNode[] widgetpathtoroot)
this method should be recursively called from parent structure to all its
children
|
void |
setColorField(DataObjectFieldMarker<E> colorfield)
sets the attribute to be used
|
void |
setDotMarkField(DataObjectFieldMarker<E> dotmarkfield)
sets the attribute to be used for dot mark field (tasks can be displayed with
a color for the task and also a dot)
|
void |
setMinWidth(int minwidth)
sets the minimum width of the GANNT chart
|
void |
WritePayloadToCDL(MessageWriter writer,
SPageData input,
SecurityBuffer buffer)
writes the payload of the representation (without opening and closing
structure)
|
addCurrentWidgetToRoot, getPage, printPath, setParentSignifPath, setSignifPath, WriteToCDL
public static final int SHOWDAYS
public static final int SHOWSIMPLEHOURS
public static final int SHOWHOURSINCALENDAR
public SGanntChart(java.lang.String name, IntegerDataElt hourstartdata, IntegerDataElt hourenddata, ArrayDataElt<TObjectDataElt<E>> tasklist, DataObjectFieldMarker<E> taskstarttimefield, DataObjectFieldMarker<E> taskendtimefield, DataObjectFieldMarker<E> label1, DataObjectFieldMarker<E> label2, DataObjectDefinition<E> taskdefinition, SPage parent)
name
- name of the widgethourstartdata
- variable start hourhourenddata
- variable end hourtasklist
- list of taskstaskstarttimefield
- field to use as task start timetaskendtimefield
- field to use as task end timelabel1
- first label on the tasklabel2
- second label on the tasktaskdefinition
- definition of the taskparent
- page the widget is displayed onpublic SGanntChart(java.lang.String name, TextDataElt calendarcode, ArrayDataElt<TObjectDataElt<E>> tasklist, DataObjectFieldMarker<E> taskstarttimefield, DataObjectFieldMarker<E> taskendtimefield, DataObjectFieldMarker<E> label1, DataObjectFieldMarker<E> label2, DataObjectDefinition<E> taskdefinition, SPage parent)
name
- name of the widgettasklist
- list of taskstaskstarttimefield
- field to use as task start timetaskendtimefield
- field to use as task end timelabel1
- first label on the tasklabel2
- second label on the tasktaskdefinition
- definition of the taskparent
- page the widget is displayed onpublic SGanntChart(java.lang.String name, int hourstart, int hourend, ArrayDataElt<TObjectDataElt<E>> tasklist, DataObjectFieldMarker<E> taskstarttimefield, DataObjectFieldMarker<E> taskendtimefield, DataObjectFieldMarker<E> label1, DataObjectFieldMarker<E> label2, DataObjectDefinition<E> taskdefinition, SPage parent)
name
- name of the widgethourstart
- set start hourhourend
- set end hourtasklist
- list of taskstaskstarttimefield
- field to use as task start timetaskendtimefield
- field to use as task end timelabel1
- first label on the tasklabel2
- second label on the tasktaskdefinition
- definition of the taskparent
- page the widget is displayed onpublic void addDefaultAction(SActionRef defaultaction)
defaultaction
- default actionpublic void addRescheduleAction(SActionRef rescheduleaction)
rescheduleaction
- action to launch for reschedulepublic java.util.function.Function<SActionInputDataRef<TObjectIdDataEltType<E>>,SActionDataLoc<TObjectIdDataEltType<E>>> getSelectedTimeslotIdInput()
public java.util.function.Function<SActionInputDataRef<TObjectIdDataEltType<E>>,SActionDataLoc<TObjectIdDataEltType<E>>> getRootTimeslotIdInput()
public SActionDataLoc<DateDataEltType> getReschedulePopupStartDate(SActionInputDataRef<DateDataEltType> inputdataref)
inputdataref
- action input data refpublic java.util.function.Function<SActionInputDataRef<DateDataEltType>,SActionDataLoc<DateDataEltType>> getReschedulePopupStartDateInput()
public SActionDataLoc<DateDataEltType> getReschedulePopupEndDate(SActionInputDataRef<DateDataEltType> inputdataref)
inputdataref
- action input data refpublic java.util.function.Function<SActionInputDataRef<DateDataEltType>,SActionDataLoc<DateDataEltType>> getReschedulePopupEndDateInput()
public void setMinWidth(int minwidth)
minwidth
- min width of the GANNT chartpublic void addDependencies(ArrayDataElt<TObjectDataElt<F>> linkarray, DataObjectFieldMarker<F> linkobjectid1, DataObjectFieldMarker<F> linkobjectid2)
linkarray
- the list of link objectslinkobjectid1
- first id of object (of type E) of the dependencylinkobjectid2
- second id of object (of type E) of the dependencypublic void setColorField(DataObjectFieldMarker<E> colorfield)
colorfield
- the attribute of the object to be used as background for
the task (tasks can be displayed with a color for the task
and also a dot)public void setDotMarkField(DataObjectFieldMarker<E> dotmarkfield)
dotmarkfield
- the attribute of the object to be used as color for dots
on the taskpublic java.lang.String getPathName()
getPathName
in interface SDefaultPath
public void populateDown(SPageSignifPath parentpath, SPageNode[] widgetpathtoroot)
SPageNode
populateDown
in class SPageNode
parentpath
- the parent significant pathwidgetpathtoroot
- an array of all the page nodes for traceability in
case of problemspublic void WritePayloadToCDL(MessageWriter writer, SPageData input, SecurityBuffer buffer) throws java.io.IOException
SPageNode
WritePayloadToCDL
in class SPageNode
writer
- the CDL writer on which to write the messagejava.io.IOException
public java.lang.String getWidgetCode()
getWidgetCode
in class SPageNode
public boolean hideComponent(SPageData input, SecurityBuffer buffer)
SPageNode
hideComponent
in class SPageNode