Search in sources :

Example 6 with Groupbox

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();
}
Also used : Panel(org.adempiere.webui.component.Panel) Groupbox(org.zkoss.zul.Groupbox) Label(org.adempiere.webui.component.Label) Row(org.adempiere.webui.component.Row) Caption(org.zkoss.zul.Caption) Rows(org.adempiere.webui.component.Rows)

Example 7 with Groupbox

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());
}
Also used : Panel(org.zkoss.zul.Panel) Groupbox(org.zkoss.zul.Groupbox) Style(org.zkoss.zul.Style) Panelchildren(org.zkoss.zul.Panelchildren) Caption(org.zkoss.zul.Caption)

Aggregations

Caption (org.zkoss.zul.Caption)7 Groupbox (org.zkoss.zul.Groupbox)7 Label (org.adempiere.webui.component.Label)5 Row (org.adempiere.webui.component.Row)5 Rows (org.adempiere.webui.component.Rows)5 Grid (org.adempiere.webui.component.Grid)4 Panel (org.adempiere.webui.component.Panel)4 WPOSTextField (org.adempiere.pos.WPOSTextField)3 Center (org.zkoss.zkex.zul.Center)3 North (org.zkoss.zkex.zul.North)3 Style (org.zkoss.zul.Style)2 Checkbox (org.adempiere.webui.component.Checkbox)1 Datebox (org.adempiere.webui.component.Datebox)1 Borderlayout (org.zkoss.zul.Borderlayout)1 Cell (org.zkoss.zul.Cell)1 Center (org.zkoss.zul.Center)1 Hbox (org.zkoss.zul.Hbox)1 Panel (org.zkoss.zul.Panel)1 Panelchildren (org.zkoss.zul.Panelchildren)1 Separator (org.zkoss.zul.Separator)1