|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.table.CellSelection
public class CellSelection
Represents a contiguous range of cells in a TableView.
Selection,
CellVectorSelection,
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 | |
|---|---|
CellSelection(DataCell anchor)
Alias for CellSelection(anchor, anchor). |
|
CellSelection(DataCell anchor,
DataCell 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. |
ColumnSelection |
getColumns()
Returns the set of columns associated with this selection. |
java.awt.Rectangle |
getDisplayedBounds()
Returns a rectangle that represents the displayed area of the selection in the table view. |
java.util.Enumeration |
getItems()
Returns an enumeration of all the items in the selection. |
RowSelection |
getRows()
Returns the set of rows associated with this selection. |
protected Selection |
newSelection(TableElement anchor,
TableElement end)
Creates a new selection of the same class, but with different items. |
protected void |
onEndChanged(TableElement oldValue,
TableElement newValue)
Called by setEnd() to notify subclasses of a change
to the end. |
void |
setEnd(java.lang.Object newValue)
Specifies the object that defines the unanchored or floating end of the selection. |
| Methods inherited from class com.sas.table.Selection |
|---|
addContentsChangedListener, addPropertyChangeListener, apply, clone, fireContentsChanged, firePropertyChange, firePropertyChange, getAnchor, getEnd, getTableView, isDisplayed, isModified, isSelected, refresh, removeContentsChangedListener, removePropertyChangeListener, repaint |
| Constructor Detail |
|---|
public CellSelection(DataCell anchor)
CellSelection(anchor, anchor).
anchor - The value to assign the anchor property.
public CellSelection(DataCell anchor,
DataCell end)
anchor - The value to assign the anchor property.end - The value to assign the end property.Selection.getAnchor(),
Selection.getEnd()| Method Detail |
|---|
public int count()
count in interface com.sas.util.Countablecount in class Selectionpublic boolean contains(java.lang.Object item)
contains in interface com.sas.collection.StaticCollectionInterfacecontains in interface com.sas.models.StaticSelectionInterfacecontains in class Selectionitem - The item to search for.
true if the selection contains the item and
false otherwise.
java.lang.ClassCastException - If item is not a DataCell.public ColumnSelection getColumns()
null will be returned.public java.awt.Rectangle getDisplayedBounds()
getDisplayedBounds in class SelectionSelection.isDisplayed()public java.util.Enumeration getItems()
getItems in interface com.sas.util.EnumerablegetItems in class Selectionpublic RowSelection getRows()
null will be returned.public void setEnd(java.lang.Object newValue)
setEnd in interface com.sas.models.SelectionInterfacesetEnd in class SelectionnewValue - The new value to assign the end property.
java.lang.ClassCastException - If newValue is not a DataCell.Selection.getEnd(),
Selection.onEndChanged(com.sas.table.TableElement, com.sas.table.TableElement),
Selection.addContentsChangedListener(com.sas.collection.ContentsChangedListener)
protected Selection newSelection(TableElement anchor,
TableElement end)
newSelection in class Selectionanchor - The value to assign the anchor property.end - The value to assign the end property.
Selection.clone()
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 SelectionoldValue - 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 | |||||||||||||