Search in sources :

Example 1 with Separator

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

the class WStocktake method zkInit.

//	init
/**
	 *  Static Init
	 *  @throws Exception
	 */
void zkInit() throws Exception {
    form.appendChild(mainPanel);
    mainPanel.setStyle("width: 99%; height: 100%; border: none; padding: 0; margin: 0");
    mainPanel.appendChild(mainLayout);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    parameterPanel.appendChild(parameterLayout);
    //
    inventoryLabel.setText(Msg.translate(Env.getCtx(), "M_Inventory_ID"));
    locatorLabel.setText(Msg.translate(Env.getCtx(), "M_Locator_ID"));
    productLabel.setText(Msg.translate(Env.getCtx(), "M_Product_ID"));
    lineFLabel.setText(Msg.translate(Env.getCtx(), "Line") + " " + Msg.translate(Env.getCtx(), "From"));
    lineTLabel.setText(Msg.translate(Env.getCtx(), "Line") + " " + Msg.translate(Env.getCtx(), "To"));
    aislexLabel.setText(Msg.translate(Env.getCtx(), "X"));
    //
    North north = new North();
    mainLayout.appendChild(north);
    north.appendChild(parameterPanel);
    Rows rows = parameterLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(inventoryLabel.rightAlign());
    row.appendChild(inventoryField.getComponent());
    row.appendChild(lineFLabel.rightAlign());
    row.appendChild(lineFField.getComponent());
    row.appendChild(lineTLabel.rightAlign());
    row.appendChild(lineTField.getComponent());
    row.appendChild(secondCount);
    row = rows.newRow();
    row.appendChild(aislexLabel.rightAlign());
    row.appendChild(aislexField.getComponent());
    row.appendChild(productLabel.rightAlign());
    row.appendChild(productField.getComponent());
    row.appendChild(locatorLabel.rightAlign());
    row.appendChild(locatorField.getComponent());
    //
    secondCount.setText(Msg.getMsg(Env.getCtx(), "Second Count"));
    secondCount.addActionListener(this);
    confirmPanel.getButton(ConfirmPanel.A_CUSTOMIZE).setLabel(Msg.translate(Env.getCtx(), "CountEntered"));
    southPanel.appendChild(confirmPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(statusBar);
    South south = new South();
    south.setStyle("border: none");
    mainLayout.appendChild(south);
    south.appendChild(southPanel);
    LayoutUtils.addSclass("status-border", statusBar);
}
Also used : South(org.zkoss.zkex.zul.South) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Example 2 with Separator

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

the class WTrxMaterial method zkInit.

//	init
/**
	 *  Static Init
	 *  @throws Exception
	 */
void zkInit() throws Exception {
    form.appendChild(mainPanel);
    mainPanel.setStyle("width: 99%; height: 100%; border: none; padding: 0; margin: 0");
    mainPanel.appendChild(mainLayout);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    parameterPanel.appendChild(parameterLayout);
    //
    orgLabel.setText(Msg.translate(Env.getCtx(), "AD_Org_ID"));
    locatorLabel.setText(Msg.translate(Env.getCtx(), "M_Locator_ID"));
    productLabel.setText(Msg.translate(Env.getCtx(), "Product"));
    dateFLabel.setText(Msg.translate(Env.getCtx(), "DateFrom"));
    dateTLabel.setText(Msg.translate(Env.getCtx(), "DateTo"));
    mtypeLabel.setText(Msg.translate(Env.getCtx(), "MovementType"));
    //
    North north = new North();
    mainLayout.appendChild(north);
    north.appendChild(parameterPanel);
    Rows rows = parameterLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(orgLabel.rightAlign());
    row.appendChild(orgField.getComponent());
    row.appendChild(mtypeLabel.rightAlign());
    row.appendChild(mtypeField.getComponent());
    row.appendChild(dateFLabel.rightAlign());
    row.appendChild(dateFField.getComponent());
    row = rows.newRow();
    row.appendChild(locatorLabel.rightAlign());
    row.appendChild(locatorField.getComponent());
    row.appendChild(productLabel.rightAlign());
    row.appendChild(productField.getComponent());
    row.appendChild(dateTLabel.rightAlign());
    row.appendChild(dateTField.getComponent());
    //
    southPanel.appendChild(confirmPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(statusBar);
    South south = new South();
    south.setStyle("border: none");
    mainLayout.appendChild(south);
    south.appendChild(southPanel);
    LayoutUtils.addSclass("status-border", statusBar);
}
Also used : South(org.zkoss.zkex.zul.South) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Example 3 with Separator

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

the class WAlertDialog method init.

private void init() {
    setBorder("normal");
    VerticalBox vbox = new VerticalBox();
    appendChild(vbox);
    Div div = new Div();
    div.setHeight("500px");
    div.setWidth("700px");
    div.setStyle("overflow: auto; border: 1px solid");
    vbox.appendChild(div);
    Html html = new Html();
    div.appendChild(html);
    html.setContent(text);
    vbox.appendChild(new Separator());
    ConfirmPanel confirmPanel = new ConfirmPanel(false);
    vbox.appendChild(confirmPanel);
    confirmPanel.addActionListener(this);
}
Also used : Div(org.zkoss.zul.Div) VerticalBox(org.adempiere.webui.component.VerticalBox) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Html(org.zkoss.zul.Html) Separator(org.zkoss.zul.Separator)

Example 4 with Separator

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

the class WEMailDialog method jbInit.

/**
	 *	Static Init
	 */
void jbInit() throws Exception {
    lFrom.setValue(Msg.getMsg(Env.getCtx(), "From") + ":");
    lTo.setValue(Msg.getMsg(Env.getCtx(), "To") + ":");
    lCc.setValue(Msg.getMsg(Env.getCtx(), "Cc") + ":");
    lSubject.setValue(Msg.getMsg(Env.getCtx(), "Subject") + ":");
    lAttachment.setValue(Msg.getMsg(Env.getCtx(), "Attachment") + ":");
    fFrom.setReadonly(true);
    statusBar.setStatusDB(null);
    //
    Grid grid = new Grid();
    grid.setWidth("480px");
    grid.setStyle("margin:0; padding:0; position: absolute; align: center; valign: center;");
    grid.makeNoStrip();
    grid.setOddRowSclass("even");
    Rows rows = new Rows();
    grid.appendChild(rows);
    Row row = new Row();
    rows.appendChild(row);
    Div div = new Div();
    div.setAlign("right");
    div.appendChild(lFrom);
    row.appendChild(div);
    row.appendChild(fFrom);
    fFrom.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lTo);
    row.appendChild(div);
    row.appendChild(fUser.getComponent());
    fUser.getComponent().setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.appendChild(new Label(""));
    row.appendChild(fTo);
    fTo.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lCc);
    row.appendChild(div);
    row.appendChild(fCcUser.getComponent());
    fCcUser.getComponent().setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.appendChild(new Label(""));
    row.appendChild(fCc);
    fCc.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lSubject);
    row.appendChild(div);
    row.appendChild(fSubject);
    fSubject.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lAttachment);
    row.appendChild(div);
    row.appendChild(fAttachment);
    fAttachment.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(fMessage);
    fMessage.setWidth("100%");
    fMessage.setRows(10);
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(confirmPanel);
    confirmPanel.addActionListener(this);
    Borderlayout layout = new Borderlayout();
    layout.setWidth("490px");
    layout.setHeight("470px");
    layout.setStyle("background-color: white; position: absolute;");
    Center center = new Center();
    center.appendChild(grid);
    layout.appendChild(center);
    center.setStyle("background-color: white");
    South south = new South();
    south.appendChild(statusBar);
    layout.appendChild(south);
    south.setStyle("background-color: white");
    this.appendChild(layout);
}
Also used : Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) Row(org.adempiere.webui.component.Row) Borderlayout(org.zkoss.zul.Borderlayout) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Example 5 with Separator

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

the class ValuePreference method init.

/**
	 *  Static Layout
	 *  @throws Exception
	 */
private void init() throws Exception {
    //
    lAttribute.setValue(Msg.translate(m_ctx, "Attribute").replace("&", ""));
    lValue.setValue(Msg.translate(m_ctx, "Value").replace("&", ""));
    lSetFor.setValue(Msg.getMsg(m_ctx, "ValuePreferenceSetFor"));
    cbClient.setLabel(Msg.translate(m_ctx, "AD_Client_ID"));
    cbOrg.setLabel(Msg.translate(m_ctx, "AD_Org_ID"));
    cbUser.setLabel(Msg.translate(m_ctx, "AD_User_ID"));
    cbUser.setChecked(true);
    cbWindow.setLabel(Msg.translate(m_ctx, "AD_Window_ID"));
    cbWindow.setChecked(true);
    // 
    setPanel.appendChild(setLayout);
    fAttribute.setReadonly(true);
    fValue.setReadonly(true);
    Vbox box = new Vbox();
    box.setWidth("100%");
    box.setHeight("100%");
    box.setParent(this);
    box.appendChild(setPanel);
    Rows rows = new Rows();
    rows.setParent(setLayout);
    Row row = new Row();
    Div div = new Div();
    div.setSclass("label-right");
    div.appendChild(lAttribute);
    row.appendCellChild(div);
    row.appendCellChild(fAttribute, 4);
    fAttribute.setWidth("100%");
    row.appendCellChild(lAttributeValue);
    rows.appendChild(row);
    row = new Row();
    div = new Div();
    div.setSclass("label-right");
    div.appendChild(lValue);
    row.appendCellChild(div);
    row.appendCellChild(fValue, 4);
    fValue.setWidth("100%");
    row.appendCellChild(lValueValue);
    rows.appendChild(row);
    row = new Row();
    div = new Div();
    div.setSclass("label-right");
    div.appendChild(lSetFor);
    row.appendChild(div);
    row.appendChild(cbClient);
    row.appendChild(cbOrg);
    row.appendChild(cbUser);
    row.appendChild(cbWindow);
    rows.appendChild(row);
    row = new Row();
    row.appendChild(new Space());
    row.appendCellChild(lExplanation, 5);
    rows.appendChild(row);
    //
    Separator separator = new Separator();
    separator.setBar(true);
    //TODO move to theme
    separator.setHeight("20px");
    box.appendChild(separator);
    box.appendChild(confirmPanel);
    this.setBorder("normal");
    setLayout.makeNoStrip();
    setLayout.setOddRowSclass("even");
}
Also used : Div(org.zkoss.zul.Div) Space(org.zkoss.zul.Space) Row(org.adempiere.webui.component.Row) Vbox(org.zkoss.zul.Vbox) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Aggregations

Separator (org.zkoss.zul.Separator)38 Row (org.adempiere.webui.component.Row)11 Center (org.zkoss.zul.Center)11 Label (org.adempiere.webui.component.Label)10 Rows (org.adempiere.webui.component.Rows)10 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)9 Div (org.zkoss.zul.Div)9 North (org.zkoss.zul.North)9 Hbox (org.zkoss.zul.Hbox)8 South (org.zkoss.zul.South)8 Panel (org.adempiere.webui.component.Panel)7 Borderlayout (org.zkoss.zul.Borderlayout)7 North (org.zkoss.zkex.zul.North)6 South (org.zkoss.zkex.zul.South)5 Vbox (org.zkoss.zul.Vbox)5 Button (org.adempiere.webui.component.Button)4 Tabpanel (org.adempiere.webui.component.Tabpanel)4 Borderlayout (org.zkoss.zkex.zul.Borderlayout)4 Center (org.zkoss.zkex.zul.Center)4 Space (org.zkoss.zul.Space)4