/* (non-Javadoc) * @see org.kalmeo.kuix.widget.Widget#setAttribute(java.lang.String, java.lang.String) */ public boolean setAttribute(String name, String value) { if (KuixConstants.ON_ACTION_ATTRIBUTE.equals(name)) { setOnAction(value); return true; } else if (KuixConstants.PRESSED_ATTRIBUTE.equals(name)) { setPressed(BooleanUtil.parseBoolean(value)); return true; } return super.setAttribute(name, value); }
/* (non-Javadoc) * @see org.kalmeo.kuix.widget.Widget#getAttribute(java.lang.String) */ public Object getAttribute(String name) { if (KuixConstants.PRESSED_ATTRIBUTE.equals(name)) { return BooleanUtil.toString(isPressed()); } return super.getAttribute(name); }