Search in sources :

Example 1 with Caption

use of org.zkoss.zul.Caption in project adempiere by adempiere.

the class WQueryDocType method init.

/**
	 * 	Set up Panel
	 */
protected void init() {
    setTitle(Msg.translate(Env.getCtx(), "C_DocType_ID"));
    Panel panel = new Panel();
    setVisible(true);
    Panel mainPanel = new Panel();
    Grid productLayout = GridFactory.newGridLayout();
    Groupbox groupPanel = new Groupbox();
    Caption v_TitleBorder = new Caption(Msg.getMsg(ctx, QUERY));
    //	Set title window
    this.setClosable(true);
    // add listener on 'ENTER' key 
    addEventListener(Events.ON_OK, this);
    appendChild(panel);
    northPanel = new Panel();
    mainPanel.appendChild(mainLayout);
    groupPanel.appendChild(v_TitleBorder);
    mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
    mainLayout.setHeight("100%");
    mainLayout.setWidth("100%");
    Center center = new Center();
    //
    North north = new North();
    north.setStyle("border: none");
    mainLayout.appendChild(north);
    north.appendChild(groupPanel);
    groupPanel.appendChild(productLayout);
    appendChild(mainPanel);
    productLayout.setWidth("100%");
    Rows rows = null;
    Row row = null;
    rows = productLayout.newRows();
    row = rows.newRow();
    Label labelName = new Label(Msg.translate(ctx, NAME));
    labelName.setStyle(WPOS.FONTSIZESMALL);
    row.setHeight("60px");
    row.appendChild(labelName.rightAlign());
    fieldName = new WPOSTextField("", posPanel.getKeyboard());
    row.appendChild(fieldName);
    fieldName.addEventListener(this);
    fieldName.setWidth("120px");
    fieldName.setStyle(WPOS.FONTSIZESMALL);
    Label labelDescription = new Label(Msg.translate(ctx, DESCRIPTION));
    labelDescription.setStyle(WPOS.FONTSIZESMALL);
    row.setHeight("60px");
    row.appendChild(labelDescription.rightAlign());
    fieldDescription = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldDescription);
    fieldDescription.addEventListener(this);
    fieldDescription.setWidth("120px");
    fieldDescription.setStyle(WPOS.FONTSIZESMALL);
    //	Center
    posTable = ListboxFactory.newDataTable();
    posTable.prepareTable(columnInfos, "C_DocType", null, false, "C_DocType");
    enableButtons();
    center = new Center();
    center.setStyle("border: none");
    posTable.setWidth("100%");
    posTable.setHeight("99%");
    posTable.addActionListener(this);
    center.appendChild(posTable);
    mainLayout.appendChild(center);
    posTable.setClass("Table-OrderLine");
    posTable.autoSize();
    posTable.addEventListener(Events.ON_DOUBLE_CLICK, this);
    refresh();
}
Also used : Panel(org.adempiere.webui.component.Panel) Center(org.zkoss.zkex.zul.Center) WPOSTextField(org.adempiere.pos.WPOSTextField) Groupbox(org.zkoss.zul.Groupbox) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Caption(org.zkoss.zul.Caption) Rows(org.adempiere.webui.component.Rows)

Example 2 with Caption

use of org.zkoss.zul.Caption in project adempiere by adempiere.

the class WQueryOrderHistory method init.

/**
	 * 	Set up Panel
	 */
protected void init() {
    setTitle(Msg.translate(Env.getCtx(), "C_Order_ID"));
    Panel panel = new Panel();
    setVisible(true);
    Panel mainPanel = new Panel();
    Grid productLayout = GridFactory.newGridLayout();
    Groupbox groupPanel = new Groupbox();
    Caption v_TitleBorder = new Caption(Msg.getMsg(ctx, QUERY));
    //	Set title window
    this.setClosable(true);
    // add listener on 'ENTER' key 
    addEventListener(Events.ON_OK, this);
    appendChild(panel);
    northPanel = new Panel();
    mainPanel.appendChild(mainLayout);
    groupPanel.appendChild(v_TitleBorder);
    mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
    mainLayout.setHeight("100%");
    mainLayout.setWidth("100%");
    Center center = new Center();
    //
    North north = new North();
    north.setStyle("border: none");
    mainLayout.appendChild(north);
    north.appendChild(groupPanel);
    groupPanel.appendChild(productLayout);
    appendChild(mainPanel);
    productLayout.setWidth("100%");
    Rows rows = null;
    Row row = null;
    rows = productLayout.newRows();
    row = rows.newRow();
    Label labelDocumentNo = new Label(Msg.translate(ctx, DOCUMENTNO));
    labelDocumentNo.setStyle(WPOS.FONTSIZESMALL);
    row.setHeight("20px");
    row.appendChild(labelDocumentNo.rightAlign());
    fieldDocumentNo = new WPOSTextField("", posPanel.getKeyboard());
    row.appendChild(fieldDocumentNo);
    fieldDocumentNo.addEventListener(this);
    fieldDocumentNo.setWidth("120px");
    fieldDocumentNo.setStyle(WPOS.FONTSIZESMALL);
    //
    Label labelDateFrom = new Label(Msg.translate(ctx, DATEORDEREDFROM));
    labelDateFrom.setStyle(WPOS.FONTSIZESMALL);
    row.appendChild(labelDateFrom.rightAlign());
    fieldDateFrom = new Datebox();
    fieldDateFrom.setValue(Env.getContextAsDate(Env.getCtx(), "#Date"));
    fieldDateFrom.addEventListener("onBlur", this);
    fieldDateFrom.setStyle(WPOS.FONTSIZESMALL);
    row.appendChild(fieldDateFrom);
    fieldAllowDate = new Checkbox();
    fieldAllowDate.setLabel(Msg.translate(ctx, DATE));
    fieldAllowDate.setSelected(false);
    row.appendChild(fieldAllowDate);
    fieldAllowDate.addActionListener(this);
    fieldAllowDate.setStyle(WPOS.FONTSIZESMALL);
    row = rows.newRow();
    Label labelBPartner = new Label(Msg.translate(ctx, BPARTNERID));
    labelBPartner.setStyle(WPOS.FONTSIZESMALL);
    row.setHeight("60px");
    row.appendChild(labelBPartner.rightAlign());
    fieldBPartner = new WPOSTextField("", posPanel.getKeyboard());
    row.appendChild(fieldBPartner);
    fieldBPartner.addEventListener(this);
    fieldBPartner.setWidth("120px");
    fieldBPartner.setStyle(WPOS.FONTSIZESMALL);
    Label labelDateTo = new Label(Msg.translate(ctx, DATEORDEREDTO));
    labelDateTo.setStyle(WPOS.FONTSIZESMALL);
    row.appendChild(labelDateTo.rightAlign());
    fieldDateTo = new Datebox();
    fieldDateTo.setValue(Env.getContextAsDate(Env.getCtx(), "#Date"));
    fieldDateTo.addEventListener("onBlur", this);
    fieldDateTo.setStyle(WPOS.FONTSIZESMALL);
    row.appendChild(fieldDateTo);
    fieldProcessed = new Checkbox();
    fieldProcessed.setLabel(Msg.translate(ctx, PROCESSED));
    fieldProcessed.setSelected(false);
    row.appendChild(fieldProcessed);
    fieldProcessed.addActionListener(this);
    fieldProcessed.setStyle(WPOS.FONTSIZESMALL);
    //	Center
    posTable = ListboxFactory.newDataTable();
    posTable.prepareTable(columnInfos, "C_Order", "C_POS_ID = " + posPanel.getC_POS_ID(), false, "C_Order");
    enableButtons();
    center = new Center();
    center.setStyle("border: none");
    posTable.setWidth("100%");
    posTable.setHeight("99%");
    posTable.addActionListener(this);
    center.appendChild(posTable);
    mainLayout.appendChild(center);
    posTable.setClass("Table-OrderLine");
    posTable.autoSize();
    posTable.addEventListener(Events.ON_DOUBLE_CLICK, this);
    refresh();
}
Also used : Panel(org.adempiere.webui.component.Panel) Center(org.zkoss.zkex.zul.Center) WPOSTextField(org.adempiere.pos.WPOSTextField) Datebox(org.adempiere.webui.component.Datebox) Groupbox(org.zkoss.zul.Groupbox) Checkbox(org.adempiere.webui.component.Checkbox) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Caption(org.zkoss.zul.Caption) Rows(org.adempiere.webui.component.Rows)

Example 3 with Caption

use of org.zkoss.zul.Caption in project adempiere by adempiere.

the class WBOMDrop method createMainPanel.

//	getInvoices
/**************************************************************************
	 * 	Create Main Panel.
	 * 	Called when changing Product
	 */
private void createMainPanel() {
    log.config(": " + m_product);
    this.getChildren().clear();
    //this.invalidate();
    //this.setBorder(null);
    m_selectionList.clear();
    m_productList.clear();
    m_qtyList.clear();
    m_buttonGroups.clear();
    this.appendChild(new Separator());
    this.appendChild(grpSelectionPanel);
    this.appendChild(new Separator());
    this.appendChild(grpSelectProd);
    this.appendChild(new Separator());
    this.appendChild(confirmPanel);
    this.appendChild(new Separator());
    this.setBorder("normal");
    Caption title = new Caption(Msg.getMsg(Env.getCtx(), "SelectProduct"));
    grpSelectProd.getChildren().clear();
    grpSelectProd.appendChild(title);
    if (m_product != null && m_product.get_ID() > 0) {
        title.setLabel(m_product.getName());
        if (m_product.getDescription() != null && m_product.getDescription().length() > 0)
            //this.setsetToolTipText(m_product.getDescription());
            ;
        m_bomLine = 0;
        addBOMLines(m_product, m_qty);
    }
}
Also used : Separator(org.zkoss.zul.Separator) Caption(org.zkoss.zul.Caption)

Example 4 with Caption

use of org.zkoss.zul.Caption in project adempiere by adempiere.

the class WPOSDocumentPanel method init.

@Override
public void init() {
    int C_POSKeyLayout_ID = posPanel.getC_POSKeyLayout_ID();
    if (C_POSKeyLayout_ID == 0)
        return;
    m_Format = DisplayType.getNumberFormat(DisplayType.Amount);
    isKeyboard = false;
    v_TotalsPanel = GridFactory.newGridLayout();
    v_TotalsPanel.setHeight("100%");
    v_TotalsPanel.setStyle("width:130%;height:100%");
    v_OrderPanel = GridFactory.newGridLayout();
    v_OrderPanel.setStyle("border: none; width:130%; height:100%");
    v_GroupPanel = GridFactory.newGridLayout();
    v_GroupPanel.setWidth("100%");
    v_GroupPanel.setHeight("auto");
    //  Define the criteria rows and grid  
    Rows rows = new Rows();
    //
    row = new Row();
    rows.appendChild(row);
    rows.setHeight("100%");
    rows.setWidth("100%");
    v_TotalsGroup = new Groupbox();
    v_InfOrderGroup = new Groupbox();
    v_InfOrderGroup.appendChild(v_OrderPanel);
    v_InfOrderGroup.setWidth("85%");
    row.appendChild(v_InfOrderGroup);
    row.appendChild(v_TotalsGroup);
    // BP
    bPartnerName = new WPOSTextField(Msg.translate(Env.getCtx(), "IsCustomer"), posPanel.getKeyboard());
    bPartnerName.setHeight("35px");
    bPartnerName.setStyle(WPOS.FONTSIZEMEDIUM + "; font-weight:bold");
    bPartnerName.setWidth("97%");
    bPartnerName.addEventListener(this);
    row = rows.newRow();
    row.setSpans("2");
    row.setHeight("10px");
    row.appendChild(bPartnerName);
    v_GroupPanel.appendChild(rows);
    v_GroupPanel.setStyle("Overflow:hidden;");
    v_OrderPanel.setStyle("Overflow:hidden;");
    v_TotalsGroup.appendChild(v_TotalsPanel);
    v_TotalsGroup.setWidth("65%");
    v_TitleBorder = new Caption(Msg.getMsg(Env.getCtx(), "Totals"));
    Style style = new Style();
    style.setContent(".z-fieldset { margin-left:-5px }" + ".z-combo-item-text { Font-family:Courier New}" + ".z-fieldset legend {font-size: medium; font-weight:bold; width:100%;} " + ".input-search table tr td input{font-size: medium; font-weight:bold; width:100%; height:20px;}" + ".Table-OrderLine tr th div{font-size: 13px; padding:5px} " + ".Table-OrderLine tr td div, .Table-OrderLine tr td div input{font-size: 13; height:auto}" + ".label-description {" + WPOS.FONTSIZEMEDIUM + " display:block; height:15px; font-weight:bold; width: 415px; overflow:hidden;}" + ".fontLarge label  {font-size: medium;}" + "div.z-grid-body {-moz-box-shadow: 0 0 0px #888;-webkit-box-shadow: 0 0 0px #888;box-shadow: 0 0 0px #888;}");
    style.setParent(v_TitleBorder);
    v_TotalsGroup.appendChild(v_TitleBorder);
    v_TitleInfo = new Caption(Msg.getMsg(Env.getCtx(), "InfoOrder"));
    v_InfOrderGroup.appendChild(v_TitleInfo);
    rows = null;
    row = null;
    rows = v_OrderPanel.newRows();
    appendChild(v_GroupPanel);
    //
    row = rows.newRow();
    row.setHeight("10px");
    Label f_lb_DocumentNo = new Label(Msg.translate(Env.getCtx(), I_C_Order.COLUMNNAME_DocumentNo) + ":");
    f_lb_DocumentNo.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(f_lb_DocumentNo.rightAlign());
    documentNo = new Label();
    documentNo.setStyle(WPOS.FONTSIZEMEDIUM + "; font-weight:bold");
    row.appendChild(documentNo.rightAlign());
    row = rows.newRow();
    row.setHeight("20px");
    row.setWidth("100%");
    Label f_lb_DocumentType = new Label(Msg.translate(Env.getCtx(), I_C_Order.COLUMNNAME_C_DocType_ID) + ":");
    f_lb_DocumentType.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(f_lb_DocumentType.rightAlign());
    documentType = new Label();
    documentType.setClass("label-description");
    documentType.setStyle(WPOS.FONTSIZEMEDIUM + "; font-weight:bold; width:auto !important;max-width:225px !important; white-space:pre;");
    row.appendChild(documentType.rightAlign());
    row = rows.newRow();
    row.setHeight("20px");
    Label f_lb_DocumentStatus = new Label(Msg.translate(Env.getCtx(), I_C_Order.COLUMNNAME_DocStatus) + ":");
    f_lb_DocumentStatus.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(f_lb_DocumentStatus.rightAlign());
    documentStatus = new Label();
    documentStatus.setStyle(WPOS.FONTSIZEMEDIUM + "; font-weight:bold");
    row.appendChild(documentStatus.rightAlign());
    row = rows.newRow();
    row.setHeight("20px");
    Label f_lb_SalesRep = new Label(Msg.translate(Env.getCtx(), I_C_Order.COLUMNNAME_SalesRep_ID) + ":");
    f_lb_SalesRep.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(f_lb_SalesRep.rightAlign());
    salesRep = new Label(posPanel.getSalesRepName());
    salesRep.setStyle(WPOS.FONTSIZEMEDIUM + "; font-weight:bold");
    row.appendChild(salesRep.rightAlign());
    row = rows.newRow();
    rows = v_TotalsPanel.newRows();
    //
    row = rows.newRow();
    row.setHeight("10px");
    Label lDocumentDate = new Label(Msg.translate(Env.getCtx(), I_C_Order.COLUMNNAME_DateOrdered) + ":");
    lDocumentDate.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(lDocumentDate);
    documentDate = new Label();
    documentDate.setStyle(WPOS.FONTSIZEMEDIUM + "; font-weight:bold");
    row.appendChild(documentDate.rightAlign());
    row = rows.newRow();
    row.setHeight("10px");
    Label lNet = new Label(Msg.translate(Env.getCtx(), "SubTotal") + ":");
    lNet.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(lNet);
    totalLines = new Label(String.valueOf(DisplayType.Amount));
    totalLines.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(totalLines.rightAlign());
    totalLines.setText("0.00");
    row = rows.newRow();
    row.setHeight("20px");
    Label lTax = new Label(Msg.translate(Env.getCtx(), "C_Tax_ID") + ":");
    lTax.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(lTax);
    taxAmount = new Label(String.valueOf(DisplayType.Amount));
    taxAmount.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(taxAmount.rightAlign());
    taxAmount.setText(Env.ZERO.toString());
    row = rows.newRow();
    Label lTotal = new Label(Msg.translate(Env.getCtx(), "GrandTotal") + ":");
    lTotal.setStyle(WPOS.FONTSIZEMEDIUM);
    row.appendChild(lTotal);
    grandTotal = new Label(String.valueOf(DisplayType.Amount));
    row.appendChild(grandTotal.rightAlign());
    grandTotal.setText(Env.ZERO.toString());
    grandTotal.setStyle("Font-size:1.9em;font-weight:bold");
    // Center Panel
    Grid layout = GridFactory.newGridLayout();
    org.adempiere.webui.component.Panel centerPanel = new org.adempiere.webui.component.Panel();
    appendChild(centerPanel);
    centerPanel.setStyle("overflow:auto; height:75%");
    centerPanel.appendChild(layout);
    layout.setWidth("100%");
    layout.setStyle("");
    rows = layout.newRows();
    keyboardPanel = new WPOSKeyPanel(C_POSKeyLayout_ID, this);
    row = rows.newRow();
    row.setHeight("50%");
    row.setSpans("4");
    row.appendChild(keyboardPanel);
    collectPayment = new WCollect(posPanel);
    scalesPanel = new WPOSScalesPanel(posPanel);
    scalesPanel.hidePanel();
    //add(scalesPanel.getPanel(), scalesConstraint);
    //	Refresh
    totalLines.setText(m_Format.format(Env.ZERO));
    grandTotal.setText(m_Format.format(Env.ZERO));
    taxAmount.setText(m_Format.format(Env.ZERO));
    //	Refresh
    refreshPanel();
}
Also used : Groupbox(org.zkoss.zul.Groupbox) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) Caption(org.zkoss.zul.Caption) Style(org.zkoss.zul.Style) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 5 with Caption

use of org.zkoss.zul.Caption in project adempiere by adempiere.

the class WQueryBPartner method init.

/**
	 * 	Set up Panel
	 */
protected void init() {
    setTitle(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
    Panel panel = new Panel();
    setVisible(true);
    Panel mainPanel = new Panel();
    Grid bPartnerLayout = GridFactory.newGridLayout();
    Groupbox groupPanel = new Groupbox();
    Caption v_TitleBorder = new Caption(Msg.getMsg(ctx, "Query"));
    //	Set title window
    this.setClosable(true);
    // add listener on 'ENTER' key 
    addEventListener(Events.ON_OK, this);
    appendChild(panel);
    //	North
    northPanel = new Panel();
    mainPanel.appendChild(mainLayout);
    mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
    mainLayout.setHeight("100%");
    mainLayout.setWidth("100%");
    Center center = new Center();
    //
    North north = new North();
    north.setStyle("border: none");
    mainLayout.appendChild(north);
    north.appendChild(groupPanel);
    groupPanel.appendChild(v_TitleBorder);
    groupPanel.appendChild(bPartnerLayout);
    appendChild(mainPanel);
    bPartnerLayout.setWidth("100%");
    Rows rows = null;
    Row row = null;
    rows = bPartnerLayout.newRows();
    row = rows.newRow();
    Label labelValue = new Label(Msg.translate(ctx, "Value"));
    row.appendChild(labelValue.rightAlign());
    labelValue.setStyle(WPOS.FONTSIZESMALL);
    fieldValue = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldValue);
    fieldValue.setWidth("120px");
    fieldValue.addEventListener(this);
    fieldValue.setStyle(WPOS.FONTSIZESMALL);
    Label labelTaxID = new Label(Msg.translate(ctx, "TaxID"));
    row.appendChild(labelTaxID.rightAlign());
    labelValue.setStyle(WPOS.FONTSIZESMALL);
    fieldTaxID = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldTaxID);
    fieldTaxID.setWidth("120px");
    fieldTaxID.addEventListener(this);
    fieldTaxID.setStyle(WPOS.FONTSIZESMALL);
    Label labelContact = new Label(Msg.translate(ctx, "Contact"));
    row.appendChild(labelContact.rightAlign());
    labelContact.setStyle(WPOS.FONTSIZESMALL);
    fieldContact = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldContact);
    fieldContact.setWidth("120px");
    fieldContact.addEventListener(this);
    fieldContact.setStyle(WPOS.FONTSIZESMALL);
    Label labelPhone = new Label(Msg.translate(ctx, "Phone"));
    row.appendChild(labelPhone.rightAlign());
    labelPhone.setStyle(WPOS.FONTSIZESMALL);
    fieldPhone = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldPhone);
    fieldPhone.setWidth("120px");
    fieldPhone.addEventListener(this);
    fieldPhone.setStyle(WPOS.FONTSIZESMALL);
    // New Line
    row = rows.newRow();
    Label labelName = new Label(Msg.translate(ctx, "Name"));
    row.appendChild(labelName.rightAlign());
    labelName.setStyle(WPOS.FONTSIZESMALL);
    fieldName = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldName);
    fieldName.addEventListener(this);
    fieldName.setWidth("120px");
    fieldName.setStyle(WPOS.FONTSIZESMALL);
    Label labelName2 = new Label(Msg.translate(ctx, "Name2"));
    row.appendChild(labelName2.rightAlign());
    labelName2.setStyle(WPOS.FONTSIZESMALL);
    fieldName2 = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldName2);
    fieldName2.addEventListener(this);
    fieldName2.setWidth("120px");
    fieldName2.setStyle(WPOS.FONTSIZESMALL);
    //
    Label labelEmail = new Label(Msg.translate(ctx, "Email"));
    row.appendChild(labelEmail.rightAlign());
    labelEmail.setStyle(WPOS.FONTSIZESMALL);
    fieldEmail = new WPOSTextField(null, posPanel.getKeyboard());
    row.appendChild(fieldEmail);
    fieldEmail.addEventListener(this);
    fieldEmail.setWidth("120px");
    fieldEmail.setStyle(WPOS.FONTSIZESMALL);
    //
    Label labelCity = new Label(Msg.translate(ctx, "City"));
    row.appendChild(labelCity.rightAlign());
    labelCity.setStyle(WPOS.FONTSIZESMALL);
    fieldCity = new WPOSTextField(null, posPanel.getKeyboard());
    fieldCity.setWidth("120px");
    row.appendChild(fieldCity);
    fieldCity.addEventListener("onFocus", this);
    fieldCity.setStyle(WPOS.FONTSIZESMALL);
    posTable = ListboxFactory.newDataTable();
    posTable.prepareTable(columnInfos, "C_Order", "C_POS_ID = " + posPanel.getC_POS_ID(), false, "C_Order");
    center = new Center();
    center.setStyle("border: none");
    posTable.setWidth("100%");
    posTable.setHeight("99%");
    posTable.addActionListener(this);
    center.appendChild(posTable);
    mainLayout.appendChild(center);
    posTable.setClass("Table-OrderLine");
    posTable.autoSize();
    posTable.addEventListener(Events.ON_DOUBLE_CLICK, this);
    addNewAction();
}
Also used : Panel(org.adempiere.webui.component.Panel) Center(org.zkoss.zkex.zul.Center) WPOSTextField(org.adempiere.pos.WPOSTextField) Groupbox(org.zkoss.zul.Groupbox) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Caption(org.zkoss.zul.Caption) Rows(org.adempiere.webui.component.Rows)

Aggregations

Caption (org.zkoss.zul.Caption)10 Groupbox (org.zkoss.zul.Groupbox)7 Label (org.adempiere.webui.component.Label)6 Row (org.adempiere.webui.component.Row)6 Rows (org.adempiere.webui.component.Rows)6 Grid (org.adempiere.webui.component.Grid)4 Panel (org.adempiere.webui.component.Panel)4 WPOSTextField (org.adempiere.pos.WPOSTextField)3 Center (org.zkoss.zkex.zul.Center)3 North (org.zkoss.zkex.zul.North)3 Borderlayout (org.zkoss.zul.Borderlayout)2 Center (org.zkoss.zul.Center)2 Separator (org.zkoss.zul.Separator)2 South (org.zkoss.zul.South)2 Style (org.zkoss.zul.Style)2 BigDecimal (java.math.BigDecimal)1 Checkbox (org.adempiere.webui.component.Checkbox)1 Datebox (org.adempiere.webui.component.Datebox)1 ADTabPanel (org.adempiere.webui.panel.ADTabPanel)1 KeyNamePair (org.compiere.util.KeyNamePair)1