コード例 #1
0
  public List getEntries(int startIndex, int endIndex) {
    // User code starts here
    if (agentName.initTopo()) {
      ArrayList arrayList = new ArrayList();
      int noOfObj = getCount();
      String[] name = {""}; // No I18N

      for (int i = 0; i < noOfObj; i++) {
        if (name[0].trim().equals("")) // No I18N
        {
          getFirstMo(name);
        } else {
          getNextMo(name);
        }

        if ((i + 1 >= startIndex) && (i + 1 <= endIndex)) {
          Object[] indx = new Object[] {name[0]};
          arrayList.add(indx);
          if (i + 1 == endIndex) break;
        }
      }
      return arrayList;
    }

    // User code ends here
    return null;
  }
コード例 #2
0
 public int totalRows() {
   // User code starts here
   if (agentName.initTopo()) {
     return getCount();
   }
   return 0;
   // User code ends here
 }
コード例 #3
0
 public CompositeData getNextEntry(Object[] indexObjects) {
   // User code starts here
   if (!agentName.initTopo()) {
     return null;
   }
   String[] name = {(String) indexObjects[0]};
   return getNextMo(name);
   // User code ends here
 }
コード例 #4
0
  public CompositeData getFirstEntry() {
    // User code starts here
    if (!agentName.initTopo()) {
      return null;
    }

    String[] name = {""}; // No I18N
    return getFirstMo(name);
    // User code ends here
  }