|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
infovis.column.format.BooleanFormat
public class BooleanFormat
Format for boolean columns.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.Format |
|---|
Format.Field |
| Field Summary | |
|---|---|
static String[] |
NO_STRING
List of names for the value FALSE. |
static String[] |
YES_STRING
List of names for the value TRUE. |
| Constructor Summary | |
|---|---|
BooleanFormat()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addNoString(String no)
Adds a new name for the NO value. |
void |
addYesString(String yes)
Adds a new name for the YES value. |
StringBuffer |
format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
|
static BooleanFormat |
getInstance()
Returns an instance of that format. |
Object |
parseObject(String source,
ParsePosition pos)
|
static BooleanFormat |
setInstance(BooleanFormat format)
Sets the instance of that format. |
| Methods inherited from class java.text.Format |
|---|
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] YES_STRING
public static final String[] NO_STRING
| Constructor Detail |
|---|
public BooleanFormat()
| Method Detail |
|---|
public static BooleanFormat getInstance()
public static BooleanFormat setInstance(BooleanFormat format)
format - the format
public Object parseObject(String source,
ParsePosition pos)
parseObject in class Formatpublic void addYesString(String yes)
yes - the new name.public void addNoString(String no)
no - the new name
public StringBuffer format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
format in class Format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||