* @param variables
*/
public void changeVariables(Object source, Map variables) {
- super.changeVariables(source, variables);
+ super.changeVariables(source, variables);
if (isReadOnly()) {
System.err.println("Button: ignoring variable change for"
+ " read-only component, caption=" + getCaption());
}
}
+ /**
+ * Get the boolean value of the button state.
+ *
+ * @return True iff the button is pressed down or checked.
+ */
+ boolean booleanValue() {
+ return ((Boolean) getValue()).booleanValue();
+ }
+
/**
* Sets immediate mode. Push buttons can not be set in non-immediate mode.
*