class ButtonItem extends AbstractItem implements View.OnClickListener {

  protected Button createButton(ViewGroup parent) {
    if (button == null) {
      Context context = parent.getContext();
      if (theme != 0) {
        context = new ContextThemeWrapper(context, theme);
      }
      button = createButton(context);
      button.setOnClickListener(this);
    } else {
      if (button.getParent() instanceof ViewGroup) {
        // A view cannot be added to a different parent if one already exists. Remove this
        // button from its parent before returning.
        ((ViewGroup) button.getParent()).removeView(button);
      }
    }
    button.setEnabled(enabled);
    button.setText(text);
    button.setId(getViewId());
    return button;
  }

  public  ButtonItem();
  public  ButtonItem(Context context, AttributeSet attrs);

}