|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.util.format.Format
qx.util.format.NumberFormat
public class NumberFormat
A formatter and parser for numbers.
Constructor Summary | |
---|---|
NumberFormat()
|
|
NumberFormat(java.lang.String locale)
|
Method Summary | |
---|---|
java.lang.String |
format(int num)
Formats a number. |
boolean |
getGroupingUsed()
Returns the (computed) value of the property groupingUsed . |
int |
getMaximumFractionDigits()
Returns the (computed) value of the property maximumFractionDigits . |
int |
getMaximumIntegerDigits()
Returns the (computed) value of the property maximumIntegerDigits . |
int |
getMinimumFractionDigits()
Returns the (computed) value of the property minimumFractionDigits . |
int |
getMinimumIntegerDigits()
Returns the (computed) value of the property minimumIntegerDigits . |
java.lang.String |
getPostfix()
Returns the (computed) value of the property postfix . |
java.lang.String |
getPrefix()
Returns the (computed) value of the property prefix . |
void |
initGroupingUsed(boolean arg)
Calls the apply method and dispatches the change event of the property groupingUsed
with the default value defined by the class developer. |
void |
initMaximumFractionDigits(int arg)
Calls the apply method and dispatches the change event of the property maximumFractionDigits
with the default value defined by the class developer. |
void |
initMaximumIntegerDigits(int arg)
Calls the apply method and dispatches the change event of the property maximumIntegerDigits
with the default value defined by the class developer. |
void |
initMinimumFractionDigits(int arg)
Calls the apply method and dispatches the change event of the property minimumFractionDigits
with the default value defined by the class developer. |
void |
initMinimumIntegerDigits(int arg)
Calls the apply method and dispatches the change event of the property minimumIntegerDigits
with the default value defined by the class developer. |
void |
initPostfix(java.lang.String arg)
Calls the apply method and dispatches the change event of the property postfix
with the default value defined by the class developer. |
void |
initPrefix(java.lang.String arg)
Calls the apply method and dispatches the change event of the property prefix
with the default value defined by the class developer. |
boolean |
isGroupingUsed()
Check whether the (computed) value of the boolean property groupingUsed equals true . |
java.lang.Double |
parse(java.lang.String str)
Parses a number. |
void |
resetGroupingUsed()
Resets the user value of the property groupingUsed . |
void |
resetMaximumFractionDigits()
Resets the user value of the property maximumFractionDigits . |
void |
resetMaximumIntegerDigits()
Resets the user value of the property maximumIntegerDigits . |
void |
resetMinimumFractionDigits()
Resets the user value of the property minimumFractionDigits . |
void |
resetMinimumIntegerDigits()
Resets the user value of the property minimumIntegerDigits . |
void |
resetPostfix()
Resets the user value of the property postfix . |
void |
resetPrefix()
Resets the user value of the property prefix . |
void |
setGroupingUsed(boolean arg)
Sets the user value of the property groupingUsed . |
void |
setMaximumFractionDigits(int arg)
Sets the user value of the property maximumFractionDigits . |
void |
setMaximumIntegerDigits(int arg)
Sets the user value of the property maximumIntegerDigits . |
void |
setMinimumFractionDigits(int arg)
Sets the user value of the property minimumFractionDigits . |
void |
setMinimumIntegerDigits(int arg)
Sets the user value of the property minimumIntegerDigits . |
void |
setPostfix(java.lang.String arg)
Sets the user value of the property postfix . |
void |
setPrefix(java.lang.String arg)
Sets the user value of the property prefix . |
boolean |
toggleGroupingUsed()
Toggles the (computed) value of the boolean property groupingUsed . |
Methods inherited from class qx.util.format.Format |
---|
format |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberFormat()
public NumberFormat(java.lang.String locale)
Method Detail |
---|
public java.lang.String format(int num)
Formats a number.
public boolean getGroupingUsed()
Returns the (computed) value of the property groupingUsed
.
For further details take a look at the property definition: groupingUsed
.
public int getMaximumFractionDigits()
Returns the (computed) value of the property maximumFractionDigits
.
For further details take a look at the property definition: maximumFractionDigits
.
public int getMaximumIntegerDigits()
Returns the (computed) value of the property maximumIntegerDigits
.
For further details take a look at the property definition: maximumIntegerDigits
.
public int getMinimumFractionDigits()
Returns the (computed) value of the property minimumFractionDigits
.
For further details take a look at the property definition: minimumFractionDigits
.
public int getMinimumIntegerDigits()
Returns the (computed) value of the property minimumIntegerDigits
.
For further details take a look at the property definition: minimumIntegerDigits
.
public java.lang.String getPostfix()
Returns the (computed) value of the property postfix
.
For further details take a look at the property definition: postfix
.
public java.lang.String getPrefix()
Returns the (computed) value of the property prefix
.
For further details take a look at the property definition: prefix
.
public void initGroupingUsed(boolean arg)
Calls the apply method and dispatches the change event of the property groupingUsed
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: groupingUsed
.
public void initMaximumFractionDigits(int arg)
Calls the apply method and dispatches the change event of the property maximumFractionDigits
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: maximumFractionDigits
.
public void initMaximumIntegerDigits(int arg)
Calls the apply method and dispatches the change event of the property maximumIntegerDigits
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: maximumIntegerDigits
.
public void initMinimumFractionDigits(int arg)
Calls the apply method and dispatches the change event of the property minimumFractionDigits
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: minimumFractionDigits
.
public void initMinimumIntegerDigits(int arg)
Calls the apply method and dispatches the change event of the property minimumIntegerDigits
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: minimumIntegerDigits
.
public void initPostfix(java.lang.String arg)
Calls the apply method and dispatches the change event of the property postfix
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: postfix
.
public void initPrefix(java.lang.String arg)
Calls the apply method and dispatches the change event of the property prefix
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: prefix
.
public boolean isGroupingUsed()
Check whether the (computed) value of the boolean property groupingUsed
equals true
.
For further details take a look at the property definition: groupingUsed
.
public java.lang.Double parse(java.lang.String str)
Parses a number.
parse
in class Format
public void resetGroupingUsed()
Resets the user value of the property groupingUsed
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: groupingUsed
.
public void resetMaximumFractionDigits()
Resets the user value of the property maximumFractionDigits
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: maximumFractionDigits
.
public void resetMaximumIntegerDigits()
Resets the user value of the property maximumIntegerDigits
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: maximumIntegerDigits
.
public void resetMinimumFractionDigits()
Resets the user value of the property minimumFractionDigits
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: minimumFractionDigits
.
public void resetMinimumIntegerDigits()
Resets the user value of the property minimumIntegerDigits
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: minimumIntegerDigits
.
public void resetPostfix()
Resets the user value of the property postfix
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: postfix
.
public void resetPrefix()
Resets the user value of the property prefix
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: prefix
.
public void setGroupingUsed(boolean arg)
Sets the user value of the property groupingUsed
.
For further details take a look at the property definition: groupingUsed
.
public void setMaximumFractionDigits(int arg)
Sets the user value of the property maximumFractionDigits
.
For further details take a look at the property definition: maximumFractionDigits
.
public void setMaximumIntegerDigits(int arg)
Sets the user value of the property maximumIntegerDigits
.
For further details take a look at the property definition: maximumIntegerDigits
.
public void setMinimumFractionDigits(int arg)
Sets the user value of the property minimumFractionDigits
.
For further details take a look at the property definition: minimumFractionDigits
.
public void setMinimumIntegerDigits(int arg)
Sets the user value of the property minimumIntegerDigits
.
For further details take a look at the property definition: minimumIntegerDigits
.
public void setPostfix(java.lang.String arg)
Sets the user value of the property postfix
.
For further details take a look at the property definition: postfix
.
public void setPrefix(java.lang.String arg)
Sets the user value of the property prefix
.
For further details take a look at the property definition: prefix
.
public boolean toggleGroupingUsed()
Toggles the (computed) value of the boolean property groupingUsed
.
For further details take a look at the property definition: groupingUsed
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |