public class CGanntChart extends CPageNode
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
|
Constructor and Description |
---|
CGanntChart(MessageReader reader,
CPageSignifPath parentpath)
creates a GANNT chart from the message rom the server
|
Modifier and Type | Method and Description |
---|---|
CPageNode |
deepcopyWithCallback(Callback callback) |
void |
forceUpdateData(DataElt dataelt) |
DataElt |
getDataElt(DataEltType type,
java.lang.String eltname,
java.lang.String objectfieldname)
Returns a filled data element of the specified data element type.
|
java.util.Date |
getEndDate(ObjectDataElt object)
get the end date of the given Object data element
|
java.lang.String |
getFieldDisplayValue(java.lang.String fieldname,
ObjectDataElt object)
get a field display value
|
IntegerDataElt |
getIntegerExternalContent(CPageData inputdata,
CPageDataRef dataref)
get an integer element from page data
|
java.lang.String |
getLabel(ObjectDataElt object)
get the label to show on the GANNT from the data element
|
javafx.scene.Node |
getNode(PageActionManager actionmanager,
CPageData inputdata,
javafx.stage.Window parentwindow,
javafx.scene.control.TabPane[] parenttabpanes) |
ArrayDataElt<ObjectDataElt> |
getObjectArrayExternalContent(CPageData inputdata,
CPageDataRef dataref)
extracts an array of objects
|
java.util.Date |
getStartDate(ObjectDataElt object)
get the start date of the the given Object data element
|
java.util.Calendar |
getStartOfDay(java.util.Date date)
get the start of day for the given date
|
TextDataElt |
getTextExternalContent(CPageData inputdata,
CPageDataRef dataref)
get a text element from page data
|
void |
mothball()
cleans the page node.
|
int |
numberofdays(java.util.Date startdate,
java.util.Date enddate)
get the number of days necessary to cover both given dates
|
getParentpath, getPath, getSignificantpath, parseNode, setPageCatelog
public static final int SHOWDAYS
public static final int SHOWSIMPLEHOURS
public static final int SHOWHOURSINCALENDAR
public CGanntChart(MessageReader reader, CPageSignifPath parentpath) throws OLcRemoteException, java.io.IOException
reader
- message reader from the serverparentpath
- parent pathOLcRemoteException
- if anything bad happens on the serverjava.io.IOException
- if any transmission error appears while reading
the messagepublic CPageNode deepcopyWithCallback(Callback callback)
deepcopyWithCallback
in class CPageNode
callback
- the callback method, may be nullpublic java.util.Date getStartDate(ObjectDataElt object)
object
- data objectpublic java.util.Date getEndDate(ObjectDataElt object)
object
- data objectpublic java.lang.String getLabel(ObjectDataElt object)
object
- data objectpublic java.lang.String getFieldDisplayValue(java.lang.String fieldname, ObjectDataElt object)
fieldname
- unique java field nameobject
- data objectpublic java.util.Calendar getStartOfDay(java.util.Date date)
date
- a given datepublic int numberofdays(java.util.Date startdate, java.util.Date enddate)
startdate
- start dateenddate
- end datepublic javafx.scene.Node getNode(PageActionManager actionmanager, CPageData inputdata, javafx.stage.Window parentwindow, javafx.scene.control.TabPane[] parenttabpanes)
getNode
in class CPageNode
actionmanager
- the action manager on which to register all widgets
that trigger an actioninputdata
- the list of input data of the pageparentwindow
- the javafx window this widget will be drawn inparenttabpanes
- parenttabpanes that should be triggered a layout when
this component resizespublic void mothball()
CPageNode
public void forceUpdateData(DataElt dataelt)
forceUpdateData
in class CPageNode
dataelt
- adds data element to the nodepublic ArrayDataElt<ObjectDataElt> getObjectArrayExternalContent(CPageData inputdata, CPageDataRef dataref)
inputdata
- page datadataref
- data reference to usepublic IntegerDataElt getIntegerExternalContent(CPageData inputdata, CPageDataRef dataref)
inputdata
- page datadataref
- data reference to usepublic TextDataElt getTextExternalContent(CPageData inputdata, CPageDataRef dataref)
inputdata
- page datadataref
- data reference to usepublic DataElt getDataElt(DataEltType type, java.lang.String eltname, java.lang.String objectfieldname)
CPageNode
getDataElt
in class CPageNode
type
- requested type (will be tested by the widget to see if
valid)eltname
- the name that will be put to the data element