コード例 #1
0
  /**
   * @param path
   * @return
   */
  private boolean handleListDataMapping(Path path) {
    ListInputController listInputController = new ListInputController(path);
    formGenerator.addListComponent(getRootContainer(), path);

    getFullPathInputControllerMap().put("/" + path.getId(), listInputController);
    getTopLevelInputControllerMap().put(path.getId(), listInputController);

    return true;
  }
コード例 #2
0
  /**
   * @param path
   * @return
   */
  private boolean handleEnumerationPath(Path path) {
    PrimitiveInputController inputController =
        new PrimitiveInputController(path, new PrimitiveInputControllerDataTypeAdapter(path));
    FormInput input = formGenerator.addEnumerationInput(getRootContainer(), inputController);
    getRootContainer().getInputs().add(input);

    getFullPathInputControllerMap().put("/" + path.getId(), inputController);
    getTopLevelInputControllerMap().put(path.getId(), inputController);

    return true;
  }
コード例 #3
0
 /**
  * @param path
  * @return
  */
 private boolean handleStructureDataMapping(Path path) {
   getTopLevelInputControllerMap()
       .put(
           path.getId(),
           formGenerator.generateStructurePanel(
               getFullPathInputControllerMap(), getRootContainer(), path));
   return true;
 }