コード例 #1
0
 protected Element extractFieldByName(List<Element> remaining, String name)
     throws FilterException {
   for (Element field : remaining) {
     String fullName = field.getDeclaringClass().getName() + "-" + field.getName();
     if (name.equals(fullName) || name.equals(field.getName())) {
       remaining.remove(field);
       return field;
     }
   }
   throw new FilterException(name + " not found in field list, please check your filters");
 }
コード例 #2
0
 /** Dispose this controller. The controller should clear all existing bindings. */
 public void dispose() {
   element.dispose();
   labelController.dispose();
   tooltipController.dispose();
   editorController.dispose();
   fxForm.skinProperty().removeListener(changeListener);
   ((FXFormSkin) fxForm.getSkin()).removeElement(element);
 }
コード例 #3
0
 public boolean handle(Element element) {
   return clazz.isAssignableFrom(element.getType());
 }