DataModelEvent (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.faces.model Class DataModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.model.DataModelEvent
所有已实现的接口:
Serializable

public class DataModelEvent
extends EventObject

DataModelEvent represents an event of interest to registered listeners that occurred on the specified DataModel.

另请参见:
Serialized Form

字段摘要
 
Fields inherited from class java.util.EventObject
source
 
构造器摘要
DataModelEvent(DataModel model, int index, Object data)
          Construct an event object that is associated with the specified row index and associated data.
 
方法摘要
 DataModel getDataModel()
          Return the DataModel that fired this event.
 Object getRowData()
          Return the object representing the data for the specified row index, or null for no associated row data.
 int getRowIndex()
          Return the row index for this event, or -1 for no specific row.
 
类方法继承 java.util.EventObject
getSource, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

DataModelEvent

public DataModelEvent(DataModel model,
                      int index,
                      Object data)

Construct an event object that is associated with the specified row index and associated data.

参数:
model - The DataModel on which this event occurred
index - The zero relative row index for which this event occurred, or -1 for no specific row association
data - Representation of the data for the row specified by index, or null for no particular row data

方法详细信息

getDataModel

public DataModel getDataModel()

Return the DataModel that fired this event.


getRowData

public Object getRowData()

Return the object representing the data for the specified row index, or null for no associated row data.


getRowIndex

public int getRowIndex()

Return the row index for this event, or -1 for no specific row.


Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.