当前位置: 首页>>代码示例>>Java>>正文


Java ComboBoxValModel.add方法代码示例

本文整理汇总了Java中com.openbravo.data.gui.ComboBoxValModel.add方法的典型用法代码示例。如果您正苦于以下问题:Java ComboBoxValModel.add方法的具体用法?Java ComboBoxValModel.add怎么用?Java ComboBoxValModel.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.openbravo.data.gui.ComboBoxValModel的用法示例。


在下文中一共展示了ComboBoxValModel.add方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ResourcesView

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form ResourcesEditor */
public ResourcesView(DirtyManager dirty) {
    initComponents();
    
    m_ResourceModel = new ComboBoxValModel();
    m_ResourceModel.add(ResourceType.TEXT);
    m_ResourceModel.add(ResourceType.IMAGE);
    m_ResourceModel.add(ResourceType.BINARY);
    m_jType.setModel(m_ResourceModel);
    
    m_jName.getDocument().addDocumentListener(dirty);
    m_jType.addActionListener(dirty);
    m_jText.getDocument().addDocumentListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);
    
    writeValueEOF();        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:ResourcesView.java

示例2: JParamsReason

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form JParamsReason */
public JParamsReason() {
    initComponents();
    
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(null);
    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_jreason.setSelectedItem(null);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:JParamsReason.java

示例3: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/**
 *
 * @throws BasicException
 */
public void activate() throws BasicException {
    
    // Load the taxes logic
    taxeslogic = new TaxesLogic(taxsent.list());

    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_jCategory.setModel(m_CategoryModel);

    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    m_jTax.setModel(taxcatmodel);

    attmodel = new ComboBoxValModel(attsent.list());
    attmodel.add(0, null);
    m_jAtt.setModel(attmodel);
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:20,代码来源:ProductsEditor.java

示例4: PaymentsEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form JPanelPayments
 * @param oApp
 * @param dirty */
public PaymentsEditor(AppView oApp, DirtyManager dirty) {
    
    m_App = oApp;
    
    initComponents();
   
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(new PaymentReasonPositive("cashin", AppLocal.getIntString("transpayment.cashin")));
    m_ReasonModel.add(new PaymentReasonNegative("cashout", AppLocal.getIntString("transpayment.cashout")));              
    m_jreason.setModel(m_ReasonModel);
    
    jTotal.addEditorKeys(m_jKeys);
    
    m_jreason.addActionListener(dirty);
    jTotal.addPropertyChangeListener("Text", dirty);
    m_jNotes.addPropertyChangeListener("Text", dirty);
    m_jNotes.addEditorKeys(m_jKeys);        
    
    writeValueEOF();
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:24,代码来源:PaymentsEditor.java

示例5: ResourcesView

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form ResourcesEditor
 * @param dirty */
public ResourcesView(DirtyManager dirty) {
    initComponents();
    
    m_ResourceModel = new ComboBoxValModel();
    m_ResourceModel.add(ResourceType.TEXT);
    m_ResourceModel.add(ResourceType.IMAGE);
    m_ResourceModel.add(ResourceType.BINARY);
    m_jType.setModel(m_ResourceModel);
    
    m_jName.getDocument().addDocumentListener(dirty);
    m_jType.addActionListener(dirty);
    m_jText.getDocument().addDocumentListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);
    
    writeValueEOF();        
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:19,代码来源:ResourcesView.java

示例6: StockDiaryEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的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

示例7: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
public void activate() throws BasicException {
    
    // Load the taxes logic
    taxeslogic = new TaxesLogic(taxsent.list());        
    
    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_jCategory.setModel(m_CategoryModel);

    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    m_jTax.setModel(taxcatmodel);

    attmodel = new ComboBoxValModel(attsent.list());
    attmodel.add(0, null);
    m_jAtt.setModel(attmodel);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:ProductsEditor.java

示例8: StockDiaryEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的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

示例9: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/**
 * Loads Tax and category data into their combo boxes.
 * @throws com.openbravo.basic.BasicException
 */
@Override
public void activate() throws BasicException {
    // Get tax details and logic
    taxsent = m_dlSales.getTaxList();  //get details taxes table
    taxeslogic = new TaxesLogic(taxsent.list());
    taxcatsent = m_dlSales.getTaxCategoriesList();
    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    jComboTax.setModel(taxcatmodel);

    // Get categories list
    m_sentcat = m_dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_CategoryModel.add(reject_bad_categories_text);
    jComboDefaultCategory.setModel(m_CategoryModel);

    // Build the cat_list for later use
    cat_list = new HashMap<>();
    for (Object category : m_sentcat.list()) {
        m_CategoryModel.setSelectedItem(category);
        cat_list.put(category.toString(), m_CategoryModel.getSelectedKey().toString());
    }

    // reset the selected to the first in the list
    m_CategoryModel.setSelectedItem(null);
    taxcatmodel.setSelectedFirst();

    // Set the column delimiter
    jComboSeparator.removeAllItems();
    jComboSeparator.addItem(",");
    jComboSeparator.addItem(";");
    jComboSeparator.addItem("~");
    jComboSeparator.addItem("^");

}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:39,代码来源:JPanelCSVImport.java

示例10: PaymentsEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form JPanelPayments */
public PaymentsEditor(AppView oApp, DirtyManager dirty) {
    
    m_App = oApp;
    
    initComponents();
   
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(new PaymentReasonPositive("cashin", AppLocal.getIntString("transpayment.cashin")));
    m_ReasonModel.add(new PaymentReasonNegative("cashout", AppLocal.getIntString("transpayment.cashout")));              
    m_jreason.setModel(m_ReasonModel);
    
    jTotal.addEditorKeys(m_jKeys);

    m_jreason.addActionListener(dirty);
    jTotal.addPropertyChangeListener("Text", dirty);
    

    writeValueEOF();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:PaymentsEditor.java

示例11: ProductsEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form JEditProduct */
public ProductsEditor(DataLogicSales dlSales, DirtyManager dirty) {
    initComponents();
    
    // The taxes sentence
    taxsent = dlSales.getTaxList();
         
    // The categories model
    m_sentcat = dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel();
    
    // The taxes model
    taxcatsent = dlSales.getTaxCategoriesList();
    taxcatmodel = new ComboBoxValModel();

    // The attributes model
    attsent = dlSales.getAttributeSetList();
    attmodel = new ComboBoxValModel();
    
    m_CodetypeModel = new ComboBoxValModel();
    m_CodetypeModel.add(null);
    m_CodetypeModel.add(CodeType.EAN13);
    m_CodetypeModel.add(CodeType.CODE128);
    m_jCodetype.setModel(m_CodetypeModel);
    m_jCodetype.setVisible(false);
           
    m_jRef.getDocument().addDocumentListener(dirty);
    m_jCode.getDocument().addDocumentListener(dirty);
    m_jName.getDocument().addDocumentListener(dirty);
    m_jComment.addActionListener(dirty);
    m_jScale.addActionListener(dirty);
    m_jCategory.addActionListener(dirty);
    m_jTax.addActionListener(dirty);
    m_jAtt.addActionListener(dirty);
    m_jPriceBuy.getDocument().addDocumentListener(dirty);
    m_jPriceSell.getDocument().addDocumentListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);
    m_jstockcost.getDocument().addDocumentListener(dirty);
    m_jstockvolume.getDocument().addDocumentListener(dirty);
    m_jInCatalog.addActionListener(dirty);
    m_jCatalogOrder.getDocument().addDocumentListener(dirty);
    txtAttributes.getDocument().addDocumentListener(dirty);

    FieldsManager fm = new FieldsManager();
    m_jPriceBuy.getDocument().addDocumentListener(fm);
    m_jPriceSell.getDocument().addDocumentListener(new PriceSellManager());
    m_jTax.addActionListener(fm);
    
    m_jPriceSellTax.getDocument().addDocumentListener(new PriceTaxManager());
    m_jmargin.getDocument().addDocumentListener(new MarginManager());
    
    writeValueEOF();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:54,代码来源:ProductsEditor.java

示例12: StockManagement

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的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

示例13: ProductsEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/** Creates new form JEditProduct
     * @param dlSales
     * @param dirty */
    public ProductsEditor(DataLogicSales dlSales, DirtyManager dirty) {
        initComponents();

        // Taxes sentence
        taxsent = dlSales.getTaxList();

        // Categories model
        m_sentcat = dlSales.getCategoriesList();
        m_CategoryModel = new ComboBoxValModel();

        // Taxes model
        taxcatsent = dlSales.getTaxCategoriesList();
        taxcatmodel = new ComboBoxValModel();

        // Attributes model
        attsent = dlSales.getAttributeSetList();
        attmodel = new ComboBoxValModel();

        m_CodetypeModel = new ComboBoxValModel();
        m_CodetypeModel.add(null);
        m_CodetypeModel.add(CodeType.EAN13);
        m_CodetypeModel.add(CodeType.CODE128);
        m_jCodetype.setModel(m_CodetypeModel);
        m_jCodetype.setVisible(false);

        m_jRef.getDocument().addDocumentListener(dirty);
        m_jCode.getDocument().addDocumentListener(dirty);
        m_jName.getDocument().addDocumentListener(dirty);
        m_jComment.addActionListener(dirty);
        m_jScale.addActionListener(dirty);
        m_jCategory.addActionListener(dirty);
        m_jTax.addActionListener(dirty);
        m_jAtt.addActionListener(dirty);
        m_jPriceBuy.getDocument().addDocumentListener(dirty);
        m_jPriceSell.getDocument().addDocumentListener(dirty);
        m_jImage.addPropertyChangeListener("image", dirty);
        m_jstockcost.getDocument().addDocumentListener(dirty);
        m_jstockvolume.getDocument().addDocumentListener(dirty);
        m_jInCatalog.addActionListener(dirty);
        m_jCatalogOrder.getDocument().addDocumentListener(dirty);
        txtAttributes.getDocument().addDocumentListener(dirty);
// Added JG 20.12.10 - Kitchen Print
        m_jKitchen.addActionListener(dirty);
// Added JG 25.06.11 - Is Service
        m_jService.addActionListener(dirty);
// Added JDL 19.12.12 - Variable price product
        m_jVprice.addActionListener(dirty);
        m_jVerpatrib.addActionListener(dirty); 
// Added JDL 09.02.13
        m_jTextTip.getDocument().addDocumentListener(dirty); 
        m_jDisplay.getDocument().addDocumentListener(dirty); 
// Added JG 7 June 2014 - Stock Units
        m_jStockUnits.getDocument().putProperty(dlSales,24);

        FieldsManager fm = new FieldsManager();
        m_jPriceBuy.getDocument().addDocumentListener(fm);
        m_jPriceSell.getDocument().addDocumentListener(new PriceSellManager());
        m_jTax.addActionListener(fm);

        m_jPriceSellTax.getDocument().addDocumentListener(new PriceTaxManager());
        m_jmargin.getDocument().addDocumentListener(new MarginManager());
      
// Added JDL 26.05.13 warranty receipt   
        m_jCheckWarrantyReceipt.addActionListener(dirty);

        m_jGrossProfit.getDocument().addDocumentListener(new MarginManager());

        writeValueEOF();
    }
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:73,代码来源:ProductsEditor.java


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