|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.table.ClassConciousEditorRenderer
public class ClassConciousEditorRenderer
A renderer and editor that delegates rendering to the most appropriate renderer or editor for the cell's value.
| Method Summary | |
|---|---|
void |
addCellEditorListener(CellEditorListener listener)
Adds a listener to the list that's notified when the editor stops, or cancels editing. |
void |
cancelCellEditing()
Tells the editor to cancel editing and not accept any partially edited value. |
Object |
getCellEditorValue()
Returns the value contained in the editor. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Returns the component used for editing the cell. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the component used for drawing the cell. |
static ClassConciousEditorRenderer |
install(JTable table)
Creates a ClassConciousRenderer for the specified JTable and
installs it into the table. |
boolean |
isCellEditable(EventObject anEvent)
Asks the editor if it can start editing using anEvent. |
void |
removeCellEditorListener(CellEditorListener listener)
Removes a listener from the list that's notified |
boolean |
shouldSelectCell(EventObject anEvent)
Returns true if the editing cell should be selected, false otherwise. |
boolean |
stopCellEditing()
Tells the editor to stop editing and accept any partially edited value as the value of the editor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ClassConciousEditorRenderer install(JTable table)
ClassConciousRenderer for the specified JTable and
installs it into the table.
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
getTableCellRendererComponent in interface TableCellRenderer
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface TableCellEditorpublic void addCellEditorListener(CellEditorListener listener)
addCellEditorListener in interface CellEditorpublic void removeCellEditorListener(CellEditorListener listener)
removeCellEditorListener in interface CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorpublic boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell in interface CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||