Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.outerj.pollo.util
Class ExtendedTextFieldTableCellEditor  view ExtendedTextFieldTableCellEditor download ExtendedTextFieldTableCellEditor.java

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended byorg.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.


Field Summary
protected  javax.swing.JPanel panel
           
protected  PublicKeyBindingTextField textField
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ExtendedTextFieldTableCellEditor(java.awt.Component extraStuff)
           
 
Method Summary
 java.lang.Object getCellEditorValue()
          Returns the current value for the CellEditor.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          Get table cell editor component
 javax.swing.JTextField getTextField()
           
 Valuable getValuable()
           
 java.lang.String getValue()
           
 void insertString(java.lang.String value)
          Inserts the given string at the caret position.
 void setValue(java.lang.String value)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

panel

protected javax.swing.JPanel panel

textField

protected PublicKeyBindingTextField textField
Constructor Detail

ExtendedTextFieldTableCellEditor

public ExtendedTextFieldTableCellEditor(java.awt.Component extraStuff)
Method Detail

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