public class Selection
extends java.lang.Object
implements java.io.Serializable
SelectionSets may be non-empty at any time.| Constructor and Description |
|---|
Selection()
Creates a new, empty selection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the selection, so that nothing is selected.
|
boolean |
equals(java.lang.Object object)
Compares the specified object with this selection for equality.
|
HeaderCellSelectionSet |
getColumnHeaderCells()
Returns the
HeaderCellSelectionSet containing the selected column header cells. |
DataCellSelectionSet |
getDataCells()
Returns the
DataCellSelectionSet containing the selected datacells. |
protected DataModel |
getDataModel()
Returns the data model used by this selection.
|
protected PivotTableModel |
getPivotTableModel()
Deprecated.
Use the
getDataModel method instead. |
HeaderCellSelectionSet |
getRowHeaderCells()
Returns the
HeaderCellSelectionSet containing the selected row header cells. |
int |
hashCode() |
protected void |
setDataModel(DataModel model)
Sets the data model on the selection.
|
protected void |
setPivotTableModel(PivotTableModel model)
Deprecated.
Use the
setDataModel method instead. |
public void clear()
public HeaderCellSelectionSet getColumnHeaderCells()
HeaderCellSelectionSet containing the selected column header cells.HeaderCellSelectionSet containing the selected column header cells.
Possibly empty, but never null.public HeaderCellSelectionSet getRowHeaderCells()
HeaderCellSelectionSet containing the selected row header cells.HeaderCellSelectionSet containing the selected row header cells.
Possibly empty, but never null.public DataCellSelectionSet getDataCells()
DataCellSelectionSet containing the selected datacells.DataCellSelectionSet containing the selected datacells.
Possibly empty, but never null.protected void setDataModel(DataModel model)
model - the data modelprotected DataModel getDataModel()
@Deprecated protected void setPivotTableModel(PivotTableModel model)
setDataModel method instead.model - the Pivot Table model@Deprecated protected PivotTableModel getPivotTableModel()
getDataModel method instead.public boolean equals(java.lang.Object object)
true
if and only if the specified object is a Selection object whose three
SelectionSets are equal to those of this Selection, respectively.equals in class java.lang.Objectobject - the object to test for equalitytrue if the specified object is equal to this object; false otherwisepublic int hashCode()
hashCode in class java.lang.Object