|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zul.event.ListDataEvent
org.adempiere.webui.event.WTableModelEvent
public class WTableModelEvent
| Field Summary | |
|---|---|
static int |
ALL_COLUMNS
Specifies all columns in a row or rows. |
static int |
ALL_ROWS
Specifies all rows. |
static int |
HEADER_ROW
Identifies the header row. |
protected int |
m_column
|
| Fields inherited from class org.zkoss.zul.event.ListDataEvent |
|---|
CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED |
| Constructor Summary | |
|---|---|
WTableModelEvent(ListModel source)
All row data in the table has changed, listeners should discard any state that was based on the rows and requery the TableModel to
get the new row count and all the appropriate values. |
|
WTableModelEvent(ListModel source,
int row)
This row of data has been updated. |
|
WTableModelEvent(ListModel source,
int row,
int column)
The cell in [row,column] has been updated. |
|
WTableModelEvent(ListModel source,
int firstRow,
int lastRow,
int column,
int type)
The cells from (firstRow, column) to (lastRow, column) have been changed. |
|
| Method Summary | |
|---|---|
int |
getColumn()
Returns the column for the event. |
int |
getFirstRow()
Obtain the index of the first affected row |
int |
getLastRow()
Obtain the index of the last affected row |
| Methods inherited from class org.zkoss.zul.event.ListDataEvent |
|---|
getIndex0, getIndex1, getModel, getType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL_ROWS
public static final int ALL_COLUMNS
public static final int HEADER_ROW
protected int m_column
| Constructor Detail |
|---|
public WTableModelEvent(ListModel source)
TableModel to
get the new row count and all the appropriate values. The
WListbox 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 ie, the column names, types and order have not
changed.
source - The list model that has changed
public WTableModelEvent(ListModel source,
int row)
HEADER_ROW as the
value for the row.
source - The list model that has changedrow - Index of the affected row
public WTableModelEvent(ListModel source,
int row,
int column)
source - The list model that has changedrow - Index of the affected rowcolumn - Index of the affected column
public WTableModelEvent(ListModel source,
int firstRow,
int lastRow,
int column,
int type)
The type should be one of: CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED.
source - The list model that has changedfirstRow - Index of the first affected rowlastRow - Index of the last affected rowcolumn - Index of the affected columntype - the type of change| Method Detail |
|---|
public int getColumn()
ALL_COLUMNS it
means every column in the specified row has been affected.
ALL_COLUMNSpublic int getFirstRow()
public int getLastRow()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||