databindingevent.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 57 行

JAVA
57
字号
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 DataBindingListener
 */
public class DataBindingEvent extends EventObject {

    private static final long serialVersionUID = 7666668993779766861L;
    
    private TableModel tableModel;    
    private Object data;
    
    /**
     * Construct an event object that is associated with the specified table 
     * model and data collection.
     * 
     * @param tableModel the table model on which this event occurred
     * @param data representation of the data collection bound to the table 
     * model or <code>null</code> if no data is bound.
     */
    public DataBindingEvent(TableModel tableModel, Object data) {
        
        super(tableModel);
        
        this.tableModel = tableModel;
        this.data = data;
    }
    
    /**
     * Return the table model that fired this event.
     * 
     * @return the table mdoel that fired this event.
     */
    public TableModel getTableModel() {
        return tableModel;
    }       
    
    /**
     * Return the object representing the data collection bound to the table 
     * model or <code>null</code> if no data is bound.
     * 
     * @return the object representing the data collection bound to the table 
     * model or <code>null</code> if no data is bound.
     */
    public Object getData() {
        return data;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?