Advertisement
Guest User

Untitled

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