ikayaki.gui
Class StyledCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
ikayaki.gui.StyledCellEditor
- All Implemented Interfaces:
- Serializable, CellEditor, TableCellEditor, TreeCellEditor
public class StyledCellEditor
- extends DefaultCellEditor
CellEditor to compliment StyledTableCellRenderer. Applies the horizontalAlignment, foreground and font styles to the
component returned by another cell editor. Unless otherwise specified, uses a DefaultCellEditor.
- Author:
- Esko Luontola
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StyledCellEditor
public StyledCellEditor(JTextField textField)
- Constructs a
StyledCellEditor
that uses a text field.
- Parameters:
textField
- a JTextField
object
StyledCellEditor
public StyledCellEditor(JCheckBox checkBox)
- Constructs a
StyledCellEditor
object that uses a check box.
- Parameters:
checkBox
- a JCheckBox
object
StyledCellEditor
public StyledCellEditor(JComboBox comboBox)
- Constructs a
StyledCellEditor
object that uses a combo box.
- Parameters:
comboBox
- a JComboBox
object
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
- Implements the
TreeCellEditor
interface.
- Specified by:
getTreeCellEditorComponent
in interface TreeCellEditor
- Overrides:
getTreeCellEditorComponent
in class DefaultCellEditor
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Implements the
TableCellEditor
interface.
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor
- Overrides:
getTableCellEditorComponent
in class DefaultCellEditor