public class DHXTimelineView extends DHXView
Modifier and Type | Class and Description |
---|---|
static class |
DHXTimelineView.RenderModes
Modes of TimelineView
|
static class |
DHXTimelineView.XScaleUnits
Size of units on X scale
|
Constructor and Description |
---|
DHXTimelineView(java.lang.String name,
java.lang.String yProperty)
Create new instance of TimelineView
|
DHXTimelineView(java.lang.String name,
java.lang.String yProperty,
java.lang.String label)
Create new instance of TimelineView
|
Modifier and Type | Method and Description |
---|---|
DHXTimelineUnit |
addOption(DHXTimelineUnit unit)
Add unit to timeline view
|
void |
addSecondScale(DHXTimelineView.XScaleUnits xUnit,
java.lang.String xDate)
This option adds another x scale on top of the default one and serves to group time intervals on the original scale.
|
java.lang.Integer |
getDx()
Gets the width of the first column.
|
java.lang.Integer |
getDy()
Gets the minimal height of cells (if SectionAutoheight parameter has value 'false', the height of the cells will be equal to dy, otherwise the height of the cells will be increase to fill all free space).
|
java.lang.Integer |
getEventDy()
Gets the event height.
|
java.lang.Integer |
getEventMinDy()
Gets the minimum event height.
|
java.lang.Boolean |
getFitEvents()
If section height should be increased to fit all events in there or should it be fixed (dy property).
|
java.lang.Integer |
getFolderDy()
The height of folders in pixels (nonapplicable for cells with folder names)
|
java.lang.Boolean |
getFolderEventsAvailable()
Need to be set as "true" if you want to have the possibility to specify an event not only for individual event holder but also for the whole folder (any level).
|
java.lang.Boolean |
getFullEventDy()
Gets FullEventDy.
|
DHXTimelineView.XScaleUnits |
getIgnoreUnits() |
java.util.HashMap<java.lang.String,DHXFileType> |
getJS()
Get js files which is reqired by current configuration
|
DHXTimelineView.RenderModes |
getRenderMode()
Gets render mode.
|
java.lang.Boolean |
getResizeEvents()
Allow to resize events by dnd
|
java.lang.Boolean |
getSectionAutoheight()
Assigns automatic height adjustment of the cells
|
java.lang.String |
getServerList() |
java.lang.String |
getXDate()
Date format which should be used for second scale, "July 01"
|
java.lang.Integer |
getXLength()
How much x_step need to be used to fill the whole day ( it is necessary only if you are using minute or hour as x_unit )
|
DHXTimelineView.XScaleUnits |
getXScaleUnit()
Size of units on X scale ( can be minute, hour, day, week, month, year )
|
java.lang.Integer |
getXSize()
How must steps need to be shown
|
java.lang.Integer |
getXStart()
Value of minimal step
|
java.lang.Integer |
getXStep()
Size of single scale step ( size defined in "x_unit")
|
java.lang.String |
getYProperty()
Name of event's property
|
java.lang.String |
render(java.lang.String name)
Render settings
|
DHXStringList |
renderItems()
Render units
|
void |
set(java.lang.Integer value)
Sets the minimal height of cells (if SectionAutoheight parameter has value 'false', the height of the cells will be equal to dy, otherwise the height of the cells will be increase to fill all free space).
|
void |
setDx(java.lang.Integer value)
Sets the width of the first column.
|
void |
setDy(java.lang.Integer value) |
void |
setEventDy(java.lang.Integer value)
Sets the event height.
|
void |
setEventMinDy(java.lang.Boolean value)
Sets the minimum event height.
|
void |
setFitEvents(java.lang.Boolean value)
If section height should be increased to fit all events in there or should it be fixed (dy property).
|
void |
setFolderDy(java.lang.Integer value)
The height of folders in pixels (nonapplicable for cells with folder names)
|
void |
setFolderEventsAvailable(java.lang.Boolean value)
Need to be set as "true" if you want to have the possibility to specify an event not only for individual event holder but also for the whole folder (any level).
|
void |
setFullEventDy(java.lang.Boolean value)
Sets FullEventDy
|
void |
setIgnoreUnits(DHXTimelineView.XScaleUnits value) |
void |
setRenderMode(DHXTimelineView.RenderModes value)
sets render mode.
|
void |
setResizeEvents(java.lang.Boolean value)
Allow to resize events by dnd
|
void |
setSectionAutoheight(java.lang.Boolean value)
Assigns automatic height adjustment of the cells
|
void |
setServerList(java.lang.String value) |
void |
setXDate(java.lang.String value)
Date format which should be used for second scale, "July 01"
|
void |
setXLength(java.lang.Integer value)
How much x_step need to be used to fill the whole day ( it is necessary only if you are using minute or hour as x_unit )
|
void |
setXScaleUnit(DHXTimelineView.XScaleUnits value)
Size of units on X scale ( can be minute, hour, day, week, month, year )
|
void |
setXSize(java.lang.Integer value)
How must steps need to be shown
|
void |
setXStart(java.lang.Integer value)
Value of minimal step
|
void |
setXStep(java.lang.Integer value)
Size of single scale step ( size defined in "x_unit")
|
void |
setYProperty(java.lang.String value)
Name of event's property
|
clearIgnore, getFilter, getLabel, getName, getTabClass, getTabPosition, getTabStyle, getTabWidth, getViewType, ignoreUnits, ignoreUnits, renderIgnore, renderLabel, renderTab, renderTab, setFilter, setLabel, setName, setTabClass, setTabPosition, setTabStyle, setTabWidth
get, getBool, getCSS, getDate, getHiddenProperties, getInt, getObject, getProperties, getRaw, getVisibleProperties, set
public DHXTimelineView(java.lang.String name, java.lang.String yProperty)
name
- view nameyProperty
- Name of event's property, which holds info for y-positionpublic DHXTimelineView(java.lang.String name, java.lang.String yProperty, java.lang.String label)
name
- view nameyProperty
- Name of event's property, which holds info for y-positionpublic java.lang.String getServerList()
public void setServerList(java.lang.String value)
public void addSecondScale(DHXTimelineView.XScaleUnits xUnit, java.lang.String xDate)
xUnit
- Size of units on X scale ( can be hour, day, week, month, year )xDate
- Date format which should be used for second scalepublic DHXTimelineView.RenderModes getRenderMode()
public void setRenderMode(DHXTimelineView.RenderModes value)
value
- RenderModes.BAR, RenderModes.TREE or RenderModes.CELLpublic java.lang.Integer getDy()
public void setDy(java.lang.Integer value)
public void set(java.lang.Integer value)
dy
- minimal height of cellpublic java.lang.Integer getDx()
public void setDx(java.lang.Integer value)
value
- width of first columnpublic java.lang.Integer getEventDy()
public void setEventDy(java.lang.Integer value)
value
- Event height.public java.lang.Integer getEventMinDy()
public void setEventMinDy(java.lang.Boolean value)
value
- public java.lang.Boolean getFullEventDy()
public void setFullEventDy(java.lang.Boolean value)
value
- If set true, event will occupy the entire cell.public java.lang.Boolean getSectionAutoheight()
public void setSectionAutoheight(java.lang.Boolean value)
value
- true or falsepublic java.lang.Boolean getFolderEventsAvailable()
public void setFolderEventsAvailable(java.lang.Boolean value)
value
- public java.lang.Boolean getFitEvents()
public void setFitEvents(java.lang.Boolean value)
value
- public java.lang.Boolean getResizeEvents()
public void setResizeEvents(java.lang.Boolean value)
value
- public java.lang.Integer getFolderDy()
public void setFolderDy(java.lang.Integer value)
value
- public DHXTimelineView.XScaleUnits getXScaleUnit()
public void setXScaleUnit(DHXTimelineView.XScaleUnits value)
value
- unitspublic void setIgnoreUnits(DHXTimelineView.XScaleUnits value)
public DHXTimelineView.XScaleUnits getIgnoreUnits()
getIgnoreUnits
in class DHXView
public java.lang.Integer getXStep()
public void setXStep(java.lang.Integer value)
value
- public java.lang.Integer getXSize()
public void setXSize(java.lang.Integer value)
value
- public java.lang.Integer getXStart()
public void setXStart(java.lang.Integer value)
value
- public java.lang.Integer getXLength()
public void setXLength(java.lang.Integer value)
value
- public java.lang.String getYProperty()
public void setYProperty(java.lang.String value)
value
- public java.lang.String getXDate()
public void setXDate(java.lang.String value)
value
- public DHXTimelineUnit addOption(DHXTimelineUnit unit)
unit
- public java.util.HashMap<java.lang.String,DHXFileType> getJS()
DHXPlannerControlsItem
getJS
in class DHXPlannerControlsItem
public DHXStringList renderItems()