Search in sources :

Example 1 with Row

use of org.adempiere.webui.component.Row in project adempiere by adempiere.

the class WTranslationDialog method zkInit.

private void zkInit() throws Exception {
    centerPanel.appendChild(centerLayout);
    lClient.setText(Msg.translate(Env.getCtx(), "AD_Client_ID"));
    lLanguage.setText(Msg.translate(Env.getCtx(), "AD_Language"));
    lLanguage.setTooltiptext(Msg.translate(Env.getCtx(), "IsSystemLanguage"));
    lTable.setText(Msg.translate(Env.getCtx(), "AD_Table_ID"));
    //
    bExport.setLabel(Msg.getMsg(Env.getCtx(), "Export"));
    bExport.addActionListener(this);
    bImport.setLabel(Msg.getMsg(Env.getCtx(), "Import"));
    bImport.addActionListener(this);
    Rows rows = centerLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(lClient.rightAlign());
    row.appendChild(cbClient);
    row = rows.newRow();
    row.appendChild(lLanguage.rightAlign());
    row.appendChild(cbLanguage);
    row = rows.newRow();
    row.appendChild(lTable.rightAlign());
    row.appendChild(cbTable);
    Div div = new Div();
    div.setAlign("right");
    div.appendChild(bExport);
    row = rows.newRow();
    row.appendChild(div);
    row.appendChild(bImport);
}
Also used : Div(org.zkoss.zul.Div) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 2 with Row

use of org.adempiere.webui.component.Row in project adempiere by adempiere.

the class WHRPayPrint method zkInit.

/**
	 *  Static Init
	 *  @throws Exception
	 */
private void zkInit() throws Exception {
    //
    centerPanel.appendChild(centerLayout);
    //
    bPrint.addActionListener(this);
    bExport.addActionListener(this);
    bCancel.addActionListener(this);
    //
    bProcess.setEnabled(false);
    bProcess.addActionListener(this);
    //
    lPaySelect.setText(Msg.translate(Env.getCtx(), "HR_PaySelection_ID"));
    fPaySelect.addActionListener(this);
    //
    lBank.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
    //
    lPaymentRule.setText(Msg.translate(Env.getCtx(), "PaymentRule"));
    fPaymentRule.addActionListener(this);
    //
    lDocumentNo.setText(Msg.translate(Env.getCtx(), "DocumentNo"));
    fDocumentNo.getComponent().setIntegral(true);
    lNoPayments.setText(Msg.getMsg(Env.getCtx(), "NoOfPayments"));
    fNoPayments.setText("0");
    lBalance.setText(Msg.translate(Env.getCtx(), "CurrentBalance"));
    fBalance.setReadWrite(false);
    fBalance.getComponent().setIntegral(false);
    lCurrency.setText(Msg.translate(Env.getCtx(), "C_Currency_ID"));
    //
    southPanel.addButton(bExport);
    southPanel.addButton(bPrint);
    southPanel.addButton(bProcess);
    //
    Rows rows = centerLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(lPaySelect.rightAlign());
    row.appendChild(fPaySelect);
    row = rows.newRow();
    row.appendChild(lBank.rightAlign());
    row.appendChild(fBank);
    row.appendChild(lBalance.rightAlign());
    row.appendChild(fBalance.getComponent());
    row = rows.newRow();
    row.appendChild(lPaymentRule.rightAlign());
    row.appendChild(fPaymentRule);
    row.appendChild(lCurrency.rightAlign());
    row.appendChild(fCurrency);
    row = rows.newRow();
    row.appendChild(lDocumentNo.rightAlign());
    row.appendChild(fDocumentNo.getComponent());
    row.appendChild(lNoPayments.rightAlign());
    row.appendChild(fNoPayments);
    southPanel.getButton(ConfirmPanel.A_OK).setVisible(false);
}
Also used : Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 3 with Row

use of org.adempiere.webui.component.Row in project adempiere by adempiere.

the class WMerge method zkInit.

//	preInit
/**
	 * 	Static init
	 * 	@throws java.lang.Exception
	 */
void zkInit() throws Exception {
    form = new WMergeUI(this);
    form.appendChild(mainLayout);
    mainLayout.setHeight("100%");
    mainLayout.setWidth("100%");
    //
    South south = new South();
    mainLayout.appendChild(south);
    south.appendChild(confirmPanel);
    confirmPanel.addActionListener(this);
    //
    Rows rows = centerLayout.newRows();
    //
    CenterPanel.appendChild(centerLayout);
    Center center = new Center();
    mainLayout.appendChild(center);
    center.appendChild(CenterPanel);
    Row row = rows.newRow();
    row.appendChild(new Label());
    row.appendChild(mergeFromLabel);
    row.appendChild(mergeToLabel);
    //
    mergeFromLabel.setText(Msg.getMsg(Env.getCtx(), "MergeFrom"));
    mergeFromLabel.setStyle("font-weight: bold");
    mergeToLabel.setText(Msg.getMsg(Env.getCtx(), "MergeTo"));
    mergeToLabel.setStyle("font-weight: bold");
    //
    for (int i = 0; i < m_label.length; i++) {
        row = rows.newRow();
        row.appendChild(m_label[i]);
        row.appendChild(m_from[i].getComponent());
        row.appendChild(m_to[i].getComponent());
    }
}
Also used : Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) Label(org.adempiere.webui.component.Label) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 4 with Row

use of org.adempiere.webui.component.Row in project adempiere by adempiere.

the class WPayPrint method zkInit.

/**
	 *  Static Init
	 *  @throws Exception
	 */
private void zkInit() throws Exception {
    //
    centerPanel.appendChild(centerLayout);
    //
    bPrint.addActionListener(this);
    bExport.addActionListener(this);
    bCancel.addActionListener(this);
    //
    bProcess.setEnabled(false);
    bProcess.addActionListener(this);
    //
    lPaySelect.setText(Msg.translate(Env.getCtx(), "C_PaySelection_ID"));
    //
    lBank.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
    //
    lPaymentRule.setText(Msg.translate(Env.getCtx(), "PaymentRule"));
    fPaymentRule.addActionListener(this);
    //
    lDocumentNo.setText(Msg.translate(Env.getCtx(), "DocumentNo"));
    fDocumentNo.getComponent().setIntegral(true);
    lNoPayments.setText(Msg.getMsg(Env.getCtx(), "NoOfPayments"));
    fNoPayments.setText("0");
    lBalance.setText(Msg.translate(Env.getCtx(), "CurrentBalance"));
    fBalance.setReadWrite(false);
    fBalance.getComponent().setIntegral(false);
    lCurrency.setText(Msg.translate(Env.getCtx(), "C_Currency_ID"));
    //
    southPanel.addButton(bExport);
    southPanel.addButton(bPrint);
    southPanel.addButton(bProcess);
    //
    Rows rows = centerLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(lPaySelect.rightAlign());
    row.appendChild(paySelectSearch.getComponent());
    row = rows.newRow();
    row.appendChild(lBank.rightAlign());
    row.appendChild(fBank);
    row.appendChild(lBalance.rightAlign());
    row.appendChild(fBalance.getComponent());
    row = rows.newRow();
    row.appendChild(lPaymentRule.rightAlign());
    row.appendChild(fPaymentRule);
    row.appendChild(lCurrency.rightAlign());
    row.appendChild(fCurrency);
    row = rows.newRow();
    row.appendChild(lDocumentNo.rightAlign());
    row.appendChild(fDocumentNo.getComponent());
    row.appendChild(lNoPayments.rightAlign());
    row.appendChild(fNoPayments);
    southPanel.getButton(ConfirmPanel.A_OK).setVisible(false);
}
Also used : Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 5 with Row

use of org.adempiere.webui.component.Row in project adempiere by adempiere.

the class WFactReconcile method initLayout.

//  initComponents
/**
	 *  Initialize the form structure
	 *  - Load Bank Info
	 *  - Load BPartner
	 *  - Load Document Type
	 *  - Init Table
	 */
private void initLayout() {
    setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
    setBorder("none");
    setWidth("100%");
    setHeight("100%");
    setStyle("position: absolute");
    miniTable.setAttribute("zk_component_ID", "Lookup_Data_SearchResults");
    miniTable.setVflex(true);
    //  Define the criteria rows and grid  
    Rows rows = new Rows();
    //
    Row row = new Row();
    rows.appendChild(row);
    row.setSpans("1, 1, 1, 1");
    row.appendChild(labelAcctSchema.rightAlign());
    row.appendChild(fieldAcctSchema.getComponent());
    row.appendChild(labelBPartner.rightAlign());
    row.appendChild(fieldBPartner.getComponent());
    //
    row = new Row();
    rows.appendChild(row);
    row.setSpans("1, 1, 1, 1");
    row.appendChild(labelOrg.rightAlign());
    row.appendChild(fieldOrg.getComponent());
    row.appendChild(labelProduct.rightAlign());
    row.appendChild(fieldProduct.getComponent());
    //
    row = new Row();
    rows.appendChild(row);
    row.setSpans("1, 1, 1, 1");
    row.appendChild(labelAccount.rightAlign());
    row.appendChild(fieldAccount.getComponent());
    row.appendChild(new Space());
    row.appendChild(isReconciled);
    //
    row = new Row();
    rows.appendChild(row);
    row.setSpans("1, 1, 1, 1");
    row.appendChild(labelDateAcct.rightAlign());
    Hbox hbox = new Hbox();
    hbox.appendChild(fieldDateAcct);
    hbox.appendChild(labelDateAcct2);
    hbox.appendChild(fieldDateAcct2);
    row.appendChild(hbox);
    //
    parameterGrid.appendChild(rows);
    //
    Center center = new Center();
    center.setBorder("0");
    center.appendChild(parameterGrid);
    Hbox btnBox = new Hbox();
    btnBox.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
    btnBox.appendChild(bRefresh);
    btnBox.setHeight("100%");
    West west = new West();
    west.setBorder("0");
    west.appendChild(btnBox);
    parameterPanel.appendChild(center);
    parameterPanel.appendChild(west);
    parameterPanel.setHeight("100px");
    //
    North north = new North();
    north.appendChild(parameterPanel);
    mainPanel.appendChild(north);
    //
    center = new Center();
    center.appendChild(miniTable);
    mainPanel.appendChild(center);
    //  Setup the command buttons
    pnlBtnLeft = new Panel();
    pnlBtnLeft.setAlign("left");
    pnlBtnLeft.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
    pnlBtnLeft.appendChild(bZoom);
    //
    pnlBtnRight = new Panel();
    pnlBtnRight.setAlign("right");
    pnlBtnRight.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
    pnlBtnRight.appendChild(bGenerate);
    pnlBtnRight.appendChild(bReset);
    pnlBtnRight.appendChild(bCancel);
    //
    pnlTextCenter = new Panel();
    pnlTextCenter.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
    pnlTextCenter.setAlign("center");
    pnlTextCenter.appendChild(differenceLabel);
    pnlTextCenter.appendChild(differenceField);
    //
    hboxBtnRight = new Hbox();
    hboxBtnRight.appendChild(pnlBtnRight);
    hboxBtnRight.setWidth("100%");
    hboxBtnRight.setStyle("text-align:right");
    //
    hboxBtnLeft = new Hbox();
    hboxBtnLeft.appendChild(pnlBtnLeft);
    hboxBtnLeft.setWidth("100%");
    hboxBtnLeft.setStyle("text-align:left");
    //
    hboxTextCenter = new Hbox();
    hboxTextCenter.appendChild(pnlTextCenter);
    hboxTextCenter.setWidth("100%");
    hboxTextCenter.setHeight("100%");
    hboxTextCenter.setPack("center");
    hboxTextCenter.setStyle("text-align:Center");
    //
    commandPane = new Hbox();
    commandPane.appendChild(hboxBtnLeft);
    commandPane.appendChild(hboxTextCenter);
    commandPane.appendChild(hboxBtnRight);
    commandPane.setWidth("100%");
    commandPane.setPack("center");
    //
    commandPanel.setHeight("70px");
    commandPanel.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
    commandPanel.setWidth("100%");
    center = new Center();
    center.appendChild(commandPane);
    center.setBorder("0");
    commandPanel.appendChild(center);
    South south = new South();
    south.appendChild(statusBar);
    south.setBorder("0");
    commandPanel.appendChild(south);
    south = new South();
    south.appendChild(commandPanel);
    south.setBorder("0");
    mainPanel.appendChild(south);
    //  Add everything to the form 
    this.appendChild(mainPanel);
}
Also used : Space(org.zkoss.zul.Space) Hbox(org.zkoss.zul.Hbox) Panel(org.adempiere.webui.component.Panel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) StatusBarPanel(org.adempiere.webui.panel.StatusBarPanel) Center(org.zkoss.zul.Center) West(org.zkoss.zul.West) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Aggregations

Row (org.adempiere.webui.component.Row)79 Rows (org.adempiere.webui.component.Rows)69 Label (org.adempiere.webui.component.Label)29 Grid (org.adempiere.webui.component.Grid)24 Panel (org.adempiere.webui.component.Panel)20 Div (org.zkoss.zul.Div)18 Center (org.zkoss.zul.Center)15 Hbox (org.zkoss.zul.Hbox)15 Space (org.zkoss.zul.Space)14 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)12 Center (org.zkoss.zkex.zul.Center)11 Separator (org.zkoss.zul.Separator)11 North (org.zkoss.zkex.zul.North)10 Borderlayout (org.zkoss.zul.Borderlayout)9 North (org.zkoss.zul.North)9 South (org.zkoss.zkex.zul.South)8 South (org.zkoss.zul.South)8 Caption (org.zkoss.zul.Caption)6 Listbox (org.adempiere.webui.component.Listbox)5 WSearchEditor (org.adempiere.webui.editor.WSearchEditor)5