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

Java ComboBoxValModel类代码示例

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

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



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

示例1: ProductFilterSales

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form ProductFilterSales */
public ProductFilterSales(DataLogicSales dlSales, JEditorKeys jKeys) {
    initComponents();
    
    // El modelo de categorias
    m_sentcat = dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel();           
    
    m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
    m_jPriceBuy.addEditorKeys(jKeys);
    
    m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
    m_jPriceSell.addEditorKeys(jKeys);
    
    m_jtxtName.addEditorKeys(jKeys);
    
    m_jtxtBarCode.addEditorKeys(jKeys);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:ProductFilterSales.java


示例2: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
public void activate() {
    
    m_jtxtBarCode.reset();
    m_jtxtBarCode.setEditModeEnum(JEditorString.MODE_123);
    m_jtxtName.reset();
    m_jPriceBuy.reset();
    m_jPriceSell.reset();
    m_jtxtName.activate();
    
    try {
        List catlist = m_sentcat.list();
        catlist.add(0, null);
        m_CategoryModel = new ComboBoxValModel(catlist);
        m_jCategory.setModel(m_CategoryModel);
    } catch (BasicException eD) {
        // no hay validacion
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:ProductFilterSales.java


示例3: PeopleView

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form PeopleEditor */
public PeopleView(DataLogicAdmin dlAdmin, DirtyManager dirty) {
    initComponents();
            
    // El modelo de roles
    m_sentrole = dlAdmin.getRolesList();
    m_RoleModel = new ComboBoxValModel();
    
    m_Dirty = dirty;
    m_jName.getDocument().addDocumentListener(dirty);
    m_jRole.addActionListener(dirty);
    m_jVisible.addActionListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);

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


示例4: 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


示例5: AttributeUseEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form AttributeSetEditor */
public AttributeUseEditor(AppView app, DirtyManager dirty) {

    attributesent = new StaticSentence(app.getSession()
        , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
        , null
        , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
            return new AttributeInfo(dr.getString(1), dr.getString(2));
        }}
    );
    attributemodel = new ComboBoxValModel();

    initComponents();

    jLineno.getDocument().addDocumentListener(dirty);
    jAttribute.addActionListener(dirty);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:AttributeUseEditor.java


示例6: CategoriesEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form JPanelCategories */
public CategoriesEditor(AppView app, DirtyManager dirty) {
    
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
         
    initComponents();
         
    // El modelo de categorias
    m_sentcat = dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel();
    
    m_sentadd = dlSales.getCatalogCategoryAdd();
    m_sentdel = dlSales.getCatalogCategoryDel();
    
    m_jName.getDocument().addDocumentListener(dirty);
    m_jCategory.addActionListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);
    
    writeValueEOF();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:CategoriesEditor.java


示例7: refresh

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
public void refresh() {
    
    List a;
    
    try {
        a = m_sentcat.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    m_CategoryModel = new ComboBoxValModel(a);
    m_jCategory.setModel(m_CategoryModel);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:CategoriesEditor.java


示例8: refresh

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
public void refresh() {
    
    List a;
    
    try {
        a = taxparentsent.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    taxparentmodel = new ComboBoxValModel(a);
    m_jTaxParent.setModel(taxparentmodel);    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:TaxEditor.java


示例9: 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


示例10: init

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/**
     *
     * @param app
     */
    @Override
    public void init(AppView app) {
         
        DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
       
        // El modelo de categorias
        m_sentcat = dlSales.getCategoriesList();
        m_CategoryModel = new ComboBoxValModel();          
         
//        m_jCboName.setModel(new ListQBFModelNumber());
//        m_jCboPriceBuy.setModel(new ListQBFModelNumber());
//        m_jCboPriceSell.setModel(new ListQBFModelNumber());
        m_jCboName.setModel(ListQBFModelNumber.getMandatoryString());
        m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
        m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:ProductFilter.java


示例11: ProductFilterSales

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form ProductFilterSales
     * @param dlSales
     * @param jKeys */
    public ProductFilterSales(DataLogicSales dlSales, JEditorKeys jKeys) {
        initComponents();

        m_jtxtName.addEditorKeys(jKeys);
        m_jtxtBarCode.addEditorKeys(jKeys);
        
        // El modelo de categorias
        m_sentcat = dlSales.getCategoriesList();
        m_CategoryModel = new ComboBoxValModel();           
        
        m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
        m_jPriceBuy.addEditorKeys(jKeys);
        
        m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
        m_jPriceSell.addEditorKeys(jKeys);
        
// JG July 2014 - added for Stock count
        m_jCboStockUnits.setModel(ListQBFModelNumber.getOverrideMandatoryNumber());
        m_jStockUnits.addEditorKeys(jKeys);                
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:24,代码来源:ProductFilterSales.java


示例12: PeopleView

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form PeopleEditor
 * @param dlAdmin
 * @param dirty */
public PeopleView(DataLogicAdmin dlAdmin, DirtyManager dirty) {
    initComponents();
            
    // El modelo de roles
    m_sentrole = dlAdmin.getRolesList();
    m_RoleModel = new ComboBoxValModel();
    
    m_Dirty = dirty;
    m_jName.getDocument().addDocumentListener(dirty);
    m_jRole.addActionListener(dirty);
    m_jVisible.addActionListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);

    
    writeValueEOF();
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:PeopleView.java


示例13: 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:gnoopy,项目名称:wifepos,代码行数:19,代码来源:ResourcesView.java


示例14: TaxEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form taxEditor
 * @param app
 * @param dirty */
public TaxEditor(AppView app, DirtyManager dirty) {
    
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    initComponents();
    
    taxcatsent = dlSales.getTaxCategoriesList();
    taxcatmodel = new ComboBoxValModel();        
    
    taxcustcatsent = dlSales.getTaxCustCategoriesList();
    taxcustcatmodel = new ComboBoxValModel();    
    
    taxparentsent = dlSales.getTaxList();
    taxparentmodel = new ComboBoxValModel();    

    m_jName.getDocument().addDocumentListener(dirty);
    m_jTaxCategory.addActionListener(dirty);
    m_jCustTaxCategory.addActionListener(dirty);
    m_jTaxParent.addActionListener(dirty);
    m_jRate.getDocument().addDocumentListener(dirty);
    jCascade.addActionListener(dirty);
    jOrder.getDocument().addDocumentListener(dirty);
    
    writeValueEOF();
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:29,代码来源:TaxEditor.java


示例15: AttributeUseEditor

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form AttributeSetEditor
    * @param app
    * @param dirty */
   public AttributeUseEditor(AppView app, DirtyManager dirty) {

       attributesent = new StaticSentence(app.getSession()
           , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
           , null
           , new SerializerRead() {@Override
public Object readValues(DataRead dr) throws BasicException {
               return new AttributeInfo(dr.getString(1), dr.getString(2));
           }}
       );
       attributemodel = new ComboBoxValModel();

       initComponents();

       jLineno.getDocument().addDocumentListener(dirty);
       jAttribute.addActionListener(dirty);
   }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:AttributeUseEditor.java


示例16: 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:gnoopy,项目名称:wifepos,代码行数:20,代码来源:ProductsEditor.java


示例17: refresh

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/**
 *
 */
@Override
public void refresh() {
    
    List a;
    
    try {
        a = m_sentcat.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    m_CategoryModel = new ComboBoxValModel(a);
    m_jCategory.setModel(m_CategoryModel);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:CategoriesEditor.java


示例18: refresh

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/**
 *
 */
@Override
public void refresh() {
    
    List a;
    
    try {
        a = taxparentsent.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    taxparentmodel = new ComboBoxValModel(a);
    m_jTaxParent.setModel(taxparentmodel);    
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:TaxEditor.java


示例19: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/**
 *
 * @throws BasicException
 */
@Override
public void activate() throws BasicException {
    m_cat.loadCatalog();
    
    java.util.List l = m_sentlocations.list();
    m_LocationsModel = new ComboBoxValModel(l);
    m_jLocation.setModel(m_LocationsModel); // para que lo refresque
    m_LocationsModelDes = new ComboBoxValModel(l);
    m_jLocationDes.setModel(m_LocationsModelDes); // para que lo refresque
    
    stateToInsert();
    
    java.awt.EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            jTextField1.requestFocus();
        }
    });        
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:24,代码来源:StockManagement.java


示例20: ProductFilterSales

import com.openbravo.data.gui.ComboBoxValModel; //导入依赖的package包/类
/** Creates new form ProductFilterSales
     * @param dlSales
     * @param jKeys */
    public ProductFilterSales(DataLogicSales dlSales, JEditorKeys jKeys) {
        initComponents();

        m_jtxtBarCode.addEditorKeys(jKeys);
        m_jtxtName.addEditorKeys(jKeys);
        
        // El modelo de categorias
        m_sentcat = dlSales.getCategoriesList();
        m_CategoryModel = new ComboBoxValModel();           
        
        m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
        m_jPriceBuy.addEditorKeys(jKeys);
        
        m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
        m_jPriceSell.addEditorKeys(jKeys);
        
// JG July 2014 - added for Stock count
        m_jCboStockUnits.setModel(ListQBFModelNumber.getOverrideMandatoryNumber());
        m_jStockUnits.addEditorKeys(jKeys);                
    }
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:24,代码来源:ProductFilterSales.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java RemoteResourceInfo类代码示例发布时间:2022-05-23
下一篇:
Java INSTANCEOF类代码示例发布时间: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