Exemple #1
0
 public String getControlName(Component component) {
   String str = "";
   if (component instanceof JComponent) {
     JComponent c = (JComponent) component;
     String subAppName = (String) c.getClientProperty("XPStyle.subAppName");
     if (subAppName != null) {
       str = subAppName + "::";
     }
   }
   return str + control.toString();
 }
Exemple #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;
   }
 }
Exemple #3
0
 public String toString() {
   return control.toString() + "." + name();
 }