public interface IViewModel
| Modifier and Type | Method and Description |
|---|---|
<I,R> void |
bindCommand(ICommand<I,R> command)
Binds
command executing and errors of command to the receiver. |
void |
bindErrors(rx.Observable<IViewModelException> errorObservable)
Binds
errorsObservable to the receiver. |
void |
bindLoading(rx.Observable<java.lang.Boolean> loadingObservable)
Binds
loadingObservable to the receiver. |
IMutableProperty<java.lang.Boolean> |
getActive() |
rx.Observable<IViewModelException> |
getErrors()
An Observable of all errors that occur in the receiver.
|
IProperty<java.lang.CharSequence> |
getTitle() |
IProperty<java.lang.Boolean> |
isEnabled() |
IProperty<java.lang.Boolean> |
isLoading() |
IMutableProperty<java.lang.Boolean> getActive()
IProperty<java.lang.CharSequence> getTitle()
IProperty<java.lang.Boolean> isLoading()
IProperty<java.lang.Boolean> isEnabled()
rx.Observable<IViewModelException> getErrors()
void bindLoading(rx.Observable<java.lang.Boolean> loadingObservable)
loadingObservable to the receiver.loadingObservable - An Observable which sends true if loading, false otherwise.void bindErrors(rx.Observable<IViewModelException> errorObservable)
errorsObservable to the receiver.errorObservable - An Observable which sends IViewModelException.<I,R> void bindCommand(ICommand<I,R> command)
command executing and errors of command to the receiver.
If command errors are not instanceof IViewModelException, these errors will not be forward from the receiver.