/** * Constructs a <code>CheckBoxList</code> that displays the elements in the specified <code>Vector</code>. * * @param listData the <code>Vector</code> to be loaded into the data model */ public CheckBoxList(final Vector<?> listData) { super(listData); init(); }
/** * Constructs a <code>CheckBoxList</code> with an empty model. */ public CheckBoxList() { init(); }
/** * Constructs a <code>CheckBoxList</code> that displays the elements in the specified <code>Object[]</code>. * * @param listData the array of Objects to be loaded into the data model */ public CheckBoxList(final Object[] listData) { super(listData); init(); }
/** * Constructs a <code>CheckBoxList</code> that displays the elements in the specified, non-<code>null</code> model. * All <code>CheckBoxList</code> constructors delegate to this one. * <p/> * * @param dataModel the data model for this list * @throws IllegalArgumentException if <code>dataModel</code> is <code>null</code> */ public CheckBoxList(ListModel dataModel) { super(dataModel); init(); }
@Override protected void init() { super.init(); getCheckBoxListSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); }