private int _validateFlags() {
    int flags = myFlags;
    if ((flags & NSTLibrary.BUTTON_FLAG_COLORED) != 0 && (flags & NSTLibrary.BUTTON_FLAG_DISABLED) != 0) {
      return flags & ~NSTLibrary.BUTTON_FLAG_COLORED;
    }
    return flags;
  }
private int _validateFlags()