private void logControls(Control[] controls) {
   for (int i = 0; i < controls.length; i++) {
     Control control = controls[i];
     logger.info("control: " + control);
     Type controlType = control.getType();
     if (controlType instanceof CompoundControl.Type) {
       logControls(((CompoundControl) control).getMemberControls());
     }
   }
 }
Пример #2
0
 public ControlNode(Control control) {
   super(control.getType(), true);
   this.control = control;
   if (control instanceof BooleanControl) {
     component = createControlComponent((BooleanControl) control);
   } else if (control instanceof EnumControl) {
     component = createControlComponent((EnumControl) control);
   } else if (control instanceof FloatControl) {
     component = createControlComponent((FloatControl) control);
   } else {
     component = null;
   }
 }