All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.event.SelectionEvent Maven / Gradle / Ivy

The newest version!
/*
 * Sencha GXT 2.3.1 - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/license/
 */
 package com.extjs.gxt.ui.client.event;

import com.extjs.gxt.ui.client.data.ModelData;

/**
 * Selection event type. A selection event is fired when the selection state of
 * a individual model changes. A SelectionChangedEvent is fired
 * when the overall selection state of a component changes.
 * 
 * 

* Note: For a given event, only the fields which are appropriate will be filled * in. The appropriate fields for each event are documented by the event source. * * @param the model data type * * @see SelectionChangedEvent */ public class SelectionEvent extends BaseEvent { /** * The model. */ private M model; /** * The index. */ private int index; public SelectionEvent(Object source, M model) { super(source); this.model = model; } /** * Returns the model. * * @return the model */ public M getModel() { return model; } /** * Sets the model. * * @param model the model */ public void setModel(M model) { this.model = model; } /** * Returns the index. * * @return the index */ public int getIndex() { return index; } /** * Sets the index. * * @param index */ public void setIndex(int index) { this.index = index; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy