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(); }
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; } }
public String toString() { return control.toString() + "." + name(); }