|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
com.imagine.component.calendar.CalendarTableCellEditor
Defines a JTableCellEditor component. This is implemented using a CalendarComboBox.
To get an instance for CalendarTableCellEditor you need to call the method createTableCellEditor() from the CalendarFactory class.
| Field Summary |
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
| Constructor Summary | |
CalendarTableCellEditor()
Constructor for the CalendarTableCellEditor object. |
|
| Method Summary | |
void |
cancelCellEditing()
Called when the cell editing is cancelled. |
CalendarComboBox |
getCalendarComboBox()
Get the CalendarComboBox associated. |
java.lang.Object |
getCellEditorValue()
Get the cell editor value. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Get the Table Cell Editor Component. |
boolean |
isCellEditable(java.util.EventObject anEvent)
Returns true if the cell is editable. |
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Returns true if the cell should be selected, false otherwise. |
boolean |
stopCellEditing()
Called when the cell editing is stopped. |
void |
updateUI()
|
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
| Constructor Detail |
public CalendarTableCellEditor()
| Method Detail |
public CalendarComboBox getCalendarComboBox()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditortable - the JTable that is asking the
editor to edit; can be nullvalue - the value of the cell to be edited; it is
up to the specific editor to interpret
and draw the value. For example, if value is
the string "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null
is a valid valueisSelected - true if the cell is to be rendered with
highlightingrow - the row of the cell being editedcolumn - the column of the cell being edited
public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable in interface javax.swing.CellEditoranEvent - Brings details of the contest.
public boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell in interface javax.swing.CellEditoranEvent - Brings details of the contest.
public void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorpublic void updateUI()
|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||