Exemplo n.º 1
0
  @Override
  public void buildView(IModelForm form) {
    // Build the input parameters section.
    FormSection inputSection = form.addSection("Input", false);
    inputSection.addEntityComboField(_inputGrid, Grid3d.class);

    inputSection.addListSelectionField(_filterMethodProp.getKey(), FilterMethod.values());

    FormSection parametersSection = form.addSection("Parameters", false);
    parametersSection.addTextField(_size);
    parametersSection.addTextBox(_kernelString);

    // Build the output parameters section.
    FormSection outputSection = form.addSection("Output", false);
    outputSection.addTextField(_outputGridName);
    outputSection.addTextBox(_outputComments);
  }
Exemplo n.º 2
0
  @Override
  public void buildView(final IModelForm form) {
    FormSection scatter = form.addSection("Scatter Chart");

    TextField scatterNumPoints = scatter.addTextField(SCATTER_NUM_POINTS);
    scatterNumPoints.setLabel("Number of Points");

    ComboField scatterPointStyle = scatter.addComboField(SCATTER_POINT_STYLE, PointStyle.values());
    scatterPointStyle.setLabel("Point Style");

    TextField scatterPointSize = scatter.addTextField(SCATTER_POINT_SIZE);
    scatterPointSize.setLabel("Point Size");

    FormSection histogram = form.addSection("Histogram Chart");

    TextField histoNumCells1 = histogram.addTextField(HISTOGRAM_NUM_CELLS);
    histoNumCells1.setLabel("Number of Cells");

    TextField histoMinValue = histogram.addTextField(HISTOGRAM_MIN_VALUE);
    histoMinValue.setLabel("Minimum Value");

    TextField histoMaxValue = histogram.addTextField(HISTOGRAM_MAX_VALUE);
    histoMaxValue.setLabel("Maximum Value");

    FormSection pie = form.addSection("Pie Chart");

    TextField pieNumWedges = pie.addTextField(PIE_NUM_WEDGES);
    pieNumWedges.setLabel("Number of Wedges");

    FormSection gridImage = form.addSection("Grid Image Chart");

    TextField gridImageNumRows = gridImage.addTextField(GRID_IMAGE_NUM_ROWS);
    gridImageNumRows.setLabel("Number of Rows");

    TextField gridImageNumCols = gridImage.addTextField(GRID_IMAGE_NUM_COLS);
    gridImageNumCols.setLabel("Number of Columns");
  }