/** * Constructs a CheckBoxListModel from a Vector and then applies setModel to * it. */ public CheckBoxListModel(Vector listData) { for (int i = 0; i < listData.size(); i++) { addElement(listData.get(i)); } }
/** * Constructs a CheckBoxListModel from a Vector and then applies setModel to * it. */ public CheckBoxListModel(Vector listData) { for (int i = 0; i < listData.size(); i++) { addElement(listData.get(i)); } }
model = (CheckBoxListModel) m_List.getModel(); for (Capability cap : Capability.values()) { model.addElement(cap);
model = (CheckBoxListModel) m_List.getModel(); for (Capability cap : Capability.values()) { model.addElement(cap);
/** * Constructs a CheckBoxListModel from an array of objects and then applies * setModel to it. * * @param listData the data to use */ public CheckBoxListModel(Object[] listData) { for (Object element : listData) { addElement(element); } }
/** * Constructs a CheckBoxListModel from an array of objects and then applies * setModel to it. * * @param listData the data to use */ public CheckBoxListModel(Object[] listData) { for (Object element : listData) { addElement(element); } }