|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.table.ColumnSelection
public class ColumnSelection
Represents a contiguous range of columns in a TableView.
Selection,
CellSelection,
CellVectorSelection,
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 | |
|---|---|
ColumnSelection(Column anchor)
Alias for ColumnSelection(anchor, anchor). |
|
ColumnSelection(Column anchor,
Column 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. |
java.awt.Rectangle |
getDisplayedBounds()
Returns a rectangle that represents the displayed area of the selection in the table view. |
protected Selection |
newSelection(TableElement anchor,
TableElement end)
Creates a new selection of the same class, but with different items. |
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.CellVectorSelection |
|---|
count, getCells, getItems, onEndChanged |
| 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 ColumnSelection(Column anchor)
ColumnSelection(anchor, anchor).
anchor - The value to assign the anchor property.
public ColumnSelection(Column anchor,
Column 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 StaticCollectionInterfacecontains in interface StaticSelectionInterfacecontains in class CellVectorSelectionitem - The item to search for.
true if the selection contains the item and
false otherwise.
java.lang.ClassCastException - If item is not a Column or DataCell.public java.awt.Rectangle getDisplayedBounds()
getDisplayedBounds in class SelectionSelection.isDisplayed()public void setEnd(java.lang.Object newValue)
setEnd in interface SelectionInterfacesetEnd in class SelectionnewValue - The new value to assign the end property.
java.lang.ClassCastException - If newValue is not a Column or 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()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||