public Button createButton(String name){
  Button button=new Button();
  button.setName("btn" + name);
  button.setId(name);
  button.setAttribute("zk_component_ID","ConfirmPanel_btn" + name);
  String text=Msg.translate(Env.getCtx(),name);
  if (!name.equals(text))   text=text.replaceAll("[&]","");
 else   text=null;
  if (m_withText && text != null) {
    button.setImage("images/" + name + "16.png");
    button.setLabel(text);
    LayoutUtils.addSclass("action-text-button",button);
  }
 else {
    button.setImage("images/" + name + "24.png");
    if (text != null)     button.setTooltiptext(text);
    LayoutUtils.addSclass("action-button",button);
  }
  buttonMap.put(name,button);
  return button;
}

public Button createButton ( String name ) { Button button = new Button ( ) ; button . setName ( "btn" + name ) ; button . setId ( name ) ; button . setAttribute ( "zk_component_ID" , "ConfirmPanel_btn" + name ) ; String text = Msg . translate ( Env . getCtx ( ) , name ) ; if ( ! name . equals ( text ) ) text = text . replaceAll ( "[&]" , "" ) ; else text = null ; if ( m_withText && text != null ) { button . setImage ( "images/" + name + "16.png" ) ; button . setLabel ( text ) ; LayoutUtils . addSclass ( "action-text-button" , button ) ; } else { button . setImage ( "images/" + name + "24.png" ) ; if ( text != null ) button . setTooltiptext ( text ) ; LayoutUtils . addSclass ( "action-button" , button ) ; } buttonMap . put ( name , button ) ; return button ; }
creates a button of the specified id
