📄 rowselectionevent.java
字号:
package com.esri.solutions.jitk.web.data.results;
import java.util.EventObject;
/**
* This class represents an event of interest to registered listeners that
* occurred on the specified table model.
*
* @author Carsten Piepel
*
* @see TableModel
* @see RowSelectionListener
*/
public class RowSelectionEvent extends EventObject {
private static final long serialVersionUID = 7666668993779766861L;
private TableModel tableModel;
private int rowIndex;
private Object rowData;
/**
* Construct an event object that is associated with the specified row
* index and associated data.
*
* @param tableModel the table model on which this event occurred
* @param rowIndex the 0-based row index for which this event occurred,
* or <code>-1</code> for no specific row association
* @param rowData representation of the data for the row specified by index,
* or <code>null</code> for no particular row data
*/
public RowSelectionEvent(TableModel tableModel, int rowIndex,
Object rowData) {
super(tableModel);
this.tableModel = tableModel;
this.rowIndex = rowIndex;
this.rowData = rowData;
}
/**
* Return the table model that fired this event.
*
* @return the table mdoel that fired this event.
*/
public TableModel getTableModel() {
return tableModel;
}
/**
* Return the 0-based row index for which this event occurred,
* or <code>-1</code> for no specific row association.
*
* @return the 0-based row index for which this event occurred,
* or <code>-1</code> for no specific row association.
*/
public int getRowIndex() {
return rowIndex;
}
/**
* Return the object representing the data for the specified row index,
* or <code>null</code> for no associated row data.
*
* @return the object representing the data for the specified row index,
* or <code>null</code> for no associated row data.
*/
public Object getRowData() {
return rowData;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -