public class DateStyle
extends java.lang.Object
Constructor and Description |
---|
DateStyle()
Initializes a new instance of the
DateStyle class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowItems()
Gets a value indicating whether the date cells in this range
allow items to be placed or created in them interactively.
|
boolean |
getAllowSelect()
Gets a value indicating whether the date cells in this range can be selected.
|
DateTime |
getFrom()
Gets the start date of the formatted range.
|
int |
getPriority()
Gets the format priority.
|
Style |
getStyle()
Gets the visualization style of the date cells included in the formatted range.
|
DateTime |
getTo()
Gets the end date of the formatted range.
|
void |
setAllowItems(boolean value)
Sets a value indicating whether the date cells in this range
allow items to be placed or created in them interactively.
|
void |
setAllowSelect(boolean value)
Sets a value indicating whether the date cells in this range can be selected.
|
void |
setFrom(DateTime value)
Sets the start date of the formatted range.
|
void |
setPriority(int value)
Sets the format priority.
|
void |
setStyle(Style value)
Sets the visualization style of the date cells included in the formatted range.
|
void |
setTo(DateTime value)
Sets the end date of the formatted range.
|
public DateStyle()
DateStyle
class.
Both the start and end dates are set to the current date.public DateTime getFrom()
DateTime
object specifying the start of
the time interval whose cells' style is defined in this object.public void setFrom(DateTime value)
value
- A DateTime
object specifying the start of
the time interval whose cells' style is defined in this object.public DateTime getTo()
DateTime
object specifying the end of the
time interval whose cells' style is defined in this object.public void setTo(DateTime value)
value
- A DateTime
object specifying the end of the
time interval whose cells' style is defined in this object.public Style getStyle()
Style
object that defines the appearance
of time cells included in the specified interval.public void setStyle(Style value)
value
- A Style
object that defines the appearance
of time cells included in the specified interval.public int getPriority()
When a time cell is included in the time intervals of several DateStyle
or
DayOfWeekStyle
objects, the style that has the highest priority is used.
public void setPriority(int value)
When a time cell is included in the time intervals of several DateStyle
or
DayOfWeekStyle
objects, the style that has the highest priority is used.
value
- An integer value specifying the priority of this style.public boolean getAllowSelect()
public void setAllowSelect(boolean value)
value
- true to let users select the date cells; otherwise, false. The default is true.public boolean getAllowItems()
public void setAllowItems(boolean value)
value
- true to let users place schedule items in the specified cells;
otherwise, false. The default is false.