public interface IViewModel
| Modifier and Type | Method and Description |
|---|---|
IMutableProperty<java.lang.Boolean> |
active() |
<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. |
IProperty<java.lang.Boolean> |
enabled() |
rx.Observable<IViewModelException> |
errors()
An Observable of all errors that occur in the receiver.
|
IProperty<java.lang.Boolean> |
loading() |
IProperty<java.lang.CharSequence> |
title() |
IMutableProperty<java.lang.Boolean> active()
IProperty<java.lang.CharSequence> title()
IProperty<java.lang.Boolean> loading()
IProperty<java.lang.Boolean> enabled()
rx.Observable<IViewModelException> errors()
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.