57 |
* |
* |
58 |
* @author Roman Kennke (roman@kennke.org) |
* @author Roman Kennke (roman@kennke.org) |
59 |
*/ |
*/ |
60 |
public class DefaultFormatter |
public class DefaultFormatter extends JFormattedTextField.AbstractFormatter |
|
extends JFormattedTextField.AbstractFormatter |
|
61 |
implements Cloneable, Serializable |
implements Cloneable, Serializable |
62 |
{ |
{ |
63 |
|
|
155 |
* Checks if the value in the input field is valid. If the |
* Checks if the value in the input field is valid. If the |
156 |
* property allowsInvalid is set to <code>false</code>, then |
* property allowsInvalid is set to <code>false</code>, then |
157 |
* the string in the input field is not allowed to be entered. |
* the string in the input field is not allowed to be entered. |
|
* |
|
|
* @param doc the document of the input field |
|
|
* @param value the current (old) value of the input field |
|
158 |
*/ |
*/ |
159 |
private void checkValidInput() |
private void checkValidInput() |
160 |
{ |
{ |
182 |
} |
} |
183 |
} |
} |
184 |
|
|
185 |
/** The serialVersoinUID. */ |
/** The serialization UID (compatible with JDK1.5). */ |
186 |
private static final long serialVersionUID = -7369196326612908900L; |
private static final long serialVersionUID = -355018354457785329L; |
187 |
|
|
188 |
/** |
/** |
189 |
* Indicates if the value should be committed after every |
* Indicates if the value should be committed after every |