001    /**
002     * Copyright 2010 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     */
015    
016    package org.kuali.student.common.ui.client.mvc;
017    
018    
019    /**
020     * Event that is fired when the model is changed.
021     * 
022     * @author Kuali Student Team
023     * @param <T>
024     */
025    public class CollectionModelChangeEvent<T> extends ModelChangeEvent {
026        private final T value;
027        
028        /**
029         * Constructs a new ModelChangeEvent with an action and a value
030         * 
031         * @param action
032         * @param value
033         */
034        public CollectionModelChangeEvent(Action action, Model source, T value) {
035            super(action, source);
036            this.value = value;
037        }
038        
039    
040        /**
041         * Returns the object with which the event is associated
042         * 
043         * @return
044         */
045        public T getValue() {
046            return this.value;
047        }
048    }