Examples of restoreState()


Examples of javax.faces.component.behavior.AjaxBehavior.restoreState()

            // Re-create the instance via the Application
            AjaxBehavior behavior = (AjaxBehavior)application.createBehavior(
                                                    AjaxBehavior.BEHAVIOR_ID);

            // And re-initialize its state
            behavior.restoreState(context, behaviorState);

            return behavior;
        }

        private BehaviorInfo() {
View Full Code Here

Examples of match.handler.MatchHandler.restoreState()

            SoccerMatchModel soccerMatch = SoccerMatchBuilder.build();
            MemoryEventStore memoryEventStore = new MemoryEventStore();
            MatchHandler matchHandler = new MatchHandler(soccerMatch.getMatch(), memoryEventStore);

            //Restore MatchA
            matchHandler.restoreState(resultA);
            MatchState state = matchHandler.getMatch().getState();
            assertThat("MatchA should be correctly restored.", state, equalTo(MatchState.ended));

            // Check if assigned cards are restored
            boolean frankHasCard = false, frankHasRedCard = false, pietHasCard = false, henkHasCard = false;
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.SQLConnectionState.restoreState()

      {
         cmd.execute();
         _conn = cmd.getSQLConnection();
         if (connState != null)
         {
            connState.restoreState(_conn, _msgHandler);
            getProperties().setAutoCommit(connState.getAutoCommit());
         }
         final String msg = s_stringMgr.getString("Session.reconn", _alias.getName());
         _msgHandler.showMessage(msg);
         _app.getSessionManager().fireReconnected(this);
View Full Code Here

Examples of org.apache.lucene.analysis.TokenStream.restoreState()

    }

    if (list.size() == 0)
      return null;
    else if (list.size() == 1) {
      source.restoreState(list.get(0));
      return new TermQuery(new Term(field, termAtt.term()));
    } else {
      if (severalTokensAtSamePosition) {
        if (positionCount == 1) {
          // no phrase query:
View Full Code Here

Examples of org.apache.lucene.analysis.TokenStream.restoreState()

      if (severalTokensAtSamePosition) {
        if (positionCount == 1) {
          // no phrase query:
          BooleanQuery q = new BooleanQuery();
          for (int i = 0; i < list.size(); i++) {
            source.restoreState(list.get(i));
            TermQuery currentQuery = new TermQuery(
                new Term(field, termAtt.term()));
            q.add(currentQuery, BooleanClause.Occur.SHOULD);
          }
          return q;
View Full Code Here

Examples of org.apache.lucene.analysis.TokenStream.restoreState()

        else {
          // phrase query:
          MultiPhraseQuery mpq = new MultiPhraseQuery();
          List<Term> multiTerms = new ArrayList<Term>();
          for (int i = 0; i < list.size(); i++) {
            source.restoreState(list.get(i));
            if (posincrAtt.getPositionIncrement() == 1 && multiTerms.size() > 0) {
              mpq.add(multiTerms.toArray(new Term[0]));
              multiTerms.clear();
            }
            multiTerms.add(new Term(field, termAtt.term()));
View Full Code Here

Examples of org.apache.lucene.analysis.TokenStream.restoreState()

      }
      else {
        PhraseQuery q = new PhraseQuery();
        q.setSlop(phraseSlop);
        for (int i = 0; i < list.size(); i++) {
          source.restoreState(list.get(i));
          q.add(new Term(field, termAtt.term()));
        }
        return q;
      }
    }
View Full Code Here

Examples of org.eclipse.debug.internal.ui.views.AbstractViewerState.restoreState()

                    .get(frame);
            if (state == null) {
                state = fLastState;
            }
            if (state != null) {
                state.restoreState(getVariablesViewer());
            }
        }
    }

    protected DroolsVariablesViewer getVariablesViewer() {
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation.restoreState()

            presentation = factory.createViewPresentation(parent, site);
        }

        //don't initialize editors at creation time - it will not contain any parts
        if (role != ROLE_EDITOR && memento != null && serializer != null) {
            presentation.restoreState(serializer, memento);
        }

        return presentation;
    }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1.restoreState()

         sha1Gudy.update( buffer );
         sha1Gudy.saveState();
         ByteBuffer bb = ByteBuffer.wrap( new byte[56081] );
         sha1Gudy.digest( bb );
         sha1Gudy.restoreState();
        
         sha1Sun.update( raw );
        
         buffer.clear();
        }
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.