Logo Search packages:      
Sourcecode: mojarra version File versions  Download package

void javax::faces::convert::NumberConverter::restoreState ( FacesContext  context,
Object  state 
) [inline]

Perform any processing required to restore the state from the entries in the state Object.

If the class that implements this interface has references to instances that also implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the restoreState method on all those instances as well.

NullPointerException if either context or state are null

Implements javax::faces::component::StateHolder.

Definition at line 934 of file NumberConverter.java.


        if (context == null) {
            throw new NullPointerException();
        if (state != null) {
            Object values[] = (Object[]) state;
            currencyCode = (String) values[0];
            currencySymbol = (String) values[1];
            groupingUsed = (Boolean) values[2];
            integerOnly = (Boolean) values[3];
            maxFractionDigits = (Integer) values[4];
            maxIntegerDigits = (Integer) values[5];
            minFractionDigits = (Integer) values[6];
            minIntegerDigits = (Integer) values[7];
            locale = (Locale) values[8];
            pattern = (String) values[9];
            type = (String) values[10];


Generated by  Doxygen 1.6.0   Back to index