| javax.swing.DefaultCellEditor net.sf.jga.swing.GenericCellEditor
GenericCellEditor | public class GenericCellEditor extends DefaultCellEditor (Code) | | CellEditor that uses a pair of functors to parse/format a value. Empty
strings, or strings containing only whitespace will correspond to null
values of type T.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Inner Class :protected class FormattedDelegate extends EditorDelegate | |
serialVersionUID | final static long serialVersionUID(Code) | | |
GenericCellEditor | public GenericCellEditor(Class<T> type)(Code) | | Builds a GenericCellEdior using default format for the given class. The
resulting editor can support any class that defines toString() and also
has a one argument constructor that takes a String.
|
GenericCellEditor | public GenericCellEditor(UnaryFunctor<T, String> formatter, UnaryFunctor<String, T> parser, T defaultValue)(Code) | | Builds the GenericCellEditor using the given functor pair and default
value for empty strings.
|
getHorizontalAlignment | public int getHorizontalAlignment()(Code) | | Returns the horizontal alignment: one of the values defined by JTextField.
|
setHorizontalAlignment | public void setHorizontalAlignment(int alignment)(Code) | | Sets the horizontal alignment to one of the values defined by JTextField.
|
stopCellEditing | public boolean stopCellEditing()(Code) | | Retrieves the value from the editor component, giving a visual clue when
the value is invalid
|
|
|