示例#1
0
 public boolean hasNextChild() throws BirtException {
   if (needUpdate) {
     if (childContent != null) {
       hasNext = true;
     } else {
       hasNext = executor.hasNextChild();
     }
     needUpdate = false;
   }
   return hasNext;
 }
示例#2
0
  public IReportItemExecutor nextInline() throws BirtException {
    if (executor.hasNextChild()) {
      IReportItemExecutor nextExecutor = (IReportItemExecutor) executor.getNextChild();
      IContent nextContent = nextExecutor.execute();

      if (PropertyUtil.isInlineElement(nextContent)) {
        return new ItemExecutorWrapper(nextExecutor, nextContent);
      } else {
        this.childContent = nextContent;
        this.childExecutor = nextExecutor;
      }
    }
    return null;
  }