-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UsherBaby
authored and
UsherBaby
committed
May 6, 2016
1 parent
3f4504c
commit 3d9f945
Showing
13 changed files
with
58 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
PacificMVC/mvc/src/main/java/com/pacific/mvc/ActivityModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
package com.pacific.mvc; | ||
|
||
import android.support.annotation.CallSuper; | ||
|
||
public abstract class ActivityModel<T extends ActivityView> extends MVCModel<T> { | ||
|
||
public ActivityModel(T mvcView) { | ||
super(mvcView); | ||
public ActivityModel(T view) { | ||
super(view); | ||
} | ||
|
||
@CallSuper | ||
public void onCreate() { | ||
mvcView.onCreate(); | ||
view.onCreate(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
PacificMVC/mvc/src/main/java/com/pacific/mvc/FragmentModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package com.pacific.mvc; | ||
|
||
import android.support.annotation.CallSuper; | ||
import android.view.View; | ||
|
||
public abstract class FragmentModel<T extends FragmentView> extends MVCModel<T> { | ||
public FragmentModel(T mvcView) { | ||
super(mvcView); | ||
public FragmentModel(T view) { | ||
super(view); | ||
} | ||
|
||
@CallSuper | ||
public void onCreatedView(View rootView) { | ||
mvcView.onCreatedView(rootView); | ||
view.onCreatedView(rootView); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.pacific.mvc; | ||
|
||
public abstract class MVCModel<T extends MVCView> { | ||
protected T mvcView; | ||
protected T view; | ||
|
||
public MVCModel(T mvcView) { | ||
this.mvcView = mvcView; | ||
public MVCModel(T view) { | ||
this.view = view; | ||
} | ||
} |