public class PeriodSelector extends AbstractChartObject
Constructor and Description |
---|
PeriodSelector() |
Modifier and Type | Method and Description |
---|---|
PeriodSelector |
addPeriods(Period... periods)
Adds periods.
|
java.lang.String |
getDateFormat() |
java.lang.String |
getFromText() |
java.lang.Boolean |
getHideOutOfScopePeriods() |
java.lang.Boolean |
getInputFieldsEnabled() |
java.lang.Integer |
getInputFieldWidth() |
java.util.List<Period> |
getPeriods() |
java.lang.String |
getPeriodsText() |
Position |
getPosition() |
java.lang.Boolean |
getSelectFromStart() |
java.lang.String |
getToText() |
java.lang.Integer |
getWidth() |
PeriodSelector |
setDateFormat(java.lang.String dateFormat)
Sets date format of date input fields.
|
PeriodSelector |
setFromText(java.lang.String fromText)
Sets text displayed next to "from" date input field.
|
PeriodSelector |
setHideOutOfScopePeriods(java.lang.Boolean hideOutOfScopePeriods)
Set hideOutOfScopePeriods to false if period buttons with date range bigger than available data shouldn't be
hidden.
|
PeriodSelector |
setInputFieldsEnabled(java.lang.Boolean inputFieldsEnabled)
Set inputFieldsEnabled to false if period selector shouldn't display "from" and "to" date input fields.
|
PeriodSelector |
setInputFieldWidth(java.lang.Integer inputFieldWidth)
Sets width of date input fields, in pixels.
|
PeriodSelector |
setPeriods(java.util.List<Period> periods)
Sets list of predefined periods.
|
PeriodSelector |
setPeriodsText(java.lang.String periodsText)
Sets text displayed next to predefined period buttons.
|
PeriodSelector |
setPosition(Position position)
Sets position.
|
PeriodSelector |
setSelectFromStart(java.lang.Boolean selectFromStart)
Set selectFromStart to true if predefined period buttons should select a period from the beginning.
|
PeriodSelector |
setToText(java.lang.String toText)
Sets text displayed next to "to" date input field.
|
PeriodSelector |
setWidth(java.lang.Integer width)
Sets width of a period selector, when position is "left" or "right".
|
public java.lang.String getDateFormat()
public PeriodSelector setDateFormat(java.lang.String dateFormat)
dateFormat
- date format stringpublic java.lang.String getFromText()
public PeriodSelector setFromText(java.lang.String fromText)
fromText
- from textpublic java.lang.Boolean getHideOutOfScopePeriods()
public PeriodSelector setHideOutOfScopePeriods(java.lang.Boolean hideOutOfScopePeriods)
hideOutOfScopePeriods
- hideOutOfScopePeriods optionpublic java.lang.Boolean getInputFieldsEnabled()
public PeriodSelector setInputFieldsEnabled(java.lang.Boolean inputFieldsEnabled)
inputFieldsEnabled
- inputFieldsEnabled optionpublic java.lang.Integer getInputFieldWidth()
public PeriodSelector setInputFieldWidth(java.lang.Integer inputFieldWidth)
inputFieldWidth
- widthpublic java.util.List<Period> getPeriods()
public PeriodSelector setPeriods(java.util.List<Period> periods)
periods
- list of periodspublic PeriodSelector addPeriods(Period... periods)
periods
- periodspublic java.lang.String getPeriodsText()
public PeriodSelector setPeriodsText(java.lang.String periodsText)
periodsText
- periods textpublic Position getPosition()
public PeriodSelector setPosition(Position position)
position
- positionpublic java.lang.Boolean getSelectFromStart()
public PeriodSelector setSelectFromStart(java.lang.Boolean selectFromStart)
selectFromStart
- selectFromStart optionpublic java.lang.String getToText()
public PeriodSelector setToText(java.lang.String toText)
toText
- textpublic java.lang.Integer getWidth()
public PeriodSelector setWidth(java.lang.Integer width)
width
- width