class CalendarAdapter extends ComponentAdapter
For now, this effectively disables all notion of row/column coordinates. It's focused on an externally provided date (as Calendar) and CalendarState. Yeah, I know, that's tweaking too much but then, I want to use highlighters which need an adapter...
Modifier and Type | Field and Description |
---|---|
(package private) Calendar |
calendar |
(package private) CalendarState |
dayState |
column, DEFAULT_COLUMN_IDENTIFIER, row, target
Constructor and Description |
---|
CalendarAdapter(JXMonthView component) |
Modifier and Type | Method and Description |
---|---|
CalendarState |
getCalendarState() |
JXMonthView |
getComponent()
Returns the component which is this adapter's target.
|
Object |
getFilteredValueAt(int row,
int column)
Returns the filtered value of the cell identified by the row
in view coordinate and the column in model coordinates.
|
Object |
getValueAt(int row,
int column)
Returns the value of the target component's cell identified by the
specified row and column in model coordinates.
|
boolean |
hasFocus()
Returns true if the cell identified by this adapter currently has focus.
|
CalendarAdapter |
install(Calendar calendar,
CalendarState dayState) |
boolean |
isCellEditable(int row,
int column)
Determines whether this cell is editable.
|
boolean |
isEditable()
Returns
true if the cell identified by this adapter is editable,
false otherwise. |
boolean |
isFlagged() |
private boolean |
isSelectable() |
boolean |
isSelected()
Returns true if the cell identified by this adapter is currently selected.
|
boolean |
isUnselectable() |
convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, getCellBounds, getColumnClass, getColumnClass, getColumnCount, getColumnIdentifierAt, getColumnIndex, getColumnName, getDepth, getFilteredStringAt, getRowCount, getString, getString, getStringAt, getValue, getValue, isExpanded, isHierarchical, isLeaf, isTestable
CalendarState dayState
public CalendarAdapter(JXMonthView component)
component
- public CalendarAdapter install(Calendar calendar, CalendarState dayState)
calendar2
- dayState2
- public JXMonthView getComponent()
ComponentAdapter
getComponent
in class ComponentAdapter
public CalendarState getCalendarState()
public boolean isFlagged()
public boolean isUnselectable()
private boolean isSelectable()
dayState
- public boolean isSelected()
ComponentAdapter
isSelected
in class ComponentAdapter
public Object getFilteredValueAt(int row, int column)
ComponentAdapter
getFilteredValueAt
in class ComponentAdapter
row
- the row of the cell in view coordinatescolumn
- the column of the cell in model coordinates.public Object getValueAt(int row, int column)
ComponentAdapter
getValueAt
in class ComponentAdapter
row
- in model coordinatescolumn
- in model coordinatespublic boolean hasFocus()
ComponentAdapter
hasFocus
in class ComponentAdapter
public boolean isCellEditable(int row, int column)
ComponentAdapter
isCellEditable
in class ComponentAdapter
row
- the row to query in model coordinatescolumn
- the column to query in model coordinatestrue
if the cell is editable, false
otherwisepublic boolean isEditable()
ComponentAdapter
true
if the cell identified by this adapter is editable,
false
otherwise.isEditable
in class ComponentAdapter
true
if the cell is editable, false
otherwiseWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses