|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.cosylab.gui.components.table.TableRowModelEvent
public class TableRowModelEvent
TableRowModelEvent
contains information about changes in
TableRowModel
.
Field Summary | |
---|---|
static int |
ALL_VALUES
Identifies element index which applies for all row elements. |
static int |
DELETE
Identifies the removal of rows. |
static int |
HEADER_ROW
Identifies structural change. |
static int |
INSERT
Identifies the addtion of new rows. |
static int |
UPDATE
Identifies a change to existing data. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
TableRowModelEvent(TableRow[] sources,
int value,
int type)
Creates new event. |
|
TableRowModelEvent(TableRow source,
int index)
Creates new event with row as source, column value is by default ALL_VALUES and type is UPDATE . |
|
TableRowModelEvent(TableRow source,
int index,
int value)
Creates new event with row as source and value index, type is UPDATE .. |
|
TableRowModelEvent(TableRow source,
int index,
int value,
int type)
Creates new event. |
Method Summary | |
---|---|
TableRow |
getRow()
Returns row, which was source of event. |
int |
getRowIndex()
Returns the index of rowinside parent model. |
TableRow[] |
getRows()
Returns array of rows, which are source of this event. |
int |
getType()
Returns type of event, valid value is INSERT ,
DELETE and UPDATE . |
int |
getValue()
Returns index of value for which event applies |
java.lang.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 HEADER_ROW
public static final int ALL_VALUES
public static final int INSERT
public static final int UPDATE
public static final int DELETE
Constructor Detail |
---|
public TableRowModelEvent(TableRow source, int index)
ALL_VALUES
and type is UPDATE
.
source
- index
- the index of row in parent modelpublic TableRowModelEvent(TableRow source, int index, int value)
UPDATE
..
source
- table row as sourceindex
- the index of row in parent modelvalue
- the value index
java.lang.IllegalArgumentException
- if value isless then -1public TableRowModelEvent(TableRow source, int index, int value, int type)
source
- table row as sourceindex
- the index of row in parent modelvalue
- the value indextype
- the type of event
java.lang.IllegalArgumentException
- if type is not one of
INSERT
, DELETE
or UPDATE
valuespublic TableRowModelEvent(TableRow[] sources, int value, int type)
sources
- table row as sourcevalue
- the value indextype
- the type of eventMethod Detail |
---|
public int getValue()
public int getType()
INSERT
,
DELETE
and UPDATE
.
public TableRow getRow()
public TableRow[] getRows()
public int getRowIndex()
public java.lang.String toString()
toString
in class java.util.EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |