Examples of DoubleField


Examples of com.base2art.jeqll.projections.DoubleField

  @Test
  public void shouldGetMinAndMax()
  {
    IQuery<WeatherObservation> query = new IterableQuery<>(SampleDataRepository.weatherObservations(), WeatherObservation.class);
    assertThat(query.max(new DoubleField("temp"))).isEqualTo(100.6);
    assertThat(query.min(new DoubleField("temp"))).isEqualTo(43.6);
  }
View Full Code Here

Examples of com.jengine.orm.model.field.numeric.DoubleField

        } else if (entityClass.equals(Long.class) || entityClass.equals(long.class) ) {
            field = new LongField();
        } else if (entityClass.equals(Float.class) || entityClass.equals(float.class)) {
            field = new FloatField();
        } else if (entityClass.equals(Double.class) || entityClass.equals(double.class)) {
            field = new DoubleField();
        } else if (entityClass.equals(Date.class)) {
//            field = new DateTimeField();
            field = new DateTimeField(Timestamp.class, CollectionUtil.map());
        } else if (entityClass.equals(Boolean.class) || entityClass.equals(boolean.class)) {
            field = new BooleanField();
View Full Code Here

Examples of fr.soleil.salsa.client.view.component.DoubleField

     *
     * @return
     */
    public TextField getIntegrationTimeField() {
        if (integrationTimeField == null) {
            integrationTimeField = new DoubleField(1d, false, null);
            integrationTimeField.setPreferredSize(new Dimension(100, 20));
            integrationTimeField.addKeyListener(new KeyListener() {

                public void keyPressed(KeyEvent e) {

View Full Code Here

Examples of javango.forms.fields.DoubleField

import javango.forms.tests.InjectedTestCaseBase;

public class DoubleFieldTest extends InjectedTestCaseBase {

  public void testRequired() throws Exception {
    DoubleField field = injector.getInstance(DoubleField.class);
    field.setName("fieldName");

    Map<String, String> errors = new HashMap<String, String>();
   
    Double value = field.clean(new String[]{""}, errors);
    assertFalse(errors.isEmpty());
    assertTrue(errors.containsKey(field.getName()));
    assertEquals(AbstractField.REQUIRED_ERROR, errors.get(field.getName()));
  }
View Full Code Here

Examples of nu.lazy8.util.help.DoubleField

    JLabelTotal.add(hl, BorderLayout.NORTH);
    jPanel10.add(JLabelTotal);

    JPanel JPanelDebit = new JPanel();
    JPanelDebit.setLayout(new BorderLayout());
    debitTotal = new DoubleField("DebitTotal", "transaction", view);
    Dimension ddm = debitTotal.getPreferredSize();
    ddm2.width = accountTotalSize;
    ddm.width = accountTotalSize;
    JPanelDebit.setPreferredSize(ddm2);
    JPanelDebit.setMaximumSize(ddm2);
    debitTotal.setPreferredSize(ddm);
    debitTotal.setMaximumSize(ddm);
    debitTotal.setMinimumSize(ddm);
    JPanelDebit.add(debitTotal, BorderLayout.NORTH);
    jPanel10.add(JPanelDebit);
    JPanel JPanelCredit = new JPanel();
    JPanelCredit.setLayout(new BorderLayout());
    creditTotal = new DoubleField("CreditTotal", "transaction", view);
    creditTotal.setPreferredSize(ddm);
    JPanelCredit.setPreferredSize(ddm2);
    JPanelCredit.setMaximumSize(ddm2);
    creditTotal.setMaximumSize(ddm);
    creditTotal.setMinimumSize(ddm);
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.DoubleField

   */
  @Override
  public void executeAlgorithm(List<ValidObservation> obs)
      throws AlgorithmError, CancellationException {

    DoubleField minPeriodField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_MINIMUM_PERIOD"), 0.0, null, currMinPeriod);

    DoubleField maxPeriodField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_MAXIMUM_PERIOD"), 0.0, null, currMaxPeriod);

    DoubleField deltaPeriodField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_PERIOD_STEP"), null, null, currDeltaPeriod);

    List<ITextComponent<?>> fields = createNumberFields(minPeriodField,
        maxPeriodField, deltaPeriodField);

    MultiEntryComponentDialog paramDialog = new MultiEntryComponentDialog(
        LocaleProps.get("WWZ_PARAMETERS_DLG_TITLE"), fields);

    if (!paramDialog.isCancelled()) {
      double minPeriod, maxPeriod, deltaPeriod, decay, timeDivisions;

      currMinPeriod = minPeriod = minPeriodField.getValue();
      currMaxPeriod = maxPeriod = maxPeriodField.getValue();
      currDeltaPeriod = deltaPeriod = deltaPeriodField.getValue();
      currDecay = decay = decayField.getValue();
      currTimeDivisions = timeDivisions = timeDivisionsField.getValue();

      // TODO: ask about number of periods > 1000 via dialog?

View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.DoubleField

    for (DoubleField field : moreFields) {
      fields.add(field);
    }

    decayField = new DoubleField(LocaleProps.get("WWZ_PARAMETERS_DECAY"),
        null, null, currDecay);
    fields.add(decayField);

    timeDivisionsField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_TIME_DIVISIONS"), null, null,
        currTimeDivisions);
    fields.add(timeDivisionsField);

    return fields;
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.DoubleField

  }

  private MultiEntryComponentDialog createParamDialog() {
    List<ITextComponent<?>> fields = new ArrayList<ITextComponent<?>>();

    loFreqField = new DoubleField(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_LOW_FREQUENCY_TITLE"), 0.0, null, currLoFreq);
    fields.add(loFreqField);

    hiFreqField = new DoubleField(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_HIGH_FREQUENCY_TITLE"), 0.0, null, currHiFreq);
    fields.add(hiFreqField);

    resolutionField = new DoubleField(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_RESOLUTION_TITLE"), 0.0, null, currResolution);
    fields.add(resolutionField);

    return new MultiEntryComponentDialog(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_DLG_TITLE"), fields);
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.DoubleField

   */
  @Override
  public void executeAlgorithm(List<ValidObservation> obs)
      throws AlgorithmError, CancellationException {

    DoubleField minFreqField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_MINIMUM_FREQUENCY"), 0.0, null,
        currMinFreq);

    DoubleField maxFreqField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_MAXIMUM_FREQUENCY"), 0.0, null,
        currMaxFreq);

    DoubleField deltaFreqField = new DoubleField(LocaleProps
        .get("WWZ_PARAMETERS_FREQUENCY_STEP"), null, null,
        currDeltaFreq);

    List<ITextComponent<?>> fields = createNumberFields(minFreqField,
        maxFreqField, deltaFreqField);

    MultiEntryComponentDialog paramDialog = new MultiEntryComponentDialog(
        LocaleProps.get("WWZ_PARAMETERS_DLG_TITLE"), fields);

    if (!paramDialog.isCancelled()) {
      double minFreq, maxFreq, deltaFreq, decay, timeDivisions;

      currMinFreq = minFreq = minFreqField.getValue();
      currMaxFreq = maxFreq = maxFreqField.getValue();
      currDeltaFreq = deltaFreq = deltaFreqField.getValue();
      currDecay = decay = decayField.getValue();
      currTimeDivisions = timeDivisions = timeDivisionsField.getValue();

      // TODO: ask about number of frequencies > 1000 via dialog?

View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.DoubleField

  }

  private MultiEntryComponentDialog createParamDialog() {
    List<ITextComponent<?>> fields = new ArrayList<ITextComponent<?>>();

    loPeriodField = new DoubleField(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_LOW_PERIOD_TITLE"), 0.0, null, currLoPeriod);
    fields.add(loPeriodField);

    hiPeriodField = new DoubleField(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_HIGH_PERIOD_TITLE"), 0.0, null, currHiPeriod);
    fields.add(hiPeriodField);

    resolutionField = new DoubleField(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_RESOLUTION_TITLE"), 0.0, null, currResolution);
    fields.add(resolutionField);

    return new MultiEntryComponentDialog(LocaleProps
        .get("PERIOD_ANALYSIS_PARAMETERS_DLG_TITLE"), fields);
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.