public final class CellSettings extends ViewSettings
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFirstDayOfMonthFormat()
Gets the string used to format and display the first
day of each month in the calendar.
|
java.lang.String |
getFirstDayOfYearFormat()
Gets the string used to format and display the first
day of each year in the calendar.
|
java.lang.String |
getGeneralFormat()
Gets the string used to format and display dates and times in the calendar.
|
Position |
getHeaderPosition()
Gets the position of the cell header.
|
java.lang.Integer |
getHeaderSize()
Gets the size of the cell header in pixels.
|
java.lang.Integer |
getMargin()
Gets the distance between the outermost border of the cell and the cell contents.
|
java.lang.Boolean |
getRotateHeader()
|
java.lang.Boolean |
getShowToday()
Gets a value indicating whether the calendar should
mark the current cell by underlining the header area.
|
Style |
getStyle()
Gets the appearance style used to paint calendar elements
that don't have a distinct style assigned to them.
|
java.awt.Color |
getTodayColor()
Gets the color used to paint the line that marks the current cell.
|
java.awt.Color |
getTodayFillColor()
Gets the color used to fill the header of the current cell.
|
void |
setFirstDayOfMonthFormat(java.lang.String value)
Sets the string used to format and display the first
day of each month in the calendar.
|
void |
setFirstDayOfYearFormat(java.lang.String value)
Sets the string used to format and display the first
day of each year in the calendar.
|
void |
setGeneralFormat(java.lang.String value)
Gets the string used to format and display dates and times in the calendar.
|
void |
setHeaderPosition(Position value)
Sets the position of the cell header.
|
void |
setHeaderSize(java.lang.Integer value)
Sets the size of the cell header in pixels.
|
void |
setMargin(java.lang.Integer value)
Sets the distance between the outermost border of the cell and the cell contents.
|
void |
setRotateHeader(java.lang.Boolean value)
|
void |
setShowToday(java.lang.Boolean value)
Sets a value indicating whether the calendar should
mark the current cell by underlining the header area.
|
void |
setStyle(Style value)
Sets the appearance style used to paint calendar elements
that don't have a distinct style assigned to them.
|
void |
setTodayColor(java.awt.Color value)
Sets the color used to paint the line that marks the current cell.
|
void |
setTodayFillColor(java.awt.Color value)
Sets the color used to fill the header of the current cell.
|
addChangeListener, removeChangeListener
public Style getStyle()
getStyle
in class ViewSettings
Style
object specifying the style of calendar UI elements.public void setStyle(Style value)
setStyle
in class ViewSettings
value
- A Style
object specifying the style of calendar UI elements.
Set to null to use the corresponding value from the current theme.public java.lang.Integer getMargin()
public void setMargin(java.lang.Integer value)
value
- A non-negative integer value specifying the margin size in pixels.
Set to null to use the corresponding value from the current theme.public Position getHeaderPosition()
Position
constants.public void setHeaderPosition(Position value)
value
- One of the Position
constants or null.
Set to null to use the corresponding value from the current theme.public java.lang.Integer getHeaderSize()
This property specifies the height of the header if getHeaderPosition()
is
either Top
or Bottom
, or the width of
the header if getHeaderPosition()
is Left
or
Right
. Specifying 0 for this property expands the header
to fill the entire cell.
public void setHeaderSize(java.lang.Integer value)
This property specifies the height of the header if getHeaderPosition()
is
either Top
or Bottom
, or the width of
the header if getHeaderPosition()
is Left
or
Right
. Specifying 0 for this property expands the header
to fill the entire cell.
value
- A non-negative integer value specifying the size in pixels.
Set to null to use the corresponding value from the current theme.public java.lang.Boolean getShowToday()
public void setShowToday(java.lang.Boolean value)
value
- true to indicate visually the current day; otherwise, false.
Set to null to use the corresponding value from the current theme.public java.awt.Color getTodayColor()
public void setTodayColor(java.awt.Color value)
value
- A Color object.
Set to null to use the corresponding value from the current theme.public java.awt.Color getTodayFillColor()
public void setTodayFillColor(java.awt.Color value)
value
- A Color object.
Set to null to use the corresponding value from the current theme.public java.lang.String getGeneralFormat()
public void setGeneralFormat(java.lang.String value)
value
- A string specifying the display format.
Set to null to use the corresponding value from the current theme.public java.lang.String getFirstDayOfMonthFormat()
public void setFirstDayOfMonthFormat(java.lang.String value)
value
- A string specifying the display format.
Set to null to use the corresponding value from the current theme.public java.lang.String getFirstDayOfYearFormat()
public void setFirstDayOfYearFormat(java.lang.String value)
value
- A string specifying the display format.
Set to null to use the corresponding value from the current theme.public java.lang.Boolean getRotateHeader()
Left
or
Right
.public void setRotateHeader(java.lang.Boolean value)
Left
or
Right
.value
- true to rotate header text; otherwise, false.
Set to null to use the corresponding value from the current theme.