unbbayes.gui.table
Class ReplaceTextCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
unbbayes.gui.table.ReplaceTextCellEditor
- All Implemented Interfaces:
- Serializable, CellEditor, TableCellEditor, TreeCellEditor
public class ReplaceTextCellEditor
- extends DefaultCellEditor
Class responsible for replacing the old value by the new value typed instead of appending it.
However, if the focus is gained by something different than by typing a new value, then it
just selects all the text inside the text field component.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textField
protected JTextField textField
previousValue
protected String previousValue
ReplaceTextCellEditor
public ReplaceTextCellEditor()
setValue
public void setValue(Object value)
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface CellEditor
- Overrides:
getCellEditorValue
in class DefaultCellEditor
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor
- Overrides:
getTableCellEditorComponent
in class DefaultCellEditor
Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.