|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.jidesoft.grid.RowHeightChangeEvent
public class RowHeightChangeEvent
RowHeightChangeEvent is used to notify listeners that a table's row height has changed. Depending on the parameters used in the constructors, the RowHeightChangeEvent can be used to specify the following types of changes:
RowHeightChangeEvent(source); // The data, i.e. all rows height changed RowHeightChangeEvent(source, 1); // Row 1 height changed RowHeightChangeEvent(source, 3, 6); // Rows 3 to 6 inclusive changed RowHeightChangeEvent(source, 3, 6, INSERT); // Rows (3, 6) were inserted RowHeightChangeEvent(source, 3, 6, DELETE); // Rows (3, 6) were deleted
Field Summary | |
---|---|
static int |
DELETE
Identifies the removal of rows. |
protected int |
firstRow
|
static int |
INSERT
Identifies the addition of new rows. |
protected int |
lastRow
|
protected int |
type
|
static int |
UPDATE
Identifies a change to existing data. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
RowHeightChangeEvent(RowHeights source)
All row data in the table has changed, listeners should discard any state that was based on the rows and re-query the RowHeights to get the new row count and all the appropriate values. |
|
RowHeightChangeEvent(RowHeights source,
int row)
This row of data has been updated. |
|
RowHeightChangeEvent(RowHeights source,
int firstRow,
int lastRow)
The data in rows [firstRow, lastRow] have been updated. |
|
RowHeightChangeEvent(RowHeights source,
int firstRow,
int lastRow,
int type)
The cells from (firstRow, column) to (lastRow, column) have been changed. |
Method Summary | |
---|---|
int |
getFirstRow()
Returns the first row that is changed. |
int |
getLastRow()
Returns the last row that changed. |
int |
getType()
Returns the type of event - one of: INSERT, UPDATE and DELETE. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INSERT
public static final int UPDATE
public static final int DELETE
protected int type
protected int firstRow
protected int lastRow
Constructor Detail |
---|
public RowHeightChangeEvent(RowHeights source)
RowHeights
to get the new row count and all the appropriate values. The JTable
will
repaint the entire visible region on receiving this event, querying the model for the cell values that are
visible. The structure of the table, i.e. the column names, types and order have not changed.
source
- the source for the event.public RowHeightChangeEvent(RowHeights source, int row)
HEADER_ROW
as the value for the row
. When the JTable
receives this event
and its autoCreateColumnsFromModel
flag is set it discards any TableColumns that it had and
reallocates default ones in the order they appear in the model. This is the same as calling
setModel(RowHeights)
on the JTable
.
source
- the source for the event.row
- the row index.public RowHeightChangeEvent(RowHeights source, int firstRow, int lastRow)
source
- the source for the event.firstRow
- the first row index.lastRow
- the last row index.public RowHeightChangeEvent(RowHeights source, int firstRow, int lastRow, int type)
source
- the source for the event.firstRow
- the first row index.lastRow
- the last row index.type
- the event type.Method Detail |
---|
public int getFirstRow()
public int getLastRow()
public int getType()
public String toString()
toString
in class EventObject
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |