|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmvc.UpdateManager<T,TM>
public class UpdateManager<T,TM extends NamedModel<? extends T>>
An UpdateManager manages update communication between a controller and its current model.
| Constructor Summary | |
|---|---|
UpdateManager(TM m,
Callback umc,
Callback rmc,
Callback uvc)
new UpdateManager(m, umc, rmc, uvc) returns a new update manager for a controller that interacts with m. |
|
| Method Summary | |
|---|---|
TM |
getModel()
um.getModel() returns um's current model. |
void |
setModel(TM m)
um.setModel(m) replaces um's current model with m. |
void |
setModelValue()
um.setModelValue() updates um's current model if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateManager(TM m,
Callback umc,
Callback rmc,
Callback uvc)
m - the model whose updates are to be controlledumc - the callback for updating the model valuermc - the callback for replacing the model with another modeluvc - the callback for updating the controller's view| Method Detail |
|---|
public void setModel(TM m)
m - the new modelpublic TM getModel()
public void setModelValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||