use of org.adempiere.webui.component.Label in project adempiere by adempiere.
the class InfoInvoicePanel method statInit.
private void statInit() {
initComponents();
fDocumentNo.setWidth("100%");
fDescription.setWidth("100%");
fDateFrom.setWidth("165px");
fDateTo.setWidth("165px");
fAmtFrom.getDecimalbox().setWidth("155px");
fAmtTo.getDecimalbox().setWidth("155px");
Rows rows = new Rows();
Row row = new Row();
rows.appendChild(row);
row.appendCellChild(lblDocumentNo.rightAlign());
row.appendCellChild(fDocumentNo);
row.appendCellChild(fBPartner_ID.getLabel().rightAlign());
row.appendCellChild(fBPartner_ID.getComponent());
row.appendCellChild(fIsSOTrx);
row.appendCellChild(fIsPaid);
row = new Row();
rows.appendChild(row);
row.appendCellChild(lblDescription.rightAlign());
row.appendCellChild(fDescription);
row.appendCellChild(lblDateInvoiced.rightAlign());
Hbox hbox = new Hbox();
hbox.appendChild(fDateFrom);
hbox.appendChild(new Label("-"));
hbox.appendChild(fDateTo);
row.appendCellChild(hbox, 3);
row = new Row();
rows.appendChild(row);
row.appendCellChild(fOrder_ID.getLabel().rightAlign());
row.appendCellChild(fOrder_ID.getComponent());
row.appendCellChild(lblGrandTotal.rightAlign());
hbox = new Hbox();
hbox.appendChild(fAmtFrom);
hbox.appendChild(new Label("-"));
hbox.appendChild(fAmtTo);
row.appendCellChild(hbox, 3);
p_criteriaGrid.appendChild(rows);
scheduleTbl = new WListbox();
m_sqlSchedule = scheduleTbl.prepareTable(s_subLayout, s_subFrom, s_subWhere, false, "i");
scheduleTbl.setMultiSelection(false);
scheduleTbl.autoSize();
scheduleTbl.setAttribute("zk_component_ID", "Lookup_Data_Schedule");
scheduleTbl.setShowTotals(true);
p_centerSouth.appendChild(scheduleTbl);
p_centerSouth.setTitle(Msg.translate(Env.getCtx(), "C_InvoicePaySchedule_ID"));
p_centerSouth.setTooltiptext(Msg.translate(Env.getCtx(), "C_InvoicePaySchedule_ID"));
super.setSizes();
}
use of org.adempiere.webui.component.Label in project adempiere by adempiere.
the class InfoGeneralPanel method statInit.
private void statInit() {
txt1 = new Textbox();
txt2 = new Textbox();
txt3 = new Textbox();
txt4 = new Textbox();
lbl1 = new Label();
lbl2 = new Label();
lbl3 = new Label();
lbl4 = new Label();
initComponents();
}
use of org.adempiere.webui.component.Label in project adempiere by adempiere.
the class WScanBarUI method productPanel.
/**
* Creates the account panel.
*
* The account panel contains:
* <li>a table detailing all accounts
* <li>a button for creating charges for selected accounts
*/
private void productPanel() {
Borderlayout borderlayout = new Borderlayout();
borderlayout.setStyle("position: absolute");
borderlayout.setWidth("100%");
borderlayout.setHeight("100%");
productPanel.appendChild(borderlayout);
North north = new North();
north.setBorder("none");
borderlayout.appendChild(north);
Label label = new Label(Msg.translate(Env.getCtx(), "M_Product_ID"));
label.setStyle("font-weight: bold;");
north.appendChild(label);
Center center = new Center();
center.setBorder("none");
center.setFlex(true);
center.setAutoscroll(true);
borderlayout.appendChild(center);
center.appendChild(productTable);
South south = new South();
south.setBorder("none");
borderlayout.appendChild(south);
Panel southPanel = new Panel();
southPanel.setAlign("right");
south.appendChild(southPanel);
return;
}
use of org.adempiere.webui.component.Label 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.adempiere.webui.component.Label in project adempiere by adempiere.
the class WCRPDetail method jbInit.
private void jbInit() {
dateFrom = new WDateEditor("DateFrom", true, false, true, "DateFrom");
dateTo = new WDateEditor("DateTo", true, false, true, "DateTo");
Rows rows = new Rows();
Row row = null;
new GridFactory();
Grid northPanel = GridFactory.newGridLayout();
rows.setParent(northPanel);
row = rows.newRow();
row.appendChild(new Label(Msg.translate(Env.getCtx(), "S_Resource_ID")).rightAlign());
row.appendChild(resource.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateFrom")).rightAlign());
row.appendChild(dateFrom.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateTo")).rightAlign());
row.appendChild(dateTo.getComponent());
ConfirmPanel confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(this);
North north = new North();
north.appendChild(northPanel);
mainLayout.appendChild(north);
//West west = new West();
//chartPanel.setWidth("400");
//west.appendChild(chartPanel);
//west.setSplittable(true);
//west.setAutoscroll(true);
//mainLayout.appendChild(west);
South south = new South();
south.appendChild(confirmPanel);
mainLayout.appendChild(south);
}
Aggregations