示例#1
0
 /** Setting names that are used in YController and YModel. */
 private void setMVCNames() {
   // FarmMode has a collection named "farms"
   treeFarms.getYProperty().put(YIComponent.MVC_NAME, "farms");
 }
示例#2
0
 /** Setting initial state of components. */
 private void initComponents() {
   treeFarms.setFormatter(TREE_FORMATTER);
   // unsaved changes are checked when user clicks something in the tree:
   treeFarms.getYProperty().put(YIComponent.CHECK_CHANGES, new Boolean(true));
 }