|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.JFormattedTextField.AbstractFormatter
javax.swing.text.DefaultFormatter
com.quadrique.jbuildingblocks.gui.RegularExpressionFormatter
public class RegularExpressionFormatter
A regular expression based implementation of
| Constructor Summary | |
|---|---|
RegularExpressionFormatter()
|
|
RegularExpressionFormatter(Pattern pattern)
Creates a regular expression based |
|
RegularExpressionFormatter(String pattern)
Creates a regular expression based |
|
| Method Summary | |
|---|---|
Pattern |
getPattern()
Returns the |
void |
setPattern(Pattern pattern)
Sets the pattern that will be used to determine if a value is legal. |
Object |
stringToValue(String text)
Parses |
| Methods inherited from class javax.swing.text.DefaultFormatter |
|---|
clone, getAllowsInvalid, getCommitsOnValidEdit, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass, valueToString |
| Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter |
|---|
uninstall |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegularExpressionFormatter()
public RegularExpressionFormatter(String pattern)
throws PatternSyntaxException
PatternSyntaxExceptionpublic RegularExpressionFormatter(Pattern pattern)
| Method Detail |
|---|
public void setPattern(Pattern pattern)
public Pattern getPattern()
public Object stringToValue(String text)
throws ParseException
If a
stringToValue in class DefaultFormattertext - String to convert
ParseException - if there is an error in the conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||