|
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.FitAllLayoutFormat
A class that formats and parses instances of FitAllLayout
.
FitAllLayout
Constructor Summary | |
FitAllLayoutFormat()
Creates a FitAllLayoutFormat for the default locale. |
|
FitAllLayoutFormat(java.util.Locale locale)
Creates a FitAllLayoutFormat 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 FitAllLayoutFormat s are installed. |
static FitAllLayoutFormat |
getInstance()
Returns the default FitAllLayoutFormat for the default locale. |
static FitAllLayoutFormat |
getInstance(java.util.Locale locale)
Returns the default FitAllLayoutFormat 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 FitAllLayoutFormat()
FitAllLayoutFormat
for the default locale.
public FitAllLayoutFormat(java.util.Locale locale)
FitAllLayoutFormat
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) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
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()
FitAllLayoutFormat
s are installed.
public static FitAllLayoutFormat getInstance()
FitAllLayoutFormat
for the default locale.
FitAllLayoutFormat
for the default localepublic static FitAllLayoutFormat getInstance(java.util.Locale locale)
FitAllLayoutFormat
for the specified locale.
FitAllLayoutFormat
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 |