|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
net.sf.freecol.client.gui.panel.ColorCellEditor
public final class ColorCellEditor
A table cell editor that can be used to edit colors.
Constructor Summary | |
---|---|
ColorCellEditor(Canvas canvas)
The constructor to use. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This function analyzes an event and calls the right methods to take care of the user's requests. |
java.lang.Object |
getCellEditorValue()
Returns the value of the cell editor. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean hasFocus,
int row,
int column)
Returns the component used to edit the cell's value. |
Methods inherited from class javax.swing.AbstractCellEditor |
---|
addCellEditorListener, cancelCellEditing, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
---|
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Constructor Detail |
---|
public ColorCellEditor(Canvas canvas)
canvas
- The top level component that holds all other components.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The incoming ActionEvent.public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean hasFocus, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
table
- The table whose cell needs to be edited.value
- The value of the cell being edited.hasFocus
- Indicates whether or not the cell in question has focus.row
- The row index of the cell that is being edited.column
- The column index of the cell that is being edited.
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |