|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.common.ui.client.mvc.CollectionModel<T>
T - the type of model object to be contained within the modelpublic class CollectionModel<T>
Model object used as a container for the model state. Sources ModelChangeEvents used for tracking the model state.
| Field Summary | |
|---|---|
private Map<String,T> |
data
|
private com.google.gwt.event.shared.HandlerManager |
handlers
|
private T |
value
|
| Constructor Summary | |
|---|---|
CollectionModel()
|
|
| Method Summary | |
|---|---|
void |
add(T object)
Adds an object to the model, and fires a ModelChangeEvent |
com.google.gwt.event.shared.HandlerRegistration |
addModelChangeHandler(ModelChangeHandler handler)
Adds a ModelChangeHandler that will be invoked for ModelChangeEvents |
T |
getValue()
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()
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)
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 |
| Field Detail |
|---|
private Map<String,T> data
private com.google.gwt.event.shared.HandlerManager handlers
private T value
| Constructor Detail |
|---|
public CollectionModel()
| Method Detail |
|---|
public void add(T object)
object - public T remove(T object)
object -
public com.google.gwt.event.shared.HandlerRegistration addModelChangeHandler(ModelChangeHandler handler)
addModelChangeHandler in interface Modelhandler - the handler to add
public Collection<T> getValues()
public T getValue()
public void setValue(T value)
value - the new value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||