|
|||||||||
| Home >> All >> com >> gopas >> rt >> [ model overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.gopas.rt.model
Class UIFormat

java.lang.Objectcom.gopas.rt.model.UIFormat
- All Implemented Interfaces:
- com.gopas.rt.util.RT, RtModel
- public class UIFormat
- extends java.lang.Object
- implements com.gopas.rt.util.RT, RtModel
- extends java.lang.Object
Allows formatting and scanning from and to internal data to external (human readable) string representation fo the data.
- Version:
- : $Revision: 1.1.1.1 $
| Field Summary | |
static java.text.DateFormat |
dateLongForm
Standardformate |
static java.text.DateFormat |
dateShortForm
|
static java.text.DecimalFormat |
expForm
|
private com.gopas.rt.util.Predicate |
extChecker
|
private com.gopas.rt.util.Functor |
extToInt
|
static java.text.DecimalFormat |
intForm
|
private com.gopas.rt.util.Functor |
intToExt
|
static java.text.DecimalFormat |
moneyForm
|
private static java.util.Map |
namedFormats
Map mit Formaten, vor den Standardformaten ! |
static java.text.DecimalFormat |
numberForm
|
static java.text.DecimalFormat |
percentForm
|
static java.text.DecimalFormat |
percentNoSignForm
|
| Fields inherited from interface com.gopas.rt.util.RT |
ACTIVATED_STATUS, ALL, CREATED_STATUS, DEBUG, DEBUG_MSG, DEBUG_ON, DEFAULT_DEBUG_LEVEL, DEFAULT_ERROR_LEVEL, DEFAULT_VERBOSE_LEVEL, DEFAULT_WARNING_LEVEL, DELETED_STATUS, EASY_ERR, ERROR_MSG, FORCE, GENERAL, MODIFIED_STATUS, nl, NORMAL_ERR, NOTE, NOTE1, NOTE2, NOTE3, NOTE4, NOTE5, OFF, PROGRESS, SEVERE_ERR, VERBOSE_MSG, WARNING, WARNING_MSG |
| Fields inherited from interface com.gopas.rt.model.RtModel |
AGGR_STEREO, ASSOC_STEREO, ATTR_STEREO, ATTR1_STEREO, ATTR2_STEREO, dateFormat, dateLongFormat, defaultFormat, DELETED_STAT, interpreterPred, intFormat, ISDATE, ISNUMERIC, ISOBJECT, moneyFormat, NEW_STAT, numberExpFormat, numberFormat, numberSelExpFormat, OLD_MODIFIED_STAT, OLD_UNMODIFIED_STAT, operatorAssignPred, operatorFailPred, percentFormat, percentNoSignFormat, res, TRANSIENT_STAT |
| Constructor Summary | |
UIFormat(com.gopas.rt.util.Functor intToExt,
com.gopas.rt.util.Functor extToInt,
com.gopas.rt.util.Predicate extChecker)
Create a new instance with a specific format type and a the class type for expected values. |
|
UIFormat(java.lang.String name,
com.gopas.rt.util.Functor intToExt,
com.gopas.rt.util.Functor extToInt,
com.gopas.rt.util.Predicate extChecker)
Create a new instance with a specific format type and a the class type for expected values. |
|
| Method Summary | |
boolean |
check(java.lang.Object internal)
Transform an external representation into an internal represenation. |
java.lang.Object |
format(double internal)
Format a value from its internal representation to a external, human readable representation. |
java.lang.Object |
format(long internal)
Format a value from its internal representation to a external, human readable representation. |
java.lang.Object |
format(java.lang.Object internal)
Format a value from its internal representation to a external, human readable representation. |
static UIFormat |
lookup(java.lang.String name)
Suche ein bestimmtes benammtes Format. |
java.lang.Object |
scan(java.lang.Object external)
Transform an external representation into an internal represenation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
intToExt
private com.gopas.rt.util.Functor intToExt
extToInt
private com.gopas.rt.util.Functor extToInt
extChecker
private com.gopas.rt.util.Predicate extChecker
namedFormats
private static final java.util.Map namedFormats
- Map mit Formaten, vor den Standardformaten !
dateLongForm
public static final java.text.DateFormat dateLongForm
- Standardformate
dateShortForm
public static final java.text.DateFormat dateShortForm
moneyForm
public static final java.text.DecimalFormat moneyForm
percentForm
public static final java.text.DecimalFormat percentForm
percentNoSignForm
public static final java.text.DecimalFormat percentNoSignForm
numberForm
public static final java.text.DecimalFormat numberForm
expForm
public static final java.text.DecimalFormat expForm
intForm
public static final java.text.DecimalFormat intForm
| Constructor Detail |
UIFormat
public UIFormat(java.lang.String name, com.gopas.rt.util.Functor intToExt, com.gopas.rt.util.Functor extToInt, com.gopas.rt.util.Predicate extChecker)
- Create a new instance with a specific format type and a the class type
for expected values.
UIFormat
public UIFormat(com.gopas.rt.util.Functor intToExt, com.gopas.rt.util.Functor extToInt, com.gopas.rt.util.Predicate extChecker)
- Create a new instance with a specific format type and a the class type
for expected values.
| Method Detail |
format
public java.lang.Object format(java.lang.Object internal)
- Format a value from its internal representation to a external, human
readable representation.
format
public java.lang.Object format(double internal)
- Format a value from its internal representation to a external, human
readable representation.
format
public java.lang.Object format(long internal)
- Format a value from its internal representation to a external, human
readable representation.
scan
public java.lang.Object scan(java.lang.Object external)
- Transform an external representation into an internal represenation.
If an error occurs, a null value is returned.
check
public boolean check(java.lang.Object internal)
- Transform an external representation into an internal represenation.
If an error occurs, a null value is returned.
lookup
public static UIFormat lookup(java.lang.String name)
- Suche ein bestimmtes benammtes Format. Wenn es nicht unter diesen
Namen eingetragen ist, wird eine Warnung ausgegeben und das
Default-Format zurueckgegeben.
|
|||||||||
| Home >> All >> com >> gopas >> rt >> [ model overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.gopas.rt.model.UIFormat