public class PivotDataEvent extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_COLUMNS
Specifies all columns in a row or rows.
|
static int |
DELETE
Identifies the removal of rows or columns.
|
static int |
HEADER_ROW
Identifies the header row.
|
static int |
INSERT
Identifies the addition of new rows or columns.
|
static int |
UPDATE
Identifies a change to existing data.
|
Constructor and Description |
---|
PivotDataEvent(PivotModel model)
All row data in the pivot model has changed, listeners should discard any
state that was based on the rows and requery the
PivotModel
to get the new row count and all the appropriate values. |
PivotDataEvent(PivotModel model,
int row)
This row of data has been updated.
|
PivotDataEvent(PivotModel model,
int firstRow,
int lastRow)
The data in rows [firstRow, lastRow] have been updated.
|
PivotDataEvent(PivotModel model,
int firstRow,
int lastRow,
int column)
The cells in column column in the range [firstRow,
lastRow] have been updated.
|
PivotDataEvent(PivotModel model,
int firstRow,
int lastRow,
int column,
int type)
The cells from (firstRow, column) to (lastRow, column) have been changed.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the column for the event.
|
int |
getFirstRow()
Returns the first row that changed.
|
int |
getLastRow()
Returns the last row that changed.
|
PivotModel |
getPivotModel()
Returns the pivot model which fires the event.
|
int |
getType()
Returns the type of event - one of: INSERT, UPDATE and DELETE.
|
public static final int UPDATE
public static final int DELETE
public static final int INSERT
public static final int HEADER_ROW
public static final int ALL_COLUMNS
public PivotDataEvent(PivotModel model)
PivotModel
to get the new row count and all the appropriate values. The Pivottable
will render the entire visible region on receiving this event, querying
the model for the cell values that are visible. The structure of the pivot
table i.e., the column names, types and order have not changed.public PivotDataEvent(PivotModel model, int row)
HEADER_ROW
as
the value for the row
. This is the same as calling
setModel(PivotModel)
on the Pivottable
.public PivotDataEvent(PivotModel model, int firstRow, int lastRow)
public PivotDataEvent(PivotModel model, int firstRow, int lastRow, int column)
public PivotDataEvent(PivotModel model, int firstRow, int lastRow, int column, int type)
The type should be one of: INSERT, UPDATE and DELETE.
public PivotModel getPivotModel()
public int getFirstRow()
public int getLastRow()
public int getColumn()
public int getType()
Copyright © 2017. All rights reserved.