class CalendarCellContext extends CellContext
Modifier and Type | Field and Description |
---|---|
private int |
arrowPaddingX
The padding for month traversal icons.
|
private int |
arrowPaddingY |
private CalendarState |
dayState |
Constructor and Description |
---|
CalendarCellContext() |
Modifier and Type | Method and Description |
---|---|
protected Color |
getBackground()
Returns the background color of the renderered component or null if the
component is null
PENDING: fallback to UI properties if comp == null?
|
protected Border |
getBorder()
Returns the default border of the renderered component depending on cell
state.
|
Calendar |
getCalendar() |
CalendarState |
getCalendarState() |
JXMonthView |
getComponent()
Returns the component the cell resides on, may be null.
|
protected Color |
getFlaggedOrPerDayForeground()
Returns the special color used for flagged days or per weekday or null if none is
set, the component or the calendar are null.
|
protected Color |
getForeground()
Returns the foreground color of the renderered component or null if the
component is null
PENDING: fallback to UI properties if comp == null?
|
protected Color |
getSelectionBackground()
Returns the default selection background color of the renderered
component.
|
protected Color |
getSelectionForeground()
Returns the default selection foreground color of the renderered
component.
|
private Border |
getTitleBorder() |
private Color |
getUIColor(String key) |
protected String |
getUIPrefix()
Returns the component type specific prefix of keys for lookup in the
UIManager.
|
void |
installContext(JXMonthView component,
Calendar value,
boolean selected,
boolean focused,
CalendarState dayState) |
protected boolean |
isToday() |
getCellRendererName, getColumn, getDropCellBackground, getDropCellForeground, getFocusBackground, getFocusBorder, getFocusForeground, getFont, getIcon, getRow, getUIKey, getValue, installState, isDropOn, isEditable, isExpanded, isFocused, isLeaf, isSelected, replaceValue
private int arrowPaddingX
private int arrowPaddingY
private CalendarState dayState
CalendarCellContext()
public void installContext(JXMonthView component, Calendar value, boolean selected, boolean focused, CalendarState dayState)
public JXMonthView getComponent()
CellContext
getComponent
in class CellContext
public CalendarState getCalendarState()
public Calendar getCalendar()
protected Color getForeground()
CellContext
PENDING: fallback to UI properties if comp == null?
getForeground
in class CellContext
private Color getUIColor(String key)
key
- protected Color getFlaggedOrPerDayForeground()
protected Color getBackground()
CellContext
PENDING: fallback to UI properties if comp == null?
getBackground
in class CellContext
protected Color getSelectionBackground()
CellContext
PENDING: return UI properties here?
getSelectionBackground
in class CellContext
protected Color getSelectionForeground()
CellContext
PENDING: return UI properties here?
getSelectionForeground
in class CellContext
protected Border getBorder()
CellContext
Here: returns the focus border if the cell is focused, the context defined no focus border otherwise.
getBorder
in class CellContext
private Border getTitleBorder()
protected boolean isToday()
protected String getUIPrefix()
CellContext
getUIPrefix
in class CellContext
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses