|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.text.SAbstractFormatter
org.wings.text.SDefaultFormatter
org.wings.text.SInternationalFormatter
public class SInternationalFormatter
SInternationalFormatter extends SDefaultFormatter,
using an instance of java.text.Format to handle the
conversion to a String, and the conversion from a String.
| Constructor Summary | |
|---|---|
SInternationalFormatter(Format format)
Creates a new instance of SInternationalFormatter |
|
| Method Summary | |
|---|---|
Format |
getFormat()
Returns the format that dictates the legal values that can be edited and displayed. |
Comparable |
getMaximum()
Returns the maximum valid value |
Comparable |
getMinimum()
Return the minimum valid value |
void |
setFormat(Format format)
Sets the format that dictates the legal values that can be edited and displayed. |
void |
setMaximum(Comparable max)
Sets the maximum valid value |
void |
setMinimum(Comparable min)
Sets the minimum valid value |
Object |
stringToValue(String text)
Object representation of text. |
String |
valueToString(Object value)
String representation of value. |
| Methods inherited from class org.wings.text.SDefaultFormatter |
|---|
getValueClass, setValueClass |
| Methods inherited from class org.wings.text.SAbstractFormatter |
|---|
getFormattedTextField, install, uninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SInternationalFormatter(Format format)
| Method Detail |
|---|
public void setFormat(Format format)
format - The format that dictates the legal values that can be edited and displayed.public Format getFormat()
public Object stringToValue(String text)
throws ParseException
stringToValue in class SDefaultFormattertext - String to convert
ParseException
public String valueToString(Object value)
throws ParseException
valueToString in class SDefaultFormattervalue - Value to convert
ParseExceptionpublic void setMinimum(Comparable min)
min - the minimum valid valuepublic Comparable getMinimum()
public void setMaximum(Comparable max)
max - the maximum valid valuepublic Comparable getMaximum()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||