本文整理汇总了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
}
示例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);
}
示例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);
}
示例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
}
示例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("^");
}
示例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);
}
示例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);
}