Search in sources :

Example 21 with Textbox

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");
}
Also used : Button(org.adempiere.webui.component.Button) Label(org.adempiere.webui.component.Label) Textbox(org.adempiere.webui.component.Textbox) Listbox(org.adempiere.webui.component.Listbox)

Aggregations

Textbox (org.adempiere.webui.component.Textbox)21 Label (org.adempiere.webui.component.Label)11 Checkbox (org.adempiere.webui.component.Checkbox)8 NumberBox (org.adempiere.webui.component.NumberBox)6 Datebox (org.adempiere.webui.component.Datebox)5 DecimalFormat (java.text.DecimalFormat)4 SimpleDateFormat (java.text.SimpleDateFormat)4 Button (org.adempiere.webui.component.Button)4 Component (org.zkoss.zk.ui.Component)4 Hbox (org.zkoss.zul.Hbox)4 Combobox (org.adempiere.webui.component.Combobox)3 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)3 ListItem (org.adempiere.webui.component.ListItem)3 Listbox (org.adempiere.webui.component.Listbox)3 Row (org.adempiere.webui.component.Row)3 WSearchEditor (org.adempiere.webui.editor.WSearchEditor)3 BigDecimal (java.math.BigDecimal)2 WPOSKeyboard (org.adempiere.pos.WPOSKeyboard)2 Rows (org.adempiere.webui.component.Rows)2 IDColumn (org.compiere.minigrid.IDColumn)2