kiwi.ui
Class ImmutableCellEditor
java.lang.Object
|
+--kiwi.ui.AbstractCellEditor
|
+--kiwi.ui.ImmutableCellEditor
- public class ImmutableCellEditor
- extends AbstractCellEditor
- implements TableCellEditor
This class is a workaround for a bug in JFC. It is basically an
implementation of TableCellEditor
that uses a
JLabel
so that the cell will not be editable.
This class will be deprecated in Kiwi 1.2.
- Version:
- 1.1 (10/98)
- Author:
- Mark Lindner, PING Software Group
- See Also:
TableCellEditor
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ImmutableCellEditor
public ImmutableCellEditor()
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Construct a new
ImmutableCellEditor
.
public ImmutableCellEditor()
{
}
/** Get the editor component.
- Specified by:
- getTableCellEditorComponent in interface TableCellEditor
- Returns:
- The
JLabel
.
getCellEditorValue
public Object getCellEditorValue()
- Get the value of this editor.
- Returns:
- The text displayed by the
JLabel
. - Overrides:
- getCellEditorValue in class AbstractCellEditor
isCellEditable
public boolean isCellEditable(EventObject anEvent)
- Check if this cell is editable.
- Returns:
- Always false.
- Overrides:
- isCellEditable in class AbstractCellEditor