Search in sources :

Example 21 with Separator

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

the class WBPartner method createLine.

//	initBPartner
/**
	 * 	Create Line
	 * 	@param field 	field
	 * 	@param title	label value
	 * 	@param addSpace	add more space
	 * 	@return label
	 */
private Label createLine(Component field, String title, boolean addSpace) {
    Hbox hbox = new Hbox();
    hbox.setWidth("100%");
    hbox.setWidths("30%, 70%");
    Label label = new Label(Msg.translate(Env.getCtx(), title));
    hbox.appendChild(label);
    hbox.appendChild(field);
    centerPanel.appendChild(hbox);
    centerPanel.appendChild(new Separator());
    return label;
}
Also used : Hbox(org.zkoss.zul.Hbox) Label(org.adempiere.webui.component.Label) Separator(org.zkoss.zul.Separator)

Example 22 with Separator

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

the class WPaySelect method zkInit.

//	init
/**
	 *  Static Init
	 *  @throws Exception
	 */
private void zkInit() throws Exception {
    //
    form.appendChild(mainPanel);
    mainPanel.appendChild(mainLayout);
    mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
    mainLayout.setHeight("100%");
    mainLayout.setWidth("99%");
    parameterPanel.appendChild(parameterLayout);
    //
    labelBankAccount.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
    fieldBankAccount.addActionListener(this);
    fieldBankAccount.setAttribute("zk_component_ID", "Lookup_Criteria_C_BankAccount_ID");
    fieldBankAccount.setAttribute("zk_component_prefix", "Lookup_");
    fieldBankAccount.setAttribute("IsDynamic", "False");
    fieldBankAccount.setAttribute("fieldName", "fieldBankAccount");
    fieldBankAccount.setWidth("200px");
    //
    labelBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
    fieldBPartner.addValueChangeListener(this);
    fieldBPartner.getComponent().setAttribute("zk_component_ID", "Lookup_Criteria_C_BPartner_ID");
    fieldBPartner.getComponent().setAttribute("zk_component_prefix", "Lookup_");
    fieldBPartner.getComponent().setAttribute("IsDynamic", "False");
    fieldBPartner.getComponent().setAttribute("fieldName", "fieldBPartner");
    fieldBPartner.getComponent().setWidth("200px");
    //
    bRefresh.addActionListener(this);
    //
    labelPayDate.setText(Msg.translate(Env.getCtx(), "PayDate"));
    fieldPayDate.addValueChangeListener(this);
    fieldPayDate.getComponent().setAttribute("zk_component_ID", "Lookup_Criteria_PayDate");
    fieldPayDate.getComponent().setAttribute("zk_component_prefix", "Lookup_");
    fieldPayDate.getComponent().setAttribute("IsDynamic", "False");
    fieldPayDate.getComponent().setAttribute("fieldName", "fieldPayDate");
    fieldPayDate.getComponent().setWidth("200px");
    //
    labelPaymentRule.setText(Msg.translate(Env.getCtx(), "PaymentRule"));
    fieldPaymentRule.addActionListener(this);
    fieldPaymentRule.setAttribute("zk_component_ID", "Lookup_Criteria_PaymentRule");
    fieldPaymentRule.setAttribute("zk_component_prefix", "Lookup_");
    fieldPaymentRule.setAttribute("IsDynamic", "False");
    fieldPaymentRule.setAttribute("fieldName", "fieldPaymentRule");
    fieldPaymentRule.setWidth("200px");
    //
    labelDtype.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
    fieldDtype.addActionListener(this);
    fieldDtype.setAttribute("zk_component_ID", "Lookup_Criteria_C_DocType_ID");
    fieldDtype.setAttribute("zk_component_prefix", "Lookup_");
    fieldDtype.setAttribute("IsDynamic", "False");
    fieldDtype.setAttribute("fieldName", "fieldDtype");
    //
    labelBankBalance.setText(Msg.translate(Env.getCtx(), "CurrentBalance"));
    labelBalance.setText("0");
    labelBalance.setAttribute("zk_component_ID", "Lookup_Criteria_CurrentBalance");
    labelBalance.setAttribute("zk_component_prefix", "Lookup_");
    labelBalance.setAttribute("IsDynamic", "False");
    labelBalance.setAttribute("fieldName", "labelBalance");
    //
    onlyDue.setText(Msg.getMsg(Env.getCtx(), "OnlyDue"));
    onlyDue.addActionListener(this);
    onlyDue.setAttribute("zk_component_ID", "Lookup_Criteria_OnlyDue");
    onlyDue.setAttribute("fieldName", "onlyDue");
    onlyDue.setName("OnlyDue");
    onlyDue.setTooltiptext(Msg.getMsg(Env.getCtx(), "OnlyDue"));
    //
    checkAutoQuery.setText(Msg.getMsg(Env.getCtx(), "AutoRefresh"));
    checkAutoQuery.addActionListener(this);
    checkAutoQuery.setAttribute("zk_component_ID", "Lookup_Criteria_AutoRefresh");
    checkAutoQuery.setName("AutoQuery");
    checkAutoQuery.setSelected(MSysConfig.getValue(SYSCONFIG_INFO_AUTO_QUERY, "Y", Env.getAD_Client_ID(Env.getCtx())).equals("Y"));
    //
    dataStatus.setText(" ");
    dataStatus.setPre(true);
    dataStatus.setAttribute("zk_component_ID", "Lookup_Criteria_DataStatus");
    dataStatus.setAttribute("zk_component_prefix", "Lookup_");
    dataStatus.setAttribute("IsDynamic", "False");
    dataStatus.setAttribute("fieldName", "dataStatus");
    //
    bGenerate.addActionListener(this);
    bCancel.addActionListener(this);
    //
    North north = new North();
    north.setStyle("border: none");
    mainLayout.appendChild(north);
    north.appendChild(parameterPanel);
    //
    Rows rows = parameterLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(labelBankAccount.rightAlign());
    row.appendChild(fieldBankAccount);
    row.appendChild(labelBankBalance.rightAlign());
    Panel balancePanel = new Panel();
    balancePanel.appendChild(labelCurrency);
    balancePanel.appendChild(labelBalance);
    row.appendChild(balancePanel);
    row.appendChild(new Space());
    //
    row = rows.newRow();
    row.appendChild(labelBPartner.rightAlign());
    row.appendChild(fieldBPartner.getComponent());
    row.appendChild(new Space());
    row.appendChild(new Space());
    row.appendChild(new Space());
    //
    row = rows.newRow();
    row.appendChild(labelDtype.rightAlign());
    row.appendChild(fieldDtype);
    row.appendChild(labelPaymentRule.rightAlign());
    row.appendChild(fieldPaymentRule);
    row.appendChild(checkAutoQuery);
    //
    row = rows.newRow();
    row.appendChild(labelPayDate.rightAlign());
    row.appendChild(fieldPayDate.getComponent());
    row.appendChild(new Space());
    row.appendChild(onlyDue);
    row.appendChild(bRefresh);
    //
    commandPanel.addButton(bGenerate);
    commandPanel.getButton(ConfirmPanel.A_OK).setVisible(false);
    //
    southPanel = new Panel();
    southPanel.appendChild(dataStatus);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(commandPanel);
    //
    South south = new South();
    south.setStyle("border: none");
    mainLayout.appendChild(south);
    south.appendChild(southPanel);
    //
    Center center = new Center();
    mainLayout.appendChild(center);
    center.appendChild(miniTable);
}
Also used : Space(org.zkoss.zul.Space) Panel(org.adempiere.webui.component.Panel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.adempiere.webui.component.Row) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Example 23 with Separator

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

the class WCreateFromWindow method zkInit.

protected void zkInit() throws Exception {
    Borderlayout contentPane = new Borderlayout();
    appendChild(contentPane);
    North north = new North();
    contentPane.appendChild(north);
    north.appendChild(parameterPanel);
    Center center = new Center();
    contentPane.appendChild(center);
    center.appendChild(dataTable);
    WAppsAction selectAllAction = new WAppsAction(SELECT_ALL, null, null);
    Button selectAllButton = selectAllAction.getButton();
    confirmPanel.addComponentsLeft(selectAllButton);
    selectAllButton.addActionListener(this);
    South south = new South();
    contentPane.appendChild(south);
    Panel southPanel = new Panel();
    south.appendChild(southPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(confirmPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(statusBar);
    setWidth("750px");
    setHeight("550px");
    setSizable(true);
    setBorder("normal");
    contentPane.setWidth("100%");
    contentPane.setHeight("100%");
}
Also used : ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) StatusBarPanel(org.adempiere.webui.panel.StatusBarPanel) Panel(org.adempiere.webui.component.Panel) Center(org.zkoss.zul.Center) Button(org.adempiere.webui.component.Button) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) WAppsAction(org.adempiere.webui.component.WAppsAction) Separator(org.zkoss.zul.Separator)

Example 24 with Separator

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

the class AboutWindow method createAbout.

private Tabpanel createAbout() {
    Tabpanel tabPanel = new Tabpanel();
    Vbox vbox = new Vbox();
    vbox.setWidth("100%");
    vbox.setHeight("100%");
    vbox.setAlign("center");
    vbox.setPack("center");
    vbox.setParent(tabPanel);
    Image image = new Image(ThemeManager.getSmallLogo());
    image.setParent(vbox);
    Text text = new Text(Adempiere.getSubtitle());
    text.setParent(vbox);
    Separator separator = new Separator();
    separator.setParent(vbox);
    text = new Text(Adempiere.getVersion());
    text.setParent(vbox);
    separator = new Separator();
    separator.setParent(vbox);
    ToolBarButton link = new ToolBarButton();
    link.setLabel("Github Project Site");
    link.setHref("http://github.com/adempiere");
    link.setTarget("_blank");
    link.setParent(vbox);
    separator = new Separator();
    separator.setParent(vbox);
    link = new ToolBarButton();
    link.setLabel("ADempiere.io");
    link.setHref("http://www.adempiere.io");
    link.setTarget("_blank");
    link.setParent(vbox);
    separator = new Separator();
    separator.setParent(vbox);
    link = new ToolBarButton();
    link.setLabel("ADempiere.net");
    link.setHref("http://www.adempiere.net");
    link.setTarget("_blank");
    link.setParent(vbox);
    separator = new Separator();
    separator.setParent(vbox);
    link = new ToolBarButton();
    link.setLabel("ADempiere Wiki");
    link.setHref("http://wiki.adempiere.net");
    link.setTarget("_blank");
    link.setParent(vbox);
    return tabPanel;
}
Also used : ToolBarButton(org.adempiere.webui.component.ToolBarButton) Text(org.zkoss.zhtml.Text) Image(org.zkoss.zul.Image) Tabpanel(org.adempiere.webui.component.Tabpanel) Vbox(org.zkoss.zul.Vbox) Separator(org.zkoss.zul.Separator)

Example 25 with Separator

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

the class WTextEditorDialog method init.

private void init() {
    setBorder("normal");
    VerticalBox vbox = new VerticalBox();
    appendChild(vbox);
    tabbox = new Tabbox();
    vbox.appendChild(tabbox);
    Tabs tabs = new Tabs();
    tabbox.appendChild(tabs);
    Tabpanels tabPanels = new Tabpanels();
    tabbox.appendChild(tabPanels);
    Tab tab = new Tab("Text");
    tabs.appendChild(tab);
    Tabpanel tabPanel = new Tabpanel();
    tabPanels.appendChild(tabPanel);
    textBox = new Textbox(text);
    textBox.setCols(80);
    textBox.setRows(30);
    textBox.setEnabled(editable);
    textBox.setWidth("700px");
    textBox.setHeight("500px");
    tabPanel.appendChild(textBox);
    tab = new Tab("HTML");
    tabs.appendChild(tab);
    tabPanel = new Tabpanel();
    tabPanels.appendChild(tabPanel);
    if (editable) {
        editor = new FCKeditor();
        tabPanel.appendChild(editor);
        editor.setWidth("700px");
        editor.setHeight("500px");
        editor.setValue(text);
    } else {
        Div div = new Div();
        div.setHeight("500px");
        div.setWidth("700px");
        div.setStyle("overflow: auto; border: 1px solid");
        tabPanel.appendChild(div);
        Html html = new Html();
        div.appendChild(html);
        html.setContent(text);
    }
    vbox.appendChild(new Separator());
    ConfirmPanel confirmPanel = new ConfirmPanel(true);
    vbox.appendChild(confirmPanel);
    confirmPanel.addButton(confirmPanel.createButton(ConfirmPanel.A_RESET));
    confirmPanel.addActionListener(this);
    if (maxSize > 0) {
        status = new Label();
        appendChild(status);
        updateStatus(text.length());
        status.setStyle("margin-top:10px;");
        textBox.addEventListener(Events.ON_CHANGE, this);
        editor.addEventListener(Events.ON_CHANGE, this);
    }
    tabbox.addEventListener(Events.ON_SELECT, this);
}
Also used : VerticalBox(org.adempiere.webui.component.VerticalBox) Textbox(org.adempiere.webui.component.Textbox) Label(org.adempiere.webui.component.Label) Html(org.zkoss.zul.Html) Tabbox(org.adempiere.webui.component.Tabbox) Div(org.zkoss.zul.Div) Tab(org.adempiere.webui.component.Tab) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Tabpanels(org.adempiere.webui.component.Tabpanels) Tabs(org.adempiere.webui.component.Tabs) Tabpanel(org.adempiere.webui.component.Tabpanel) Separator(org.zkoss.zul.Separator) FCKeditor(org.zkforge.fckez.FCKeditor)

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