setAttr method
Sets the button attributes specified in myAttr
. Overrides
the respective current values (e.g. the defaults).
Example:
setAttr({BUT_COLOR: "red",BUT_FONT_SIZE: "20px"});
Implementation
static void setAttr(Map<String, String> myAttr) {
if (but_attr == null) initAttrFromDefaults();
if (myAttr == null) return;
for (String attrName in myAttr.keys) {
but_attr[attrName] = myAttr[attrName];
}
}