qx.util.format
Class NumberFormat

java.lang.Object
  extended by qx.core.Object
      extended by qx.util.format.Format
          extended by qx.util.format.NumberFormat

public class NumberFormat
extends Format

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

NumberFormat

public NumberFormat()

NumberFormat

public NumberFormat(java.lang.String locale)
Method Detail

format

public java.lang.String format(int num)

Formats a number.


getGroupingUsed

public boolean getGroupingUsed()

Returns the (computed) value of the property groupingUsed.

For further details take a look at the property definition: groupingUsed.


getMaximumFractionDigits

public int getMaximumFractionDigits()

Returns the (computed) value of the property maximumFractionDigits.

For further details take a look at the property definition: maximumFractionDigits.


getMaximumIntegerDigits

public int getMaximumIntegerDigits()

Returns the (computed) value of the property maximumIntegerDigits.

For further details take a look at the property definition: maximumIntegerDigits.


getMinimumFractionDigits

public int getMinimumFractionDigits()

Returns the (computed) value of the property minimumFractionDigits.

For further details take a look at the property definition: minimumFractionDigits.


getMinimumIntegerDigits

public int getMinimumIntegerDigits()

Returns the (computed) value of the property minimumIntegerDigits.

For further details take a look at the property definition: minimumIntegerDigits.


getPostfix

public java.lang.String getPostfix()

Returns the (computed) value of the property postfix.

For further details take a look at the property definition: postfix.


getPrefix

public java.lang.String getPrefix()

Returns the (computed) value of the property prefix.

For further details take a look at the property definition: prefix.


initGroupingUsed

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.


initMaximumFractionDigits

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.


initMaximumIntegerDigits

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.


initMinimumFractionDigits

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.


initMinimumIntegerDigits

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.


initPostfix

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.


initPrefix

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.


isGroupingUsed

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.


parse

public java.lang.Double parse(java.lang.String str)

Parses a number.

Overrides:
parse in class Format

resetGroupingUsed

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.


resetMaximumFractionDigits

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.


resetMaximumIntegerDigits

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.


resetMinimumFractionDigits

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.


resetMinimumIntegerDigits

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.


resetPostfix

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.


resetPrefix

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.


setGroupingUsed

public void setGroupingUsed(boolean arg)

Sets the user value of the property groupingUsed.

For further details take a look at the property definition: groupingUsed.


setMaximumFractionDigits

public void setMaximumFractionDigits(int arg)

Sets the user value of the property maximumFractionDigits.

For further details take a look at the property definition: maximumFractionDigits.


setMaximumIntegerDigits

public void setMaximumIntegerDigits(int arg)

Sets the user value of the property maximumIntegerDigits.

For further details take a look at the property definition: maximumIntegerDigits.


setMinimumFractionDigits

public void setMinimumFractionDigits(int arg)

Sets the user value of the property minimumFractionDigits.

For further details take a look at the property definition: minimumFractionDigits.


setMinimumIntegerDigits

public void setMinimumIntegerDigits(int arg)

Sets the user value of the property minimumIntegerDigits.

For further details take a look at the property definition: minimumIntegerDigits.


setPostfix

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.


setPrefix

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.


toggleGroupingUsed

public boolean toggleGroupingUsed()

Toggles the (computed) value of the boolean property groupingUsed.

For further details take a look at the property definition: groupingUsed.



Copyright © 2008 1&1. All Rights Reserved.