Search in sources :

Example 1 with CoordinatorBinder

use of com.cjsoftware.library.ucs.CoordinatorBinder in project ucsFramework by cjsoftware-lib.

the class AbstractUiActivity method onAfterStateRestored.

@Override
protected void onAfterStateRestored() {
    super.onAfterStateRestored();
    CoordinatorBinder coordinatorBinder = mContractBroker.getCoordinatorBinder();
    coordinatorBinder.bindUi(this);
    coordinatorBinder.bindScreenNavigation(this);
    setUserNavigationRequestListener(mUserNavigationRequestListener);
}
Also used : CoordinatorBinder(com.cjsoftware.library.ucs.CoordinatorBinder)

Example 2 with CoordinatorBinder

use of com.cjsoftware.library.ucs.CoordinatorBinder in project ucsFramework by cjsoftware-lib.

the class TestUcsTestAppCoordinator method setup.

@Before
public void setup() {
    mMockUi = mock(Ui.class);
    mMockScreenNavigation = mock(ScreenNavigation.class);
    mMockStatemanager = mock(StateManager.class);
    mCoordinator = new UcsActivityCoordinator();
    ((CoordinatorBinder) mCoordinator).bindUi(mMockUi);
    ((CoordinatorBinder) mCoordinator).bindScreenNavigation(mMockScreenNavigation);
    ((CoordinatorBinder) mCoordinator).bindStateManager(mMockStatemanager);
}
Also used : Ui(com.cjsoftware.ucstestapp.ucsactivity.UcsActivityContract.Ui) StateManager(com.cjsoftware.ucstestapp.ucsactivity.UcsActivityContract.StateManager) UcsActivityCoordinator(com.cjsoftware.ucstestapp.ucsactivity.impl.UcsActivityCoordinator) ScreenNavigation(com.cjsoftware.ucstestapp.ucsactivity.UcsActivityContract.ScreenNavigation) CoordinatorBinder(com.cjsoftware.library.ucs.CoordinatorBinder) Before(org.junit.Before)

Aggregations

CoordinatorBinder (com.cjsoftware.library.ucs.CoordinatorBinder)2 ScreenNavigation (com.cjsoftware.ucstestapp.ucsactivity.UcsActivityContract.ScreenNavigation)1 StateManager (com.cjsoftware.ucstestapp.ucsactivity.UcsActivityContract.StateManager)1 Ui (com.cjsoftware.ucstestapp.ucsactivity.UcsActivityContract.Ui)1 UcsActivityCoordinator (com.cjsoftware.ucstestapp.ucsactivity.impl.UcsActivityCoordinator)1 Before (org.junit.Before)1