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


Java ComboBoxValModel.setSelectedFirst方法代码示例

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


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

示例1: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
public void activate() throws BasicException {
    List a = m_sentlocations.list();
    addFirst(a);
    m_LocationsModel = new ComboBoxValModel(a);
    m_LocationsModel.setSelectedFirst();
    m_jLocation.setModel(m_LocationsModel); // refresh model   
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:8,代码来源:JParamsLocation.java

示例2: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/**
 *
 * @throws BasicException
 */
@Override
public void activate() throws BasicException {
    List a = attsent.list();
    attmodel = new ComboBoxValModel(a);
    attmodel.setSelectedFirst();
    jAttr.setModel(attmodel);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:12,代码来源:AttributeFilter.java

示例3: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/**
 *
 * @throws BasicException
 */
@Override
public void activate() throws BasicException {
    List a = attusesent.list();
    attusemodel = new ComboBoxValModel(a);
    attusemodel.setSelectedFirst();
    jAttrSet.setModel(attusemodel); 
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:12,代码来源:AttributeSetFilter.java

示例4: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
/**
 *
 * @throws BasicException
 */
@Override
public void activate() throws BasicException {
    List a = m_sentlocations.list();
    addFirst(a);
    m_LocationsModel = new ComboBoxValModel(a);
    m_LocationsModel.setSelectedFirst();
    m_jLocation.setModel(m_LocationsModel); // refresh model   
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:13,代码来源:JParamsLocation.java

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

示例6: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
public void activate() throws BasicException {
    List a = attsent.list();
    attmodel = new ComboBoxValModel(a);
    attmodel.setSelectedFirst();
    jAttr.setModel(attmodel);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:AttributeFilter.java

示例7: activate

import com.openbravo.data.gui.ComboBoxValModel; //导入方法依赖的package包/类
public void activate() throws BasicException {
    List a = attusesent.list();
    attusemodel = new ComboBoxValModel(a);
    attusemodel.setSelectedFirst();
    jAttrSet.setModel(attusemodel); 
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:AttributeSetFilter.java


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