Exemplo n.º 1
0
 /**
  * gets member list
  *
  * @return leader list
  * @throws Exception
  */
 public List<Identity> getMemberList() throws Exception {
   setMemberList(loadPeople(0, currentLoadIndex + MEMBER_PER_PAGE, Type.MEMBER));
   int realMemberListSize = memberList.size();
   setEnableLoadNext(
       (realMemberListSize >= MEMBER_PER_PAGE) && (realMemberListSize < getMemberNum()));
   return memberList;
 }
Exemplo n.º 2
0
 public void execute(Event<UIMembersPortlet> event) throws Exception {
   UIMembersPortlet uiMembersPortlet = event.getSource();
   if (uiMembersPortlet.currentLoadIndex < uiMembersPortlet.memberNum) {
     uiMembersPortlet.increaseOffset();
   } else {
     uiMembersPortlet.setEnableLoadNext(false);
   }
 }