Calendar Component v5.1
www.calendarcomponent.com

com.imagine.component.calendar
Class CalendarTableCellEditor

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended bycom.imagine.component.calendar.CalendarTableCellEditor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor

public class CalendarTableCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor

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.

See Also:
Serialized Form

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

CalendarTableCellEditor

public CalendarTableCellEditor()
Constructor for the CalendarTableCellEditor object.

Method Detail

getCalendarComboBox

public CalendarComboBox getCalendarComboBox()
Get the CalendarComboBox associated.

Returns:
The CalendarComboBox associated.

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Get the Table Cell Editor Component.

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Parameters:
table - the JTable that is asking the editor to edit; can be null
value - 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 value
isSelected - true if the cell is to be rendered with highlighting
row - the row of the cell being edited
column - the column of the cell being edited
Returns:
the component for editing

getCellEditorValue

public java.lang.Object getCellEditorValue()
Get the cell editor value.

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Returns:
The cell editor value.

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)
Returns true if the cell is editable.

Specified by:
isCellEditable in interface javax.swing.CellEditor
Parameters:
anEvent - Brings details of the contest.
Returns:
true If the cell is editable.

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject anEvent)
Returns true if the cell should be selected, false otherwise.

Specified by:
shouldSelectCell in interface javax.swing.CellEditor
Parameters:
anEvent - Brings details of the contest.
Returns:
true if the cell should be selected, false otherwise.

cancelCellEditing

public void cancelCellEditing()
Called when the cell editing is cancelled.

Specified by:
cancelCellEditing in interface javax.swing.CellEditor

stopCellEditing

public boolean stopCellEditing()
Called when the cell editing is stopped.

Specified by:
stopCellEditing in interface javax.swing.CellEditor

updateUI

public void updateUI()

Calendar Component v5.1
www.calendarcomponent.com