private int checkPickerStyle(int style) {
    if (style == 0)
      style = PICKER_STYLE_FIELD_AND_BUTTON;
    if (style != PICKER_STYLE_FIELD_AND_BUTTON
        && style != PICKER_STYLE_BUTTON)
      throw new IllegalArgumentException(PROPERTY_NAME_PICKER_STYLE
          + ": unrecognized style");
    return style;
  }
private int checkPickerStyle(int style)