コード例 #1
0
 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
ファイル: JavaMixer.java プロジェクト: Alexander198961/Spark
 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;
   }
 }