public class ViewModel extends java.lang.Object implements ViewInterface, ViewModelInterface
| Constructor and Description |
|---|
ViewModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
static int |
getNextSerial() |
void |
hideLoading() |
void |
operationFinished(int serial,
boolean isSucceed) |
void |
setView(ViewInterface view) |
void |
showAlert(java.lang.String title,
java.lang.String msg) |
void |
showHud(java.lang.String msg) |
void |
showLoading() |
public static int getNextSerial()
public void showLoading()
showLoading in interface ViewInterfacepublic void hideLoading()
hideLoading in interface ViewInterfacepublic void showHud(java.lang.String msg)
showHud in interface ViewInterfacepublic void showAlert(java.lang.String title,
java.lang.String msg)
showAlert in interface ViewInterfacepublic void operationFinished(int serial,
boolean isSucceed)
operationFinished in interface ViewInterfacepublic void setView(ViewInterface view)
setView in interface ViewModelInterfacepublic void cancel()
cancel in interface ViewModelInterface