private void initComponents(){
  labelValue=new Label();
  labelValue.setValue(Util.cleanAmp(Msg.translate(Env.getCtx(),"Value")));
  labelName=new Label();
  labelName.setValue(Util.cleanAmp(Msg.translate(Env.getCtx(),"Name")));
  labelContact=new Label();
  labelContact.setValue(Msg.translate(Env.getCtx(),"Contact"));
  labelEMail=new Label();
  labelEMail.setValue(Msg.getMsg(Env.getCtx(),"EMail"));
  labelPostal=new Label();
  labelPostal.setValue(Msg.getMsg(Env.getCtx(),"Postal"));
  labelPhone=new Label();
  labelPhone.setValue(Msg.translate(Env.getCtx(),"Phone"));
  fieldID=0;
  fieldValue=new Textbox();
  fieldValue.setMaxlength(40);
  fieldValue.setAttribute("zk_component_ID","Lookup_Criteria_fieldValue");
  fieldValue.addEventListener(Events.ON_CHANGE,this);
  fieldName=new Textbox();
  fieldName.setMaxlength(40);
  fieldName.setAttribute("zk_component_ID","Lookup_Criteria_fieldName");
  fieldName.addEventListener(Events.ON_CHANGE,this);
  fieldContact=new Textbox();
  fieldContact.setMaxlength(40);
  fieldContact.setAttribute("zk_component_ID","Lookup_Criteria_fieldContact");
  fieldContact.addEventListener(Events.ON_CHANGE,this);
  fieldEMail=new Textbox();
  fieldEMail.setMaxlength(40);
  fieldEMail.setAttribute("zk_component_ID","Lookup_Criteria_fieldEMail");
  fieldEMail.addEventListener(Events.ON_CHANGE,this);
  fieldPostal=new Textbox();
  fieldPostal.setMaxlength(40);
  fieldPostal.setAttribute("zk_component_ID","Lookup_Criteria_fieldPostal");
  fieldPostal.addEventListener(Events.ON_CHANGE,this);
  fieldPhone=new Textbox();
  fieldPhone.setMaxlength(40);
  fieldPhone.setAttribute("zk_component_ID","Lookup_Criteria_fieldPhone");
  fieldPhone.addEventListener(Events.ON_CHANGE,this);
  checkAND=new Checkbox();
  checkAND.setText(Msg.getMsg(Env.getCtx(),"SearchAND"));
  checkAND.setName("SearchAND");
  checkAND.setTooltiptext(Msg.getMsg(Env.getCtx(),"SearchANDInfo"));
  checkAND.setSelected(true);
  checkAND.addActionListener(this);
  checkAND.setAttribute("zk_component_ID","Lookup_Criteria_checkAND");
  checkCustomer=new Checkbox();
  checkCustomer.addActionListener(this);
  checkCustomer.setAttribute("zk_component_ID","Lookup_Criteria_checkCustomer");
  checkCustomer.setName("checkCustomer");
  if (m_isSOTrx)   checkCustomer.setLabel(Msg.getMsg(Env.getCtx(),"OnlyCustomers"));
 else   checkCustomer.setLabel(Msg.getMsg(Env.getCtx(),"OnlyVendors"));
  checkCustomer.setSelected(m_isSOMatch);
}

private void initComponents ( ) { labelValue = new Label ( ) ; labelValue . setValue ( Util . cleanAmp ( Msg . translate ( Env . getCtx ( ) , "Value" ) ) ) ; labelName = new Label ( ) ; labelName . setValue ( Util . cleanAmp ( Msg . translate ( Env . getCtx ( ) , "Name" ) ) ) ; labelContact = new Label ( ) ; labelContact . setValue ( Msg . translate ( Env . getCtx ( ) , "Contact" ) ) ; labelEMail = new Label ( ) ; labelEMail . setValue ( Msg . getMsg ( Env . getCtx ( ) , "EMail" ) ) ; labelPostal = new Label ( ) ; labelPostal . setValue ( Msg . getMsg ( Env . getCtx ( ) , "Postal" ) ) ; labelPhone = new Label ( ) ; labelPhone . setValue ( Msg . translate ( Env . getCtx ( ) , "Phone" ) ) ; fieldID = 0 ; fieldValue = new Textbox ( ) ; fieldValue . setMaxlength ( 40 ) ; fieldValue . setAttribute ( "zk_component_ID" , "Lookup_Criteria_fieldValue" ) ; fieldValue . addEventListener ( Events . ON_CHANGE , this ) ; fieldName = new Textbox ( ) ; fieldName . setMaxlength ( 40 ) ; fieldName . setAttribute ( "zk_component_ID" , "Lookup_Criteria_fieldName" ) ; fieldName . addEventListener ( Events . ON_CHANGE , this ) ; fieldContact = new Textbox ( ) ; fieldContact . setMaxlength ( 40 ) ; fieldContact . setAttribute ( "zk_component_ID" , "Lookup_Criteria_fieldContact" ) ; fieldContact . addEventListener ( Events . ON_CHANGE , this ) ; fieldEMail = new Textbox ( ) ; fieldEMail . setMaxlength ( 40 ) ; fieldEMail . setAttribute ( "zk_component_ID" , "Lookup_Criteria_fieldEMail" ) ; fieldEMail . addEventListener ( Events . ON_CHANGE , this ) ; fieldPostal = new Textbox ( ) ; fieldPostal . setMaxlength ( 40 ) ; fieldPostal . setAttribute ( "zk_component_ID" , "Lookup_Criteria_fieldPostal" ) ; fieldPostal . addEventListener ( Events . ON_CHANGE , this ) ; fieldPhone = new Textbox ( ) ; fieldPhone . setMaxlength ( 40 ) ; fieldPhone . setAttribute ( "zk_component_ID" , "Lookup_Criteria_fieldPhone" ) ; fieldPhone . addEventListener ( Events . ON_CHANGE , this ) ; checkAND = new Checkbox ( ) ; checkAND . setText ( Msg . getMsg ( Env . getCtx ( ) , "SearchAND" ) ) ; checkAND . setName ( "SearchAND" ) ; checkAND . setTooltiptext ( Msg . getMsg ( Env . getCtx ( ) , "SearchANDInfo" ) ) ; checkAND . setSelected ( true ) ; checkAND . addActionListener ( this ) ; checkAND . setAttribute ( "zk_component_ID" , "Lookup_Criteria_checkAND" ) ; checkCustomer = new Checkbox ( ) ; checkCustomer . addActionListener ( this ) ; checkCustomer . setAttribute ( "zk_component_ID" , "Lookup_Criteria_checkCustomer" ) ; checkCustomer . setName ( "checkCustomer" ) ; if ( m_isSOTrx ) checkCustomer . setLabel ( Msg . getMsg ( Env . getCtx ( ) , "OnlyCustomers" ) ) ; else checkCustomer . setLabel ( Msg . getMsg ( Env . getCtx ( ) , "OnlyVendors" ) ) ; checkCustomer . setSelected ( m_isSOMatch ) ; }
initialize the zk components .
