Search in sources :

Example 1 with POSOrderLineTableHandle

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);
}
Also used : POSOrderLineTableHandle(org.adempiere.pos.service.POSOrderLineTableHandle)

Example 2 with POSOrderLineTableHandle

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);
}
Also used : BorderLayout(java.awt.BorderLayout) POSOrderLineTableHandle(org.adempiere.pos.service.POSOrderLineTableHandle) CScrollPane(org.compiere.swing.CScrollPane) Dimension(java.awt.Dimension)

Aggregations

POSOrderLineTableHandle (org.adempiere.pos.service.POSOrderLineTableHandle)2 BorderLayout (java.awt.BorderLayout)1 Dimension (java.awt.Dimension)1 CScrollPane (org.compiere.swing.CScrollPane)1