Examples of ordinal()


Examples of org.springframework.springfaces.traveladvisor.domain.Rating.ordinal()

  @Value("#{review}")
  private ReviewDetails review;

  public Double getValue() {
    Rating rating = review.getRating();
    return (rating == null ? null : (double) rating.ordinal());
  }

  public void setValue(Double value) {
    Rating rating = value == null ? null : Rating.values()[value.intValue()];
    review.setRating(rating);
View Full Code Here

Examples of org.testng.eclipse.util.PreferenceStoreUtil.SuiteMethodTreatment.ordinal()

      m_suiteMethodCombo = new Combo(group2, SWT.READ_ONLY);
      m_suiteMethodCombo.add("Remove");
      m_suiteMethodCombo.add("Comment out");
      m_suiteMethodCombo.add("Don't touch");
      SuiteMethodTreatment lastValue = TestNGPlugin.getPluginPreferenceStore().getSuiteMethodTreatement();
      m_suiteMethodCombo.select(lastValue.ordinal());
      m_suiteMethodCombo.addSelectionListener(new SelectionListener() {

        public void widgetSelected(SelectionEvent e) {
          TestNGPlugin.getPluginPreferenceStore().storeSuiteMethodTreatement(
              m_suiteMethodCombo.getSelectionIndex());
View Full Code Here

Examples of org.voltdb.types.AntiCacheDBType.ordinal()

        if (debug.val) {
            LOG.debug("Initializing anti-cache feature at partition " + this.executor.getPartitionId());
            LOG.debug("****************");
            LOG.debug(String.format("Partition #%d AntiCache Directory: %s",
                      this.executor.getPartitionId(), dbDir.getAbsolutePath()));
            LOG.debug(String.format("AntiCacheDBType: %d", dbtype.ordinal()));
        }
     
        final int errorCode = nativeAntiCacheInitialize(this.pointer, dbDir.getAbsolutePath(), blockSize, dbtype.ordinal());
        checkErrorCode(errorCode);
        m_anticache = true;
View Full Code Here

Examples of pl.edu.pw.elka.mmarkiew.controller.queueevents.ViewKeyPress.Keys.ordinal()

        case TIMER_1:
        case TIMER_2:
        case TIMER_3:  if (pressed)
                {
                  // depends on the number of timer enum, sets appropriate number of seconds
                  player.setBombTimer( (code.ordinal() - Keys.TIMER_1.ordinal() + 1) * 1000 );
                }
                break;
        case PAUSE:  if (pressed)
              {
                model.switchPause();
View Full Code Here

Examples of promauto.jroboplc.ModuleStatus.ordinal()

      if (status!=ModuleStatus.OK)
        tagErrorCounter.set(tagErrorCounter.getInteger() + 1);
    }
   
    tagErrorCode.set(status.ordinal());
   
    return status;
  }

 
View Full Code Here

Examples of tripleplay.ui.Button.ordinal()

        Button beh = new Button(Behavior.BOTH.name()).onClick(new Slot<Button>() {
            @Override public void onEmit (Button source) {
                Behavior[] behs = Behavior.values();
                Behavior beh = Behavior.valueOf(source.text.get());
                beh = behs[(beh.ordinal() + 1) % behs.length];
                scroll.setBehavior(beh);
                source.text.update(beh.name());
                xpos.setVisible(beh.hasHorizontal());
                ypos.setVisible(beh.hasVertical());
                updateSize.onEmit();
View Full Code Here

Examples of tripleplay.ui.Scroller.Behavior.ordinal()

        Button beh = new Button(Behavior.BOTH.name()).onClick(new Slot<Button>() {
            @Override public void onEmit (Button source) {
                Behavior[] behs = Behavior.values();
                Behavior beh = Behavior.valueOf(source.text.get());
                beh = behs[(beh.ordinal() + 1) % behs.length];
                scroll.setBehavior(beh);
                source.text.update(beh.name());
                xpos.setVisible(beh.hasHorizontal());
                ypos.setVisible(beh.hasVertical());
                updateSize.onEmit();
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.