Examples of Reset


Examples of org.drools.games.wumpus.Reset

        JButton restartButton = new JButton( "RESTART" );
        restartButton.setToolTipText( "Restart game" );
        restartButton.setBackground( Color.LIGHT_GRAY );
        restartButton.addMouseListener( new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                Reset reset = new Reset();
                reset.setResetScore( true );
                gameView.getKsession().insert( reset );
                gameView.getKsession().getAgenda().getAgendaGroup("Reset").setFocus();
                gameView.getKsession().fireAllRules();
            }
        } );
View Full Code Here

Examples of org.drools.games.wumpus.Reset

        JButton restartButton = new JButton( "RESTART" );
        restartButton.setToolTipText( "Restart game" );
        restartButton.setBackground( Color.LIGHT_GRAY );
        restartButton.addMouseListener( new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                Reset reset = new Reset();
                reset.setResetScore( true );
                gameView.getKsession().insert( reset );
                gameView.getKsession().getAgenda().getAgendaGroup("Reset").setFocus();
                gameView.getKsession().fireAllRules();
            }
        } );
View Full Code Here

Examples of org.drools.games.wumpus.Reset

        JButton restartButton = new JButton( "RESTART" );
        restartButton.setToolTipText( "Restart game" );
        restartButton.setBackground( Color.LIGHT_GRAY );
        restartButton.addMouseListener( new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                Reset reset = new Reset();
                reset.setResetScore( true );
                gameView.getKsession().insert( reset );
                gameView.getKsession().fireAllRules();
            }
        } );
        actionPanel.add( restartButton );
View Full Code Here

Examples of org.glassfish.external.statistics.annotations.Reset

        /* retrieve ManagedAttribute attribute id (v2 compatible) and method names */
        /* Check for custom reset method and store for later to be called instead of
        standard reset methods on Statistic classes*/
        for (Method m : statsProvider.getClass().getMethods()) {
            ManagedAttribute ma = m.getAnnotation(ManagedAttribute.class);
            Reset resetMeth = m.getAnnotation(Reset.class);
            if (resetMeth != null) {
                StatsProviderRegistryElement spre = this.statsProviderRegistry.getStatsProviderRegistryElement(statsProvider);
                spre.setResetMethod(m);
            }
            if (ma != null) {
View Full Code Here

Examples of org.glassfish.external.statistics.annotations.Reset

        /* retrieve ManagedAttribute attribute id (v2 compatible) and method names */
        /* Check for custom reset method and store for later to be called instead of
        standard reset methods on Statistic classes*/
        for (Method m : statsProvider.getClass().getMethods()) {
            ManagedAttribute ma = m.getAnnotation(ManagedAttribute.class);
            Reset resetMeth = m.getAnnotation(Reset.class);
            if (resetMeth != null) {
                StatsProviderRegistryElement spre = this.statsProviderRegistry.getStatsProviderRegistryElement(statsProvider);
                spre.setResetMethod(m);
            }
            if (ma != null) {
View Full Code Here

Examples of org.glassfish.external.statistics.annotations.Reset

        /* retrieve ManagedAttribute attribute id (v2 compatible) and method names */
        /* Check for custom reset method and store for later to be called instead of
         standard reset methods on Statistic classes*/
        for (Method m : statsProvider.getClass().getMethods()) {
            ManagedAttribute ma = m.getAnnotation(ManagedAttribute.class);
            Reset resetMeth = m.getAnnotation(Reset.class);
            if (resetMeth != null) {
                StatsProviderRegistryElement spre = this.statsProviderRegistry.getStatsProviderRegistryElement(statsProvider);
                spre.setResetMethod(m);
            }
            if (ma != null) {
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.Reset

  /**
   * Adds a <code>Reset</code> <code>FormItem</code> to the current <code>FormLayoutContainer</code>.  
   * @param i18nKey
   */
  public void addReset(String i18nKey) {
    Reset reset = new FormReset("reset", i18nKey);
    this.flc.add(reset);
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.Reset

    entrySelector = uifactory.addCheckboxesVertical("entries",  null, boundTo, entries, entries, null, 1);
    // submitCancel after checkboxes
    //
    Submit subm = new FormSubmit("subm", "apply");
    Reset reset = new FormReset("reset", "cancel");
    boundTo.add(subm);
    boundTo.add(reset);
  }
View Full Code Here

Examples of org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.Instructions.Reset

  public CodeBlock LOADCONT(String fuid) {
    return add(new LoadCont(this, fuid));
  }
 
  public CodeBlock RESET() {
    return add(new Reset(this));
  }
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.