Search in sources :

Example 11 with ConfirmPanel

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

the class WBOMDrop method initForm.

/**
	 *	Initialize Panel
	 *  @param WindowNo window
	 *  @param frame parent frame
	 */
protected void initForm() {
    log.info("");
    try {
        confirmPanel = new ConfirmPanel(true);
        //	Top Selection Panel
        createSelectionPanel(true, true, true);
        //	Center
        createMainPanel();
        confirmPanel.addActionListener(Events.ON_CLICK, this);
    } catch (Exception e) {
        log.log(Level.SEVERE, "", e);
    }
//sizeIt();
}
Also used : ConfirmPanel(org.adempiere.webui.component.ConfirmPanel)

Example 12 with ConfirmPanel

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

the class WDocActionPanel method initComponents.

private void initComponents() {
    lblDocAction = new Label();
    lblDocAction.setId("lblDocAction");
    lblDocAction.setValue(Msg.translate(Env.getCtx(), "DocAction"));
    label = new Label();
    label.setId("label");
    lstDocAction = new Listbox();
    lstDocAction.setId("lstDocAction");
    lstDocAction.setRows(0);
    lstDocAction.setMold("select");
    lstDocAction.setWidth("100px");
    lstDocAction.addEventListener(Events.ON_SELECT, this);
    confirmPanel = new ConfirmPanel(true);
    confirmPanel.addActionListener(Events.ON_CLICK, this);
}
Also used : ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Label(org.zkoss.zul.Label) Listbox(org.zkoss.zul.Listbox)

Example 13 with ConfirmPanel

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

the class RolePanel method init.

private void init() {
    //this.setContentSclass(ITheme.LOGIN_WINDOW_CLASS);
    Div div = new Div();
    ThemeUtils.addSclass("ad-rolepanel-header", div);
    //TODO - localization
    Label label = new Label("Login");
    ThemeUtils.addSclass("ad-rolepanel-header-text", label);
    div.appendChild(label);
    this.appendChild(div);
    Table table = new Table();
    table.setId("grdChooseRole");
    ThemeUtils.addSclass("ad-rolepanel-body", table);
    this.appendChild(table);
    Tr tr = new Tr();
    table.appendChild(tr);
    Td td = new Td();
    ThemeUtils.addSclass("ad-rolepanel-header-logo", td);
    tr.appendChild(td);
    td.setDynamicProperty("colspan", "2");
    Image image = new Image();
    image.setSrc(ThemeUtils.getLargeLogo());
    ThemeUtils.addSclass("ad-rolepanel-header-logo", image);
    td.appendChild(image);
    tr = new Tr();
    tr.setId("rowRole");
    table.appendChild(tr);
    td = new Td();
    tr.appendChild(td);
    ThemeUtils.addSclass("login-label", td);
    td.appendChild(lblRole.rightAlign());
    td = new Td();
    ThemeUtils.addSclass("login-field", td);
    tr.appendChild(td);
    td.appendChild(lstRole);
    tr = new Tr();
    tr.setId("rowclient");
    table.appendChild(tr);
    td = new Td();
    tr.appendChild(td);
    ThemeUtils.addSclass("login-label", td);
    td.appendChild(lblClient.rightAlign());
    td = new Td();
    ThemeUtils.addSclass("login-field", td);
    tr.appendChild(td);
    td.appendChild(lstClient);
    tr = new Tr();
    tr.setId("rowOrganisation");
    table.appendChild(tr);
    td = new Td();
    tr.appendChild(td);
    ThemeUtils.addSclass("login-label", td);
    td.appendChild(lblOrganisation.rightAlign());
    td = new Td();
    ThemeUtils.addSclass("login-field", td);
    tr.appendChild(td);
    td.appendChild(lstOrganisation);
    tr = new Tr();
    tr.setId("rowWarehouse");
    table.appendChild(tr);
    td = new Td();
    tr.appendChild(td);
    ThemeUtils.addSclass("login-label", td);
    td.appendChild(lblWarehouse.rightAlign());
    td = new Td();
    ThemeUtils.addSclass("login-field", td);
    tr.appendChild(td);
    td.appendChild(lstWarehouse);
    div = new Div();
    ThemeUtils.addSclass("ad-rolepanel-footer", div);
    ConfirmPanel pnlButtons = new ConfirmPanel(true);
    pnlButtons.addActionListener(this);
    ThemeUtils.addSclass("ad-rolepanel-footer-pnl", pnlButtons);
    pnlButtons.getButton(ConfirmPanel.A_OK).setSclass("login-btn");
    pnlButtons.getButton(ConfirmPanel.A_CANCEL).setSclass("login-btn");
    div.appendChild(pnlButtons);
    this.appendChild(div);
}
Also used : Div(org.zkoss.zul.Div) Td(org.zkoss.zhtml.Td) Table(org.zkoss.zhtml.Table) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Label(org.adempiere.webui.component.Label) Image(org.zkoss.zul.Image) Tr(org.zkoss.zhtml.Tr)

Example 14 with ConfirmPanel

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

the class WHRActionNotice method zkInit.

/**
	 * Static Init
	 * 
	 * @throws Exception
	 */
private void zkInit() throws Exception {
    form.setWidth("99%");
    form.setHeight("100%");
    form.setStyle("position: absolute; padding: 0; margin: 0");
    form.appendChild(mainLayout);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setStyle("position: absolute");
    // Process
    labelProcess.setText(Msg.translate(Env.getCtx(), "HR_Process_ID"));
    fieldProcess.addEventListener(Events.ON_SELECT, this);
    // BPartner
    labelBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
    fieldEmployee.addEventListener(Events.ON_SELECT, this);
    // Date
    labelValidFrom.setText(Msg.translate(Env.getCtx(), "Date"));
    fieldValidFrom.addValueChangeListener(this);
    // Concept
    labelConcept.setText(Msg.translate(Env.getCtx(), "HR_Concept_ID"));
    fieldConcept.addEventListener(Events.ON_SELECT, this);
    // Concept's
    labelColumnType.setText(Msg.translate(Env.getCtx(), "ColumnType"));
    labelDescription.setText(Msg.translate(Env.getCtx(), "Description"));
    fieldDate.setVisible(false);
    fieldDate.addValueChangeListener(this);
    fieldQty.setVisible(false);
    fieldQty.addValueChangeListener(this);
    fieldAmount.setVisible(false);
    fieldAmount.addValueChangeListener(this);
    fieldText.setVisible(false);
    fieldText.addValueChangeListener(this);
    fieldDescription.addValueChangeListener(this);
    fieldColumnType.setReadWrite(false);
    ConfirmPanel panel = new ConfirmPanel(false, false, false, false, false, false, false);
    bOk = panel.createButton(ConfirmPanel.A_OK);
    bOk.addActionListener(this);
    North north = new North();
    north.setStyle("border: none");
    mainLayout.appendChild(north);
    north.appendChild(parameterPanel);
    Rows rows = new Rows();
    rows.setParent(parameterPanel);
    Row row = rows.newRow();
    row.appendChild(labelProcess.rightAlign());
    row.appendChild(fieldProcess);
    fieldProcess.setWidth("100%");
    row.appendChild(labelBPartner.rightAlign());
    row.appendChild(fieldEmployee);
    fieldEmployee.setWidth("100%");
    row = rows.newRow();
    row.appendChild(labelValidFrom.rightAlign());
    row.appendChild(fieldValidFrom.getComponent());
    row.appendChild(labelConcept.rightAlign());
    row.appendChild(fieldConcept);
    fieldConcept.setWidth("100%");
    row = rows.newRow();
    //  Add div for Qty-Amount-Date-Text-RuleEngine
    Div div = new Div();
    row.appendChild(labelColumnType.rightAlign());
    row.appendChild(fieldColumnType.getComponent());
    row.appendChild(new Space());
    div.appendChild(fieldDate.getComponent());
    div.appendChild(fieldQty.getComponent());
    div.appendChild(fieldAmount.getComponent());
    div.appendChild(fieldText.getComponent());
    div.appendChild(fieldTextLookup);
    row.appendChild(div);
    fieldDate.fillHorizontal();
    fieldQty.fillHorizontal();
    fieldAmount.fillHorizontal();
    fieldText.fillHorizontal();
    fieldValidFrom.fillHorizontal();
    fieldTextLookup.setWidth("100%");
    //	End Yamel Senih
    row = rows.newRow();
    row.appendChild(labelDescription.rightAlign());
    row.appendChild(fieldDescription.getComponent());
    row.appendChild(new Space());
    row.appendChild(bOk);
    //	
    Center center = new Center();
    center.setFlex(true);
    center.appendChild(miniTable);
    mainLayout.appendChild(center);
    miniTable.setVflex(true);
    miniTable.setFixedLayout(true);
    miniTable.setWidth("99%");
    miniTable.setHeight("99%");
    configureMiniTable();
}
Also used : Div(org.zkoss.zul.Div) Space(org.zkoss.zul.Space) Center(org.zkoss.zkex.zul.Center) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 15 with ConfirmPanel

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

the class WWFPanelManufacturing method initForm.

@Override
protected void initForm() {
    this.setHeight("100%");
    Borderlayout layout = new Borderlayout();
    layout.setStyle("width: 100%; height: 100%; position: absolute;");
    appendChild(layout);
    String sql = MRole.getDefault().addAccessSQL("SELECT AD_Workflow_ID, Name FROM AD_Workflow WHERE " + WF_WhereClause + " ORDER BY 2", "AD_Workflow", MRole.SQL_NOTQUALIFIED, //	all
    MRole.SQL_RO);
    KeyNamePair[] pp = DB.getKeyNamePairs(sql, true);
    workflowList = ListboxFactory.newDropdownListbox();
    for (KeyNamePair knp : pp) {
        workflowList.addItem(knp);
    }
    workflowList.addEventListener(Events.ON_SELECT, this);
    North north = new North();
    layout.appendChild(north);
    north.appendChild(workflowList);
    workflowList.setStyle("margin-left: 10px; margin-top: 5px;");
    north.setHeight("30px");
    imageMap = new Imagemap();
    Center center = new Center();
    layout.appendChild(center);
    center.setAutoscroll(true);
    //		center.setFlex(true);
    center.appendChild(imageMap);
    ConfirmPanel confirmPanel = new ConfirmPanel(true);
    confirmPanel.addActionListener(this);
    South south = new South();
    layout.appendChild(south);
    south.appendChild(confirmPanel);
    south.setHeight("36px");
}
Also used : Center(org.zkoss.zul.Center) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) KeyNamePair(org.compiere.util.KeyNamePair) Imagemap(org.zkoss.zul.Imagemap)

Aggregations

ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)22 Center (org.zkoss.zkex.zul.Center)9 Rows (org.adempiere.webui.component.Rows)8 North (org.zkoss.zkex.zul.North)8 Panel (org.adempiere.webui.component.Panel)7 Row (org.adempiere.webui.component.Row)7 Div (org.zkoss.zul.Div)7 Label (org.adempiere.webui.component.Label)6 South (org.zkoss.zkex.zul.South)6 South (org.zkoss.zul.South)6 Grid (org.adempiere.webui.component.Grid)5 Borderlayout (org.zkoss.zul.Borderlayout)5 Center (org.zkoss.zul.Center)5 North (org.zkoss.zul.North)5 Separator (org.zkoss.zul.Separator)5 Borderlayout (org.adempiere.webui.component.Borderlayout)3 Button (org.adempiere.webui.component.Button)3 WAppsAction (org.adempiere.webui.component.WAppsAction)3 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)3 Space (org.zkoss.zul.Space)3