Ejemplo n.º 1
0
  public OpenStageView(OpenStageModel model) {
    this.model = model;
    while (model.hasNext()) {
      components.add((DataString) model.next().getDataForKey("Component"));
    }

    for (IData data : components) {
      System.out.println(data.toString());
    }
  }
Ejemplo n.º 2
0
  @Override
  public boolean hasNext() {
    if (currentMsg == null) {
      do {
        if (index >= model.getItemsCount()) {
          index = 0;
          currentMsg = null;
          return false;
        }
        currentMsg = model.getItemAtIndex(index++);
      } while (!IsPassed(currentMsg));
    }

    return true;
  }