java.lang.Object
javax.swing.AbstractCellEditor
org.outerj.pollo.util.ExtendedTextFieldTableCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, Valuable
- public class ExtendedTextFieldTableCellEditor
- extends javax.swing.AbstractCellEditor
- implements javax.swing.table.TableCellEditor, Valuable
A TableCellEditor that consists of a textfield with (optionally) some
extra components next to it (e.g. a button to browse for a file name, etc.).
This behaviour is achieved by placing a textfield and the extra components on
a panel, and returning that panel as editor.
Using the methods in the Valuable interface, the contents of the textfield
can be manipulated in a uniform way as for the ExtendedComboBoxTableCellEditor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
panel
protected javax.swing.JPanel panel
textField
protected PublicKeyBindingTextField textField
ExtendedTextFieldTableCellEditor
public ExtendedTextFieldTableCellEditor(java.awt.Component extraStuff)
getTextField
public javax.swing.JTextField getTextField()
getValuable
public Valuable getValuable()
setValue
public void setValue(java.lang.String value)
- Specified by:
setValue in interface Valuable
getValue
public java.lang.String getValue()
- Specified by:
getValue in interface Valuable
insertString
public void insertString(java.lang.String value)
- Description copied from interface:
Valuable
- Inserts the given string at the caret position.
- Specified by:
insertString in interface Valuable
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Description copied from interface:
javax.swing.table.TableCellEditor
- Get table cell editor component
- Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Description copied from interface:
javax.swing.CellEditor
- Returns the current value for the
CellEditor.
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor