Exemplo n.º 1
0
  private Integer buildIntegerForm(String title, String prompt) {
    UIFormBuilder form = new UIFormBuilder();
    form.add(title, _numberTest);

    UIForm _getForm = form.toUIForm(prompt);
    String[] result1 = _ui.processForm(_getForm);
    Integer newValue = Integer.parseInt(result1[0]);

    return newValue;
  }
Exemplo n.º 2
0
  private Double buildDoubleForm(String title, String prompt) {
    UIFormBuilder form = new UIFormBuilder();
    form.add(title, _numberTest);

    UIForm _getForm = form.toUIForm(prompt);
    String[] result1 = _ui.processForm(_getForm);
    Double newValue = Double.parseDouble(result1[0]);

    return newValue;
  }