use of org.adempiere.webui.component.Textbox in project adempiere by adempiere.
the class WLocationDialog method initComponents.
private void initComponents() {
lblAddress1 = new Label(Msg.getElement(Env.getCtx(), "Address1"));
lblAddress1.setStyle(LABEL_STYLE);
lblAddress2 = new Label(Msg.getElement(Env.getCtx(), "Address2"));
lblAddress2.setStyle(LABEL_STYLE);
lblAddress3 = new Label(Msg.getElement(Env.getCtx(), "Address3"));
lblAddress3.setStyle(LABEL_STYLE);
lblAddress4 = new Label(Msg.getElement(Env.getCtx(), "Address4"));
lblAddress4.setStyle(LABEL_STYLE);
lblCity = new Label(Msg.getMsg(Env.getCtx(), "City"));
lblCity.setStyle(LABEL_STYLE);
lblZip = new Label(Msg.getMsg(Env.getCtx(), "Postal"));
lblZip.setStyle(LABEL_STYLE);
lblRegion = new Label(Msg.getMsg(Env.getCtx(), "Region"));
lblRegion.setStyle(LABEL_STYLE);
lblPostal = new Label(Msg.getMsg(Env.getCtx(), "Postal"));
lblPostal.setStyle(LABEL_STYLE);
lblPostalAdd = new Label(Msg.getMsg(Env.getCtx(), "PostalAdd"));
lblPostalAdd.setStyle(LABEL_STYLE);
lblCountry = new Label(Msg.getMsg(Env.getCtx(), "Country"));
lblCountry.setStyle(LABEL_STYLE);
txtAddress1 = new Textbox();
txtAddress1.setCols(20);
txtAddress2 = new Textbox();
txtAddress2.setCols(20);
txtAddress3 = new Textbox();
txtAddress3.setCols(20);
txtAddress4 = new Textbox();
txtAddress4.setCols(20);
//autocomplete City
txtCity = new WAutoCompleterCity(m_WindowNo);
txtCity.setCols(20);
txtCity.setAutodrop(true);
txtCity.setAutocomplete(true);
txtCity.addEventListener(Events.ON_CHANGING, this);
//txtCity
txtPostal = new Textbox();
txtPostal.setCols(20);
txtPostalAdd = new Textbox();
txtPostalAdd.setCols(20);
lstRegion = new Listbox();
lstRegion.setMold("select");
lstRegion.setWidth("154px");
lstRegion.setRows(0);
lstCountry = new Listbox();
lstCountry.setMold("select");
lstCountry.setWidth("154px");
lstCountry.setRows(0);
btnUrl = new Button();
btnUrl.setImage(ServletFns.resolveThemeURL("~./images/Online10.png"));
btnUrl.addEventListener(Events.ON_CLICK, this);
btnOk = new Button();
btnOk.setImage(ServletFns.resolveThemeURL("~./images/Ok16.png"));
btnOk.addEventListener(Events.ON_CLICK, this);
btnCancel = new Button();
btnCancel.setImage(ServletFns.resolveThemeURL("~./images/Cancel16.png"));
btnCancel.addEventListener(Events.ON_CLICK, this);
mainPanel = GridFactory.newGridLayout();
mainPanel.setStyle("padding:5px");
}
Aggregations