public class TableViewModelEvent extends EventObject
javas.swing.event.TableModelEvent,
序列化表格| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DELETE
Identifies the removal of rows or columns.
|
static int |
HEADER_ROW
Identifies the header row.
|
static int |
INSERT
Identifies the addtion of new rows or columns.
|
protected int |
mColumn
the colimn index
|
protected Collection |
mRowObjects
the row object
|
protected int |
mType
the type
|
static int |
UPDATE
Identifies a change to existing data.
|
source| 构造器和说明 |
|---|
TableViewModelEvent(TableViewModel pSource)
Construct with source model.
|
TableViewModelEvent(TableViewModel pSource,
Collection pRowObjects)
Construct with source model and row Objects.
|
TableViewModelEvent(TableViewModel pSource,
Collection pRowObjects,
int pType)
Construct with source model, rows Objects and type.
|
TableViewModelEvent(TableViewModel pSource,
Object pRowObject)
Construct with source model and row Object.
|
TableViewModelEvent(TableViewModel pSource,
Object pRowObject,
int pType)
Construct with source model, row Object and type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection |
getRowObjects()
Returns a collection of row Object.
|
int |
getType()
Returns the type of event - one of: INSERT, UPDATE and DELETE.
|
getSource, toStringpublic static final int INSERT
public static final int UPDATE
public static final int DELETE
public static final int HEADER_ROW
protected int mType
protected Collection mRowObjects
protected int mColumn
public TableViewModelEvent(TableViewModel pSource)
pSource - the modelpublic TableViewModelEvent(TableViewModel pSource, Object pRowObject)
pSource - the modelpRowObject - the row Objectpublic TableViewModelEvent(TableViewModel pSource, Object pRowObject, int pType)
pSource - the modelpRowObject - the row ObjectpType - the type (INSERT, DELETE or UPDATE)public TableViewModelEvent(TableViewModel pSource, Collection pRowObjects)
pSource - the modelpRowObjects - the rows Objectspublic TableViewModelEvent(TableViewModel pSource, Collection pRowObjects, int pType)
pSource - the modelpRowObjects - the rows ObjectspType - the type (INSERT, DELETE or UPDATE)public Collection getRowObjects()
public int getType()
Copyright © 2023 onecode. All rights reserved.