コード例 #1
0
 protected void initialize() {
   super.initialize();
   this.selectedNodesHolder = new SimpleListValueModel();
   ListValueModel lvm =
       new ItemListListValueModelAdapter(
           this.selectedNodesHolder, ApplicationProblemContainer.BRANCH_APPLICATION_PROBLEMS_LIST);
   lvm.addListChangeListener(ValueModel.VALUE, this.buildBranchApplicationProblemsListener());
 }
コード例 #2
0
 private ApplicationNode[] buildNodes(DatabasePlatformRepositoryNode reposNode) {
   Collection result = new ArrayList();
   ListValueModel childrenModel = this.nodesModel(reposNode);
   for (Iterator stream = (Iterator) childrenModel.getValue(); stream.hasNext(); ) {
     result.add(stream.next());
   }
   return (ApplicationNode[]) result.toArray(new ApplicationNode[result.size()]);
 }