⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 databindingevent.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 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 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -