use of org.zkoss.zkex.zul.North in project adempiere by adempiere.
the class WQueryBPartner method init.
/**
* Set up Panel
*/
protected void init() {
setTitle(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
Panel panel = new Panel();
setVisible(true);
Panel mainPanel = new Panel();
Grid bPartnerLayout = GridFactory.newGridLayout();
Groupbox groupPanel = new Groupbox();
Caption v_TitleBorder = new Caption(Msg.getMsg(ctx, "Query"));
// Set title window
this.setClosable(true);
// add listener on 'ENTER' key
addEventListener(Events.ON_OK, this);
appendChild(panel);
// North
northPanel = new Panel();
mainPanel.appendChild(mainLayout);
mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
mainLayout.setHeight("100%");
mainLayout.setWidth("100%");
Center center = new Center();
//
North north = new North();
north.setStyle("border: none");
mainLayout.appendChild(north);
north.appendChild(groupPanel);
groupPanel.appendChild(v_TitleBorder);
groupPanel.appendChild(bPartnerLayout);
appendChild(mainPanel);
bPartnerLayout.setWidth("100%");
Rows rows = null;
Row row = null;
rows = bPartnerLayout.newRows();
row = rows.newRow();
Label labelValue = new Label(Msg.translate(ctx, "Value"));
row.appendChild(labelValue.rightAlign());
labelValue.setStyle(WPOS.FONTSIZESMALL);
fieldValue = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldValue);
fieldValue.setWidth("120px");
fieldValue.addEventListener(this);
fieldValue.setStyle(WPOS.FONTSIZESMALL);
Label labelTaxID = new Label(Msg.translate(ctx, "TaxID"));
row.appendChild(labelTaxID.rightAlign());
labelValue.setStyle(WPOS.FONTSIZESMALL);
fieldTaxID = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldTaxID);
fieldTaxID.setWidth("120px");
fieldTaxID.addEventListener(this);
fieldTaxID.setStyle(WPOS.FONTSIZESMALL);
Label labelContact = new Label(Msg.translate(ctx, "Contact"));
row.appendChild(labelContact.rightAlign());
labelContact.setStyle(WPOS.FONTSIZESMALL);
fieldContact = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldContact);
fieldContact.setWidth("120px");
fieldContact.addEventListener(this);
fieldContact.setStyle(WPOS.FONTSIZESMALL);
Label labelPhone = new Label(Msg.translate(ctx, "Phone"));
row.appendChild(labelPhone.rightAlign());
labelPhone.setStyle(WPOS.FONTSIZESMALL);
fieldPhone = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldPhone);
fieldPhone.setWidth("120px");
fieldPhone.addEventListener(this);
fieldPhone.setStyle(WPOS.FONTSIZESMALL);
// New Line
row = rows.newRow();
Label labelName = new Label(Msg.translate(ctx, "Name"));
row.appendChild(labelName.rightAlign());
labelName.setStyle(WPOS.FONTSIZESMALL);
fieldName = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldName);
fieldName.addEventListener(this);
fieldName.setWidth("120px");
fieldName.setStyle(WPOS.FONTSIZESMALL);
Label labelName2 = new Label(Msg.translate(ctx, "Name2"));
row.appendChild(labelName2.rightAlign());
labelName2.setStyle(WPOS.FONTSIZESMALL);
fieldName2 = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldName2);
fieldName2.addEventListener(this);
fieldName2.setWidth("120px");
fieldName2.setStyle(WPOS.FONTSIZESMALL);
//
Label labelEmail = new Label(Msg.translate(ctx, "Email"));
row.appendChild(labelEmail.rightAlign());
labelEmail.setStyle(WPOS.FONTSIZESMALL);
fieldEmail = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldEmail);
fieldEmail.addEventListener(this);
fieldEmail.setWidth("120px");
fieldEmail.setStyle(WPOS.FONTSIZESMALL);
//
Label labelCity = new Label(Msg.translate(ctx, "City"));
row.appendChild(labelCity.rightAlign());
labelCity.setStyle(WPOS.FONTSIZESMALL);
fieldCity = new WPOSTextField(null, posPanel.getKeyboard());
fieldCity.setWidth("120px");
row.appendChild(fieldCity);
fieldCity.addEventListener("onFocus", this);
fieldCity.setStyle(WPOS.FONTSIZESMALL);
posTable = ListboxFactory.newDataTable();
posTable.prepareTable(columnInfos, "C_Order", "C_POS_ID = " + posPanel.getC_POS_ID(), false, "C_Order");
center = new Center();
center.setStyle("border: none");
posTable.setWidth("100%");
posTable.setHeight("99%");
posTable.addActionListener(this);
center.appendChild(posTable);
mainLayout.appendChild(center);
posTable.setClass("Table-OrderLine");
posTable.autoSize();
posTable.addEventListener(Events.ON_DOUBLE_CLICK, this);
addNewAction();
}
use of org.zkoss.zkex.zul.North 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);
}
use of org.zkoss.zkex.zul.North 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);
}
use of org.zkoss.zkex.zul.North in project adempiere by adempiere.
the class WDeleteSelection method initComponents.
/**
* Init components
*/
private void initComponents() {
container = new Window();
container.setTitle(Msg.getMsg(Env.getCtx(), "DeleteSelection"));
container.setAttribute("modal", Boolean.TRUE);
container.setWidth("500px");
container.setHeight("400px");
container.setBorder("normal");
container.setSizable(true);
container.setClosable(true);
container.setMaximizable(true);
// Init list
listbox = new Listbox();
// FR [ 2877111 ]
Vector<String> data = getData();
for (int i = 0; i < data.size(); i++) {
String record = data.get(i);
listbox.appendItem(record, record);
}
// Is a multiple selection
listbox.setMultiple(true);
// Instance Panel
confirmPanel = new ConfirmPanel(true);
//
Div div = new Div();
div.setStyle("width: 100%; height: 100%");
Pre pre = new Pre();
Text text = new Text(Msg.getMsg(Env.getCtx(), "DeleteSelectionDescription"));
text.setParent(pre);
pre.setParent(div);
//
Borderlayout layout = new Borderlayout();
layout.setParent(container);
layout.setWidth("100%");
layout.setHeight("100%");
North north = new North();
north.setParent(layout);
north.appendChild(div);
Center center = new Center();
center.setParent(layout);
center.setFlex(true);
center.appendChild(listbox);
listbox.setWidth("100%");
listbox.setVflex(true);
//
South south = new South();
south.setParent(layout);
south.appendChild(confirmPanel);
// Add Listener
confirmPanel.addActionListener(Events.ON_CLICK, this);
// Default Selected
if (isDefaultSelected() && getSelection() != null) {
listbox.setSelectedIndices(getSelection());
}
}
use of org.zkoss.zkex.zul.North in project adempiere by adempiere.
the class WRecordInfo method init.
/**
* Static Layout
* @throws Exception
*/
private void init() throws Exception {
Div div = new Div();
div.setStyle("width: 100%; height: 100%");
Pre pre = new Pre();
Text text = new Text(getInfo());
text.setParent(pre);
pre.setParent(div);
//
Borderlayout layout = new Borderlayout();
layout.setParent(v_Container);
layout.setWidth("100%");
layout.setHeight("100%");
Center center = new Center();
center.setParent(layout);
center.setFlex(true);
if (isOk()) {
North north = new North();
north.setParent(layout);
north.appendChild(div);
center.appendChild(table);
table.setWidth("100%");
table.setVflex(true);
} else {
center.appendChild(div);
}
//
South south = new South();
south.setParent(layout);
south.appendChild(confirmPanel);
confirmPanel.addActionListener(Events.ON_CLICK, this);
}
Aggregations