@Override
  public void init(AppView app) throws BeanFactoryException {

    m_App = app;
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
    m_TTP = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);

    m_jTicketTable.setDefaultRenderer(
        Object.class,
        new TableRendererBasic(new Formats[] {new FormatsPayment(), Formats.CURRENCY}));
    m_jTicketTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    m_jScrollTableTicket.getVerticalScrollBar().setPreferredSize(new Dimension(25, 25));
    m_jTicketTable.getTableHeader().setReorderingAllowed(false);
    m_jTicketTable.setRowHeight(25);
    m_jTicketTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    m_jsalestable.setDefaultRenderer(
        Object.class,
        new TableRendererBasic(
            new Formats[] {Formats.STRING, Formats.CURRENCY, Formats.CURRENCY, Formats.CURRENCY}));
    m_jsalestable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    m_jScrollSales.getVerticalScrollBar().setPreferredSize(new Dimension(25, 25));
    m_jsalestable.getTableHeader().setReorderingAllowed(false);
    m_jsalestable.setRowHeight(25);
    m_jsalestable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  }
Пример #2
0
 /** Creates new form JTicketsBag */
 public JTicketsBag(AppView oApp, TicketsEditor panelticket) {
   m_App = oApp;
   m_panelticket = panelticket;
   m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
 }