• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JCatalog类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.openbravo.pos.catalog.JCatalog的典型用法代码示例。如果您正苦于以下问题:Java JCatalog类的具体用法?Java JCatalog怎么用?Java JCatalog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JCatalog类属于com.openbravo.pos.catalog包,在下文中一共展示了JCatalog类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getSouthComponent

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/**
 *
 * @return
 */
@Override
protected Component getSouthComponent() {
    m_cat = new JCatalog(dlSales,
            "true".equals(m_jbtnconfig.getProperty("pricevisible")),
            "true".equals(m_jbtnconfig.getProperty("taxesincluded")),
            Integer.parseInt(m_jbtnconfig.getProperty("img-width", "64")),                
            Integer.parseInt(m_jbtnconfig.getProperty("img-height", "54")));
    //   Integer.parseInt(m_jbtnconfig.getProperty("img-width", "32")),
           //   Integer.parseInt(m_jbtnconfig.getProperty("img-height", "32")));
    m_cat.addActionListener(new CatalogListener());
    m_cat.getComponent().setPreferredSize(new Dimension(
            0,
            Integer.parseInt(m_jbtnconfig.getProperty("cat-height", "245"))));
    return m_cat.getComponent();
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:JPanelTicketSales.java


示例2: getSouthComponent

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
protected Component getSouthComponent() {
    m_cat = new JCatalog(dlSales,
            "true".equals(m_jbtnconfig.getProperty("pricevisible")),
            "true".equals(m_jbtnconfig.getProperty("taxesincluded")),
            Integer.parseInt(m_jbtnconfig.getProperty("img-width", "64")),
            Integer.parseInt(m_jbtnconfig.getProperty("img-height", "54")));
    m_cat.addActionListener(new CatalogListener());
    m_cat.getComponent().setPreferredSize(new Dimension(
            0,
            Integer.parseInt(m_jbtnconfig.getProperty("cat-height", "245"))));
    return m_cat.getComponent();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JPanelTicketSales.java


示例3: StockDiaryEditor

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/** Creates new form StockDiaryEditor */
public StockDiaryEditor(AppView app, DirtyManager dirty) {
    
    m_App = app;
    m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    initComponents();      
    
    m_cat = new JCatalog(m_dlSales);
    m_cat.getComponent().setPreferredSize(new Dimension(0, 245));
    m_cat.addActionListener(new CatalogListener());
    add(m_cat.getComponent(), BorderLayout.SOUTH);

    // El modelo de locales
    m_sentlocations = m_dlSales.getLocationsList();
    m_LocationsModel = new ComboBoxValModel();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(MovementReason.IN_PURCHASE);
    m_ReasonModel.add(MovementReason.IN_REFUND);
    m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    m_ReasonModel.add(MovementReason.OUT_SALE);
    m_ReasonModel.add(MovementReason.OUT_REFUND);
    m_ReasonModel.add(MovementReason.OUT_BREAK);
    m_ReasonModel.add(MovementReason.OUT_MOVEMENT);        
    m_jreason.setModel(m_ReasonModel);
    
    m_jdate.getDocument().addDocumentListener(dirty);
    m_jreason.addActionListener(dirty);
    m_jLocation.addActionListener(dirty);
    jproduct.getDocument().addDocumentListener(dirty);
    jattributes.getDocument().addDocumentListener(dirty);
    m_junits.getDocument().addDocumentListener(dirty);
    m_jprice.getDocument().addDocumentListener(dirty);
     
    writeValueEOF();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:38,代码来源:StockDiaryEditor.java


示例4: StockManagement

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/** Creates new form StockManagement */
public StockManagement(AppView app) {
    
    m_App = app;
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
    m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
    m_TTP = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);

    initComponents();
    
    btnDownloadProducts.setEnabled(m_App.getDeviceScanner() != null);

    
    // El modelo de locales
    m_sentlocations = m_dlSales.getLocationsList();
    m_LocationsModel =  new ComboBoxValModel();        
    m_LocationsModelDes = new ComboBoxValModel();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(MovementReason.IN_PURCHASE);
    m_ReasonModel.add(MovementReason.IN_REFUND);
    m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    m_ReasonModel.add(MovementReason.OUT_SALE);
    m_ReasonModel.add(MovementReason.OUT_REFUND);
    m_ReasonModel.add(MovementReason.OUT_BREAK);
    m_ReasonModel.add(MovementReason.OUT_MOVEMENT);        
    m_ReasonModel.add(MovementReason.OUT_CROSSING);        
    
    m_jreason.setModel(m_ReasonModel);
    
    m_cat = new JCatalog(m_dlSales);
    m_cat.getComponent().setPreferredSize(new Dimension(0, 245));
    m_cat.addActionListener(new CatalogListener());
    catcontainer.add(m_cat.getComponent(), BorderLayout.CENTER);
    
    // Las lineas de inventario
    m_invlines = new JInventoryLines();
    jPanel5.add(m_invlines, BorderLayout.CENTER);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:40,代码来源:StockManagement.java


示例5: StockDiaryEditor

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/** Creates new form StockDiaryEditor
 * @param app
 * @param dirty */
public StockDiaryEditor(AppView app, DirtyManager dirty) {
    
    m_App = app;
    m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    initComponents();      
    
    // El modelo de locales
    m_sentlocations = m_dlSales.getLocationsList();
    m_LocationsModel = new ComboBoxValModel();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(MovementReason.IN_PURCHASE);
    m_ReasonModel.add(MovementReason.IN_REFUND);
    m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    m_ReasonModel.add(MovementReason.OUT_SALE);
    m_ReasonModel.add(MovementReason.OUT_REFUND);
    m_ReasonModel.add(MovementReason.OUT_BREAK);
    m_ReasonModel.add(MovementReason.OUT_MOVEMENT);        

    m_jreason.setModel(m_ReasonModel);

    m_cat = new JCatalog(m_dlSales);
    m_cat.addActionListener(new CatalogListener());

    catcontainer.add(m_cat.getComponent(), BorderLayout.CENTER);        
    
    m_jdate.getDocument().addDocumentListener(dirty);
    m_jreason.addActionListener(dirty);
    m_jLocation.addActionListener(dirty);
    jproduct.getDocument().addDocumentListener(dirty);
    jattributes.getDocument().addDocumentListener(dirty);
    m_junits.getDocument().addDocumentListener(dirty);
    m_jprice.getDocument().addDocumentListener(dirty);
     
    writeValueEOF();
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:41,代码来源:StockDiaryEditor.java


示例6: getSouthComponent

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
protected Component getSouthComponent() {
    m_cat = new JCatalog(dlSales, panelconfig);
    m_cat.addActionListener(new CatalogListener());
    m_cat.getComponent().setPreferredSize(new Dimension(
            0,
            Integer.parseInt(panelconfig.getProperty("cat-height", "200"))));
    return m_cat.getComponent();
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:9,代码来源:JPanelTicketSales.java


示例7: StockManagement

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/** Creates new form StockManagement */
public StockManagement(AppView app) {
    
    m_App = app;
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
    m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
    m_TTP = new TicketParser(m_App.getDeviceTicket(), app.getDeviceDrawer(), m_dlSystem);

    initComponents();
    
    btnDownloadProducts.setEnabled(m_App.getDeviceScanner() != null);

    
    // El modelo de locales
    m_sentlocations = m_dlSales.getLocationsList();
    m_LocationsModel =  new ComboBoxValModel();        
    m_LocationsModelDes = new ComboBoxValModel();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(MovementReason.IN_PURCHASE);
    m_ReasonModel.add(MovementReason.IN_REFUND);
    m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    m_ReasonModel.add(MovementReason.OUT_SALE);
    m_ReasonModel.add(MovementReason.OUT_REFUND);
    m_ReasonModel.add(MovementReason.OUT_BREAK);
    m_ReasonModel.add(MovementReason.OUT_MOVEMENT);        
    m_ReasonModel.add(MovementReason.OUT_CROSSING);        
    
    m_jreason.setModel(m_ReasonModel);
    
    m_cat = new JCatalog(m_dlSales);
    m_cat.getComponent().setPreferredSize(new Dimension(0, 245));
    m_cat.addActionListener(new CatalogListener());
    catcontainer.add(m_cat.getComponent(), BorderLayout.CENTER);
    
    // Las lineas de inventario
    m_invlines = new JInventoryLines();
    jPanel5.add(m_invlines, BorderLayout.CENTER);
}
 
开发者ID:ZarGate,项目名称:OpenbravoPOS,代码行数:40,代码来源:StockManagement.java


示例8: StockManagement

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/** Creates new form StockManagement
 * @param app */
public StockManagement(AppView app) {
    
    m_App = app;
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
    m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
    m_TTP = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);

    initComponents();
    
    user = m_App.getAppUserView().getUser().getName();
    btnDownloadProducts.setEnabled(m_App.getDeviceScanner() != null);
    
    // El modelo de locales
    m_sentlocations = m_dlSales.getLocationsList();
    m_LocationsModel =  new ComboBoxValModel();        
    m_LocationsModelDes = new ComboBoxValModel();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(MovementReason.IN_PURCHASE);
    m_ReasonModel.add(MovementReason.IN_REFUND);
    m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    m_ReasonModel.add(MovementReason.OUT_SALE);
    m_ReasonModel.add(MovementReason.OUT_REFUND);
    m_ReasonModel.add(MovementReason.OUT_BREAK);
    m_ReasonModel.add(MovementReason.OUT_MOVEMENT);        
    m_ReasonModel.add(MovementReason.OUT_CROSSING);        
    
    m_jreason.setModel(m_ReasonModel);
    
    m_cat = new JCatalog(m_dlSales);
    m_cat.addActionListener(new CatalogListener());

    catcontainer.add(m_cat.getComponent(), BorderLayout.CENTER);
   


    // Las lineas de inventario
    m_invlines = new JInventoryLines();
    jPanel5.add(m_invlines, BorderLayout.CENTER);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:43,代码来源:StockManagement.java


示例9: StockDiaryEditor

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
/** Creates new form StockDiaryEditor */
public StockDiaryEditor(AppView app, DirtyManager dirty) {
    
    m_App = app;
    m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");

    initComponents();      

    panelconfig = new PropertiesConfig(m_dlSystem.getResourceAsXML("Ticket.Buttons"));
    m_cat = new JCatalog(m_dlSales, panelconfig);
    m_cat.getComponent().setPreferredSize(new Dimension(
            0, 
            Integer.parseInt(panelconfig.getProperty("cat-height", "200"))));
    m_cat.addActionListener(new CatalogListener());
    add(m_cat.getComponent(), BorderLayout.SOUTH);

    // El modelo de locales
    m_sentlocations = m_dlSales.getLocationsList();
    m_LocationsModel = new ComboBoxValModel();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(MovementReason.IN_PURCHASE);
    m_ReasonModel.add(MovementReason.IN_REFUND);
    m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    m_ReasonModel.add(MovementReason.OUT_SALE);
    m_ReasonModel.add(MovementReason.OUT_REFUND);
    m_ReasonModel.add(MovementReason.OUT_BREAK);
    m_ReasonModel.add(MovementReason.OUT_MOVEMENT);        
    m_jreason.setModel(m_ReasonModel);
    
    m_jdate.getDocument().addDocumentListener(dirty);
    m_jreason.addActionListener(dirty);
    m_jLocation.addActionListener(dirty);
    jproduct.getDocument().addDocumentListener(dirty);
    jattributes.getDocument().addDocumentListener(dirty);
    m_junits.getDocument().addDocumentListener(dirty);
    m_jprice.getDocument().addDocumentListener(dirty);
     
    writeValueEOF();
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:42,代码来源:StockDiaryEditor.java


示例10: StockManagement

import com.openbravo.pos.catalog.JCatalog; //导入依赖的package包/类
public StockManagement(AppView app) {

        m_App = app;
        m_dlSystem = (DataLogicSystem) m_App.getBean(DataLogicSystem.class.getName());
        m_dlSales = (DataLogicSales) m_App.getBean(DataLogicSales.class.getName());
//        m_TTP = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);

        initComponents();

        btnDownloadProducts.setEnabled(m_App.getDevicePLUs() != null);

        // El modelo de locales
        m_sentlocations = m_dlSales.getLocationsList();
        m_LocationsModel = new ComboBoxValModel();
        m_LocationsModelDes = new ComboBoxValModel();

        m_ReasonModel = new ComboBoxValModel();
        m_ReasonModel.add(MovementReason.IN_PURCHASE);
        m_ReasonModel.add(MovementReason.IN_REFUND);
        m_ReasonModel.add(MovementReason.IN_MOVEMENT);
        m_ReasonModel.add(MovementReason.OUT_SALE);
        m_ReasonModel.add(MovementReason.OUT_REFUND);
        m_ReasonModel.add(MovementReason.OUT_BREAK);
        m_ReasonModel.add(MovementReason.OUT_MOVEMENT);
        m_ReasonModel.add(MovementReason.OUT_CROSSING);

        m_jreason.setModel(m_ReasonModel);

        panelconfig = new PropertiesConfig(m_dlSystem.getResourceAsXML("Ticket.Buttons"));

        m_cat = new JCatalog(m_dlSales, panelconfig);
        m_cat.getComponent().setPreferredSize(new Dimension(0, 245));
        m_cat.addActionListener(new CatalogListener());
        catcontainer.add(m_cat.getComponent(), BorderLayout.CENTER);
        catcontainer.setPreferredSize(new Dimension(
                0,
                Integer.parseInt(panelconfig.getProperty("cat-height", "200"))));

        // Las lineas de inventario
        m_invlines = new JInventoryLines();
        jPanel5.add(m_invlines, BorderLayout.CENTER);
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:43,代码来源:StockManagement.java



注:本文中的com.openbravo.pos.catalog.JCatalog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LineSeparator类代码示例发布时间:2022-05-23
下一篇:
Java EntityDefinition类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap