use of org.zkoss.zul.Separator in project adempiere by adempiere.
the class WPOSBPartner 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));
label.setStyle(WPOS.FONTSIZESMALL);
hbox.appendChild(label.rightAlign());
hbox.appendChild(field);
centerPanel.appendChild(hbox);
centerPanel.appendChild(new Separator());
return label;
}
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);
}
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%");
}
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;
}
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);
}
Aggregations