org.kuali.student.common.ui.client.mvc
Class CollectionModel<T>

java.lang.Object
  extended by org.kuali.student.common.ui.client.mvc.CollectionModel<T>
Type Parameters:
T - the type of model object to be contained within the model
All Implemented Interfaces:
Model

Deprecated.

@Deprecated
public class CollectionModel<T>
extends Object
implements Model

Model object used as a container for the model state. Sources ModelChangeEvents used for tracking the model state.

Author:
Kuali Student Team

Constructor Summary
CollectionModel()
          Deprecated.  
 
Method Summary
 void add(T object)
          Deprecated. Adds an object to the model, and fires a ModelChangeEvent
 com.google.gwt.event.shared.HandlerRegistration addModelChangeHandler(ModelChangeHandler handler)
          Deprecated. Adds a ModelChangeHandler that will be invoked for ModelChangeEvents
 T getValue()
          Deprecated. Returns the Model's value Going forward, the Model class should primarily be used with a single DataModel instance for use with the configurable UI framework.
 Collection<T> getValues()
          Deprecated. Returns an unsorted, umodifiable collection of the values contained within the model.
 T remove(T object)
          Deprecated. should use new Data structures instead, accessed via getValue, setValue
 void setValue(T value)
          Deprecated. Sets the Model's value Going forward, the Model class should primarily be used with a single DataModel instance for use with the configurable UI framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionModel

public CollectionModel()
Deprecated. 
Method Detail

add

public void add(T object)
Deprecated. 
Adds an object to the model, and fires a ModelChangeEvent

Parameters:
object -

remove

public T remove(T object)
Deprecated. should use new Data structures instead, accessed via getValue, setValue

Removes the specified model object from the model

Parameters:
object -
Returns:
the object that was removed, or null if not found

addModelChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addModelChangeHandler(ModelChangeHandler handler)
Deprecated. 
Adds a ModelChangeHandler that will be invoked for ModelChangeEvents

Specified by:
addModelChangeHandler in interface Model
Parameters:
handler - the handler to add
Returns:
HandlerRegistration that can be used to unregister the handler later

getValues

public Collection<T> getValues()
Deprecated. 
Returns an unsorted, umodifiable collection of the values contained within the model.

Returns:
an unsorted, umodifiable collection of the values contained within the model.

getValue

public T getValue()
Deprecated. 
Returns the Model's value Going forward, the Model class should primarily be used with a single DataModel instance for use with the configurable UI framework.

Returns:
the Model's value

setValue

public void setValue(T value)
Deprecated. 
Sets the Model's value Going forward, the Model class should primarily be used with a single DataModel instance for use with the configurable UI framework.

Parameters:
value - the new value


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.