|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.table.CellVectorSelection
public abstract class CellVectorSelection
Defines an abstract base class for representing TableView column and row selections.
Selection
,
CellSelection
,
ColumnSelection
,
RowSelection
Field Summary |
---|
Fields inherited from interface com.sas.table.TableElementInterface |
---|
REFRESH_ALL, REFRESH_DATA, REFRESH_DATA_STYLE, REFRESH_LABEL, REFRESH_LABEL_STYLE, REFRESH_STYLE |
Constructor Summary | |
---|---|
CellVectorSelection(CellVector anchor)
Alias for CellVectorSelection(anchor, anchor) . |
|
CellVectorSelection(CellVector anchor,
CellVector end)
Constructs a new selection with the given extent. |
Method Summary | |
---|---|
boolean |
contains(java.lang.Object item)
Test for the presence of an item in the selection. |
int |
count()
Returns the number of items in the selection. |
CellSelection |
getCells()
Returns the set of cells associated with this selection; only data cells, not labels, are included. |
java.util.Enumeration |
getItems()
Returns an enumeration of all the items in the selection. |
protected void |
onEndChanged(TableElement oldValue,
TableElement newValue)
Called by setEnd() to notify subclasses of a change
to the end. |
Methods inherited from class com.sas.table.Selection |
---|
addContentsChangedListener, addPropertyChangeListener, apply, clone, fireContentsChanged, firePropertyChange, firePropertyChange, getAnchor, getDisplayedBounds, getEnd, getTableView, isDisplayed, isModified, isSelected, newSelection, refresh, removeContentsChangedListener, removePropertyChangeListener, repaint, setEnd |
Constructor Detail |
---|
public CellVectorSelection(CellVector anchor)
CellVectorSelection(anchor, anchor)
.
anchor
- The value to assign the anchor property.public CellVectorSelection(CellVector anchor, CellVector end)
anchor
- The value to assign the anchor property.end
- The value to assign the end property.Selection.getAnchor()
,
Selection.getEnd()
Method Detail |
---|
public boolean contains(java.lang.Object item)
contains
in interface com.sas.collection.StaticCollectionInterface
contains
in interface com.sas.models.StaticSelectionInterface
contains
in class Selection
item
- The item to search for.
true
if the selection contains the item and
false
otherwise.
java.lang.ClassCastException
- If item is not a CellVector.public int count()
count
in interface com.sas.util.Countable
count
in class Selection
public CellSelection getCells()
null
will be returned.public java.util.Enumeration getItems()
getItems
in interface com.sas.util.Enumerable
getItems
in class Selection
protected void onEndChanged(TableElement oldValue, TableElement newValue)
setEnd()
to notify subclasses of a change
to the end.
Overrides super to fire a
SelectionChangedEvent.
onEndChanged
in class Selection
oldValue
- The previous value of end.newValue
- The current value of end.Selection.setEnd(java.lang.Object)
,
Selection.fireContentsChanged(com.sas.collection.ContentsChangedEvent)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |