Examples of restoreState()


Examples of org.hdiv.state.scope.StateScope.restoreState()

    // Obtain Scopes
    StateScope stateScope = this.stateScopeManager.getStateScope(requestState);

    if (stateScope != null) {
      restoredState = stateScope.restoreState(stateId);
    } else {

      restoredState = this.getStateFromSession(pageId, stateId);
    }
View Full Code Here

Examples of org.jboss.jbossts.xts.recovery.participant.at.ATParticipantRecoveryRecord.restoreState()

                        String participantRecordClazzName = inputState.unpackString();
                        try {
                            // create a participant engine instance and tell it to recover itself
                            Class participantRecordClazz = Class.forName(participantRecordClazzName);
                            ATParticipantRecoveryRecord participantRecord = (ATParticipantRecoveryRecord)participantRecordClazz.newInstance();
                            participantRecord.restoreState(inputState);
                            // ok, now insert into recovery map if needed
                            XTSATRecoveryManager.getRecoveryManager().addParticipantRecoveryRecord(recoverUid, participantRecord);
                        } catch (ClassNotFoundException cnfe) {
                            // oh boy, not supposed to happen -- n.b. either the user deployed 1.0
                            // last time and 1.1 this time or vice versa or something is rotten in
View Full Code Here

Examples of org.openbp.guiclient.model.item.itemtree.ItemSelectionDialog.restoreState()

          state.addExpandedQualifier(model.getQualifier());

          // Build the tree, expanding the first level and the currently selected item
          dlg.rebuildTree();
          dlg.expand(1);
          dlg.restoreState(state);

          // Show the dialog
          dlg.setVisible(true);

          List selection = dlg.getSelectedObjects();
View Full Code Here

Examples of org.richfaces.webapp.taglib.ValueBindingValueExpressionAdaptor.restoreState()

  }

  private ValueBindingValueExpressionAdaptor saveRestoreState(
      ValueBindingValueExpressionAdaptor adaptor) {
    ValueBindingValueExpressionAdaptor restoredAdaptor = new ValueBindingValueExpressionAdaptor();
    restoredAdaptor.restoreState(facesContext, adaptor
        .saveState(facesContext));
    return restoredAdaptor;
  }

  private ValueBindingValueExpressionAdaptor serializeDeserialize(
View Full Code Here

Examples of org.springframework.richclient.settings.support.Memento.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 sun.java2d.pipe.BufferedContext.restoreState()

        RenderQueue rq = c.getRenderQueue();
        rq.lock();
        try {
            c.saveState();
            rq.flushNow();
            c.restoreState();
            rq.flushNow();
            System.out.println("Passed: Save/Restore");
        } finally {
            rq.unlock();
        }
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.