Examples of InputField


Examples of org.encog.util.normalize.input.InputField

  public final static TempDir TEMP_DIR = new TempDir();
  public final static File FILENAME = TEMP_DIR.createFile("norm.csv");

  private void generate()
  {
    InputField a;
    InputField b;
    InputField c;
    InputField d;
    InputField e;
   
    DataNormalization norm = new DataNormalization();
    norm.setReport(new NullStatusReportable());
    norm.setTarget(new NormalizationStorageCSV(FILENAME));
    norm.addInputField(a = new InputFieldArray2D(false,ARRAY_2D,0));
View Full Code Here

Examples of org.encog.util.normalize.input.InputField

    norm.setTarget(new NormalizationStorageCSV(FILENAME));
    norm.process();
  }
 
  public DataNormalization create(double[][] outputArray) {
    InputField a;
    InputField b;
    InputField c;
    InputField d;
    InputField e;
   
    DataNormalization norm = new DataNormalization();
    norm.setReport(new NullStatusReportable());
    norm.setTarget(new NormalizationStorageCSV(FILENAME));
    norm.addInputField(a = new InputFieldCSV(false,FILENAME,0));
View Full Code Here

Examples of org.encog.util.normalize.input.InputField

    norm.process();
    check(norm);
  }
 
  private void check(DataNormalization norm) {
    InputField a = norm.getInputFields().get(0);
    InputField b = norm.getInputFields().get(1);
   
    Assert.assertEquals(1.0,a.getMin(),0.1);
    Assert.assertEquals(6.0,a.getMax(),0.1);
    Assert.assertEquals(2.0,b.getMin(),0.1);
    Assert.assertEquals(7.0,b.getMax(),0.1);
   
    double[][] outputArray = ((NormalizationStorageArray2D)norm.getStorage()).getArray();
    for(int i=0;i<5;i++)
    {
      Assert.assertEquals(0.1,outputArray[0][i],0.1);
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

        addInputField(selector.asInputFieldForChangeDetection());
        return selector;
    }

    private void doLayout() {
        InputField tfLayout = transformationSelector.asInputFieldForLayout();
        InputField[] fields = { sourceAndTargetSelector.getSourceFieldForLayout(), tfLayout,
                        sourceAndTargetSelector.getTargetFieldForLayout() };
        InputFieldLayoutUtils.layoutOneColumn(this, fields, true, false);
    }
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

     * Lays out this selection control in a <code>TwoColumnLayout</code>, with the label to the left
     * and the selection widget to the right.
     *
     */
    public void layoutIn(TwoColumnLayout grid) {
        InputField f = asInputFieldForLayout();
        f.layoutIn(grid);
    }
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

    public InputField getSourceField() {
        return sourceSelector.asInputFieldForChangeDetection();
    }

    public InputField getSourceFieldForLayout() {
        InputField field = sourceSelector.asInputFieldForLayout();
        RendererUtils.decorateRenderer(field.getLabel(), EntityType.Source);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

    public InputField getTargetField() {
        return targetSelector.asInputFieldForChangeDetection();
    }

    public InputField getTargetFieldForLayout() {
        InputField field = targetSelector.asInputFieldForLayout();
        RendererUtils.decorateRenderer(field.getLabel(), EntityType.Target);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

    private InputField getDateTimeDisplayerAsInputField() {
        String name = getString("Label.CurrentTimeInSelectedTimeZone");
        TextStyle style = TextStyles.InputLabelText;
        JLabel lbl = style.makeLabel(name);
        dateTimeDisplayer.setAppearance(style.asLabelDecorator(null));
        return new InputField(name, BorderLayoutBuilder.fillWith(dateTimeDisplayer), lbl) {

            @Override
            public void makeReadOnly() {
                dateTimeDisplayer.setEditable(false);
            }
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

    private class TargetLayout extends Layout {

        @Override
        protected void addAdditionalTopControls(DataLocationPanelLayout top) {
            InputField filter = fileLocationPanel.getFileFilterFieldAsInputFieldForLayout();
            top.add(filter.getLabel(), filter.getInputComponent(), getInputFieldCapsule(renameOption));
        }
View Full Code Here

Examples of org.jitterbit.ui.input.InputField

    /**
     * Adds the controls for login to a <code>DataLocationPanelLayout</code>.
     *
     */
    public void layoutLoginControl(DataLocationPanelLayout layout) {
        InputField field = loginField.asInputFieldForLayout();
        layout.add(field.getLabel(), field.getInputComponent(), passwordButton);
    }
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.