selected.or(mask);
}
+ public boolean isSelected(int column)
+ {
+ return selected.get(column);
+ }
+
public int getMaxColumn()
{
return selected.length() - 1;
/**
* Returns a list of selected columns. The list contains no duplicates but is
- * not necessarily ordered.
+ * not necessarily ordered. It also may include columns hidden from the
+ * current view
*/
public List<Integer> getSelected()
{
* @param col
* index to search for in column selection
*
- * @return true if Integer(col) is in selection.
+ * @return true if col is selected
*/
public boolean contains(int col)
{
- return selected.contains(new Integer(col));
+ return (col > -1) ? selected.isSelected(col) : false;
}
/**