setAttr method

void setAttr (Map<String, String> myAttr)

Sets the dialog attributes specified in myAttr. Overrides the respective current values (e.g. the defaults). Example: setAttr({DIALOG_HEADER_TEXTALIGN: "left",DIALOG_HEADER_FONTSIZE: "20"});

Implementation

static void setAttr(Map<String, String> myAttr) {
  if (attr == null) initAttrFromDefaults();
  if (myAttr == null) return;
  for (String attrName in myAttr.keys) {
    attr[attrName] = myAttr[attrName];
  }
}