Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.48 KB | None | 0 0
  1.  
  2. object Person extends ViewConfig {
  3.     @Page
  4.     object PersonList extends ViewConfig
  5.  
  6.     @Page
  7.     object PersonDetail extends ViewConfig
  8.  
  9.   /*remapping of the function call hierarchy to make the code leaner*/
  10.   def GO_DETA: Class[_] = Person.PersonDetail.getClass
  11.   def GO_LIST: Class[_] = Person.PersonList.getClass
  12.  
  13. }
  14.  
  15.  
  16. class PersonListView extends PersonListViewModel {
  17.  
  18.   import Person._
  19.  def doSearchList: java.lang.Class[_] = {
  20.     refresh
  21.  
  22.     GO_LIST
  23.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement