use of org.adempiere.pos.service.POSOrderLineTableHandle in project adempiere by adempiere.
the class WPOSOrderLinePanel method init.
@Override
protected void init() {
posTable = new WPOSTable();
//
lineTableHandle = new POSOrderLineTableHandle(posTable);
lineTableHandle.prepareTable();
posTable.setColumnClass(4, BigDecimal.class, true);
appendChild(posTable);
posTable.repaint();
posTable.setWidth("99%");
posTable.setHeight("47%");
posTable.addActionListener(this);
posTable.addEventListener(Events.ON_CLICK, this);
posTable.getModel().addTableModelListener(this);
posTable.setClass("Table-OrderLine");
posTable.setColumnReadOnly(POSOrderLineTableHandle.POSITION_QTYORDERED, true);
}
use of org.adempiere.pos.service.POSOrderLineTableHandle in project adempiere by adempiere.
the class POSOrderLinePanel method init.
@Override
public void init() {
// Content
setLayout(new BorderLayout());
posTable = new POSTable();
orderLineTableHandle = new POSOrderLineTableHandle(posTable);
CScrollPane scroll = new CScrollPane(posTable);
scroll.addKeyListener(this);
orderLineTableHandle.prepareTable();
posTable.getModel().addTableModelListener(this);
posTable.addKeyListener(this);
posTable.addMouseListener(this);
//@Trifon
posTable.setFillsViewportHeight(true);
posTable.growScrollbars();
setMaximumSize(new Dimension(50, 50));
setPreferredSize(new Dimension(50, 50));
add(scroll, BorderLayout.CENTER);
addKeyListener(this);
}
Aggregations