use of org.zkoss.zul.Groupbox in project adempiere by adempiere.
the class WPOSInfoProduct method init.
@Override
protected void init() {
parameterPanel = new Panel();
Groupbox groupPanel = new Groupbox();
infoProductLayout = GridFactory.newGridLayout();
Caption v_TitleBorder = new Caption(Msg.getMsg(Env.getCtx(), "InfoProduct"));
groupPanel.appendChild(v_TitleBorder);
groupPanel.appendChild(infoProductLayout);
labelLayout = GridFactory.newGridLayout();
buttonPanel = new Panel();
buttonPanel.appendChild(labelLayout);
parameterPanel.appendChild(groupPanel);
buttonPanel.setStyle("border: none; width:99%;moz-box-shadow: 0 0 0px #888;-webkit-box-shadow: 0 0 0px #888;box-shadow: 0 0 0px #888;");
labelLayout.setStyle("border: none; width:100%;moz-box-shadow: 0 0 0px #888;-webkit-box-shadow: 0 0 0px #888;box-shadow: 0 0 0px #888;");
infoProductLayout.setStyle("border: none; width:100%; moz-box-shadow: 0 0 0px #888;-webkit-box-shadow: 0 0 0px #888;box-shadow: 0 0 0px #888;");
parameterPanel.setStyle("border: none; width:99%;");
Rows rows = null;
Row row = null;
rows = infoProductLayout.newRows();
row = rows.newRow();
// For Image
buttonImage = new Panel();
row.appendChild(buttonImage);
buttonImage.setWidth("138px");
buttonImage.setHeight("130px");
row.appendChild(buttonPanel);
rows = labelLayout.newRows();
row = rows.newRow();
// For Value
labelValue = new Label();
labelValue.setStyle(WPOS.FONTSIZEMEDIUM + " font-weight:bold");
// Add
row.appendChild(labelValue);
row = rows.newRow();
// For Price List
labelPriceName = new Label();
labelPriceName.setStyle(WPOS.FONTSIZEMEDIUM + " font-weight:bold");
// Add
row.appendChild(labelPriceName);
labelPrice = new Label();
labelPrice.setStyle(WPOS.FONTSIZELARGE + "font-weight:bold");
// Add
row.appendChild(labelPrice);
labelPriceList = new Label();
labelPriceList.setStyle(WPOS.FONTSIZELARGE + "font-weight:bold");
// Add
row.appendChild(labelPriceList);
row = rows.newRow();
// For Name
labelName = new Label();
labelName.setStyle(WPOS.FONTSIZEMEDIUM + " font-weight:bold");
// Add
row.appendChild(labelName);
row = rows.newRow();
// For UOM
labelUOMSymbol = new Label(Msg.getElement(Env.getCtx(), "C_UOM_ID"));
labelUOMSymbol.setStyle(WPOS.FONTSIZEMEDIUM + " font-weight:bold");
// Add
row.appendChild(labelUOMSymbol);
row = rows.newRow();
// For Category
labelProductCategory = new Label(Msg.getElement(Env.getCtx(), "M_Product_Category_ID"));
labelProductCategory.setStyle(WPOS.FONTSIZEMEDIUM + " font-weight:bold");
// Add
row.appendChild(labelProductCategory);
row = rows.newRow();
// For Category
labelProductTax = new Label(Msg.getElement(Env.getCtx(), "C_TaxCategory_ID"));
labelProductTax.setStyle(WPOS.FONTSIZEMEDIUM + " font-weight:bold");
// Add
row.appendChild(labelProductTax);
row = rows.newRow();
// For Description
labelDescription = new Label();
labelDescription.setHeight("19px");
labelDescription.setClass("label-description");
// Add
row.appendChild(labelDescription);
initialValue();
}
use of org.zkoss.zul.Groupbox in project adempiere by adempiere.
the class WCollectDetail method init.
/**
* Init Main Panel
* @author Yamel Senih, ysenih@erpcya.com, ERPCyA http://www.erpcya.com
* @return void
*/
private void init() {
v_MainPanel = new Panel();
v_PanelChildren = new Panelchildren();
groupPanel = new Groupbox();
v_PanelChildren.appendChild(groupPanel);
v_TitleBorder = new Caption("Credit Card");
Style style = new Style();
style.setContent(".z-fieldset legend {font-size: medium; font-weight:bold;}");
style.setParent(v_TitleBorder);
groupPanel.appendChild(v_TitleBorder);
v_MainPanel.appendChild(v_PanelChildren);
// Load Standard Panel
loadStandardPanel();
// Load Check Panel
loadCheckPanel();
// Load Credit Panel
loadCreditPanel();
// Load Debit Panel
loadDebitPanel();
// Load Credit Note Panel
loadCreditMemoPanel();
// Add to Main Panel
groupPanel.appendChild(v_StandarPanel);
groupPanel.appendChild(v_CheckPanel);
groupPanel.appendChild(v_CreditPanel);
groupPanel.appendChild(v_DebitPanel);
groupPanel.appendChild(v_CreditMemoPanel);
// Change View
changeViewPanel();
fPayAmt.setValue(getPayAmt());
}
Aggregations