Examples of restoreState()


Examples of com.sun.faces.util.ComponentStruct.restoreState()

                if (restoredAddList != null && restoredAddList.length > 0) {
                    // Restore the list of added components
                    List<ComponentStruct> addList = new ArrayList<ComponentStruct>(restoredAddList.length);
                    for (Object aRestoredAddList : restoredAddList) {
                        ComponentStruct cur = new ComponentStruct();
                        cur.restoreState(context, aRestoredAddList);
                        addList.add(cur);
                    }
                    // restore the components themselves
                    for (ComponentStruct cur : addList) {
                        final ComponentStruct finalCur = cur;
View Full Code Here

Examples of com.sun.faces.util.ComponentStruct.restoreState()

        List<ComponentStruct> actions = stateContext.getDynamicActions();

        if (savedActions != null && !savedActions.isEmpty()) {
            for (Object object : savedActions) {
                ComponentStruct action = new ComponentStruct();
                action.restoreState(context, object);
                if (ComponentStruct.ADD.equals(action.action)) {
                    restoreDynamicAdd(context, state, action);
                }
                if (ComponentStruct.REMOVE.equals(action.action)) {
                    restoreDynamicRemove(context, action);
View Full Code Here

Examples of com.sun.faces.util.ComponentStruct.restoreState()

        List<ComponentStruct> actions = stateContext.getDynamicActions();

        if (savedActions != null && !savedActions.isEmpty()) {
            for (Object object : savedActions) {
                ComponentStruct action = new ComponentStruct();
                action.restoreState(context, object);
                if (ComponentStruct.ADD.equals(action.action)) {
                    restoreDynamicAdd(context, stateMap, action);
                }
                if (ComponentStruct.REMOVE.equals(action.action)) {
                    restoreDynamicRemove(context, action);
View Full Code Here

Examples of com.sun.faces.util.ComponentStruct.restoreState()

        List<ComponentStruct> actions = stateContext.getDynamicActions();

        if (savedActions != null && !savedActions.isEmpty()) {
            for (Object object : savedActions) {
                ComponentStruct action = new ComponentStruct();
                action.restoreState(context, object);
                if (ComponentStruct.ADD.equals(action.action)) {
                    restoreDynamicAdd(context, state, action);
                }
                if (ComponentStruct.REMOVE.equals(action.action)) {
                    restoreDynamicRemove(context, action);
View Full Code Here

Examples of de.mindcrimeilab.xsanalyzer.util.JFileChooserMemento.restoreState()

    protected void doExecuteCommand() {
        JFileChooser jfc = new JFileChooser();
        jfc.setFileFilter(new XSAnalyzerDefaultFileFilter());

        Memento memento = new JFileChooserMemento(jfc);
        memento.restoreState(settings);

        int result = jfc.showOpenDialog(getParentWindowControl());
        if (JFileChooser.APPROVE_OPTION == result) {
            memento.saveState(settings);
            XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
View Full Code Here

Examples of gov.nasa.worldwind.view.orbit.BasicOrbitView.restoreState()

    public void restoreStateOrbitView(String str)
    {
       if (this._cnv != null)
       {
          BasicOrbitView view = (BasicOrbitView) this._cnv.getView();
          view.restoreState(str);
       }
    }
   
    public String getRestorableStateOrbitView()
    {
View Full Code Here

Examples of javax.faces.component.StateHolder.restoreState()

                    RESOURCE_LOGGER.debug(e.getMessage(), e);
                }
            }
        } else if (resource instanceof StateHolder) {
            StateHolder stateHolder = (StateHolder) resource;
            stateHolder.restoreState(context, state);
        }
    }

    public static Charset getCharsetFromContentType(String contentType) {
        String charsetName = null;
View Full Code Here

Examples of javax.faces.component.StateHolder.restoreState()

            {
                _AttachedStateWrapper wrapper = (_AttachedStateWrapper) stateObj;
                Object wrappedState = wrapper.getWrappedStateObject();

                StateHolder holder = (StateHolder) restoredObject;
                holder.restoreState(context, wrappedState);
            }
            return restoredObject;
        }
        else
        {
View Full Code Here

Examples of javax.faces.component.StateHolder.restoreState()

            {
                _AttachedStateWrapper wrapper = (_AttachedStateWrapper) stateObj;
                Object wrappedState = wrapper.getWrappedStateObject();

                StateHolder holder = (StateHolder) restoredObject;
                holder.restoreState(context, wrappedState);
            }
            return restoredObject;
        }
        else
        {
View Full Code Here

Examples of javax.faces.component.StateHolder.restoreState()

            {
                _AttachedStateWrapper wrapper = (_AttachedStateWrapper) stateObj;
                Object wrappedState = wrapper.getWrappedStateObject();

                StateHolder holder = (StateHolder) restoredObject;
                holder.restoreState(context, wrappedState);
            }
            return restoredObject;
        }
        else
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.