|
Side of Software Print Preview Library 1.8.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.text.Format | +--sos.preview.MatrixLayoutFormat
A class that formats and parses instances of MatrixLayout
.
MatrixLayout
Constructor Summary | |
MatrixLayoutFormat()
Creates a MatrixLayoutFormat for the default locale. |
|
MatrixLayoutFormat(java.util.Locale locale)
Creates a MatrixLayoutFormat for the specified locale. |
Method Summary | |
java.lang.StringBuffer |
format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats an object and appends the resulting text to a given string buffer. |
static java.util.Locale[] |
getAvailableLocales()
Returns the set of locales for which MatrixLayoutFormat s are installed. |
static MatrixLayoutFormat |
getInstance()
Returns the default MatrixLayoutFormat for the default locale. |
static MatrixLayoutFormat |
getInstance(java.util.Locale locale)
Returns the default MatrixLayoutFormat for the specified locale. |
java.lang.Object |
parseObject(java.lang.String source,
java.text.ParsePosition pos)
Parses text from a string to produce an object. |
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MatrixLayoutFormat()
MatrixLayoutFormat
for the default locale.
public MatrixLayoutFormat(java.util.Locale locale)
MatrixLayoutFormat
for the specified locale.
locale
- the desired localeMethod Detail |
public java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.Format
obj
- the object to formattoAppendTo
- where the text is to be appendedpos
- a FieldPosition
identifying a field in the formatted text
toAppendTo
, with formatted text appended
java.lang.IllegalArgumentException
- if this Format
cannot format the given object
java.lang.NullPointerException
- if toAppendTo
or pos
is null
public static java.util.Locale[] getAvailableLocales()
MatrixLayoutFormat
s are installed.
public static MatrixLayoutFormat getInstance()
MatrixLayoutFormat
for the default locale.
MatrixLayoutFormat
for the default localepublic static MatrixLayoutFormat getInstance(java.util.Locale locale)
MatrixLayoutFormat
for the specified locale.
MatrixLayoutFormat
for the specified localepublic java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)
parseObject
in class java.text.Format
source
- a String
, part of which should be parsedpos
- a ParsePosition
object with index and error index
information
null
, if an error occurs
java.lang.NullPointerException
- if pos
is null
|
Side of Software Print Preview Library 1.8.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |