|
|
@@ -27,10 +27,16 @@ public abstract class ViewModel implements IExit {
|
|
|
public static final int INT_NONE = -232748271; /// onEvent 로 intValue 가 전달되지 않으면 맵핑되는 값
|
|
|
public static final String STRING_NONE = null; /// onEvent 로 stringValue 가 전달되지 않으면 맵핑되는 값
|
|
|
|
|
|
+ IViewModelEventListener viewModelEventListener;
|
|
|
+
|
|
|
public ViewModel(ScreenChanger screenChanger) {
|
|
|
this.screenChanger = screenChanger;
|
|
|
}
|
|
|
|
|
|
+ public void setEventListener(IViewModelEventListener listener) {
|
|
|
+ viewModelEventListener = listener;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* View 로 부터 전달되는 이벤트 처리
|
|
|
*
|