private ICollectionConnectorProvider createCompositeNodeGroupConnector( ITreeViewDescriptor viewDescriptor, ICompositeTreeLevelDescriptor subtreeViewDescriptor, int depth) { ICollectionDescriptorProvider<?> nodeGroupModelDescriptor = ((ICollectionDescriptorProvider<?>) subtreeViewDescriptor .getNodeGroupDescriptor().getModelDescriptor()); IConfigurableCollectionConnectorListProvider nodeGroupPrototypeConnector = connectorFactory .createConfigurableCollectionConnectorListProvider( nodeGroupModelDescriptor.getName() + "Element", subtreeViewDescriptor.getNodeGroupDescriptor() .getRenderedProperty()); List<ICollectionConnectorProvider> subtreeConnectors = new ArrayList<ICollectionConnectorProvider>(); if (subtreeViewDescriptor.getChildrenDescriptors() != null && depth < viewDescriptor.getMaxDepth()) { for (ITreeLevelDescriptor childDescriptor : subtreeViewDescriptor .getChildrenDescriptors()) { ICollectionConnectorProvider childConnector = createNodeGroupConnector( viewDescriptor, childDescriptor, depth + 1); nodeGroupPrototypeConnector.addChildConnector(childConnector); subtreeConnectors.add(childConnector); } } nodeGroupPrototypeConnector .setCollectionConnectorProviders(subtreeConnectors); ICollectionConnector nodeGroupCollectionConnector = connectorFactory .createCollectionConnector(nodeGroupModelDescriptor.getName(), mvcBinder, nodeGroupPrototypeConnector); return nodeGroupCollectionConnector; }
private ICollectionConnectorProvider createCompositeNodeGroupConnector( ITreeViewDescriptor viewDescriptor, ICompositeTreeLevelDescriptor subtreeViewDescriptor, int depth) { ICollectionDescriptorProvider<?> nodeGroupModelDescriptor = ((ICollectionDescriptorProvider<?>) subtreeViewDescriptor .getNodeGroupDescriptor().getModelDescriptor()); IConfigurableCollectionConnectorListProvider nodeGroupPrototypeConnector = connectorFactory .createConfigurableCollectionConnectorListProvider( nodeGroupModelDescriptor.getName() + "Element", subtreeViewDescriptor.getNodeGroupDescriptor() .getRenderedProperty()); List<ICollectionConnectorProvider> subtreeConnectors = new ArrayList<ICollectionConnectorProvider>(); if (subtreeViewDescriptor.getChildrenDescriptors() != null && depth < viewDescriptor.getMaxDepth()) { for (ITreeLevelDescriptor childDescriptor : subtreeViewDescriptor .getChildrenDescriptors()) { ICollectionConnectorProvider childConnector = createNodeGroupConnector( viewDescriptor, childDescriptor, depth + 1); nodeGroupPrototypeConnector.addChildConnector(childConnector); subtreeConnectors.add(childConnector); } } nodeGroupPrototypeConnector .setCollectionConnectorProviders(subtreeConnectors); ICollectionConnector nodeGroupCollectionConnector = connectorFactory .createCollectionConnector(nodeGroupModelDescriptor.getName(), mvcBinder, nodeGroupPrototypeConnector); return nodeGroupCollectionConnector; }
private ICollectionConnectorProvider createCompositeNodeGroupConnector( ITreeViewDescriptor viewDescriptor, ICompositeTreeLevelDescriptor subtreeViewDescriptor, int depth) { ICollectionDescriptorProvider<?> nodeGroupModelDescriptor = ((ICollectionDescriptorProvider<?>) subtreeViewDescriptor .getNodeGroupDescriptor().getModelDescriptor()); IConfigurableCollectionConnectorListProvider nodeGroupPrototypeConnector = connectorFactory .createConfigurableCollectionConnectorListProvider( nodeGroupModelDescriptor.getName() + "Element", subtreeViewDescriptor.getNodeGroupDescriptor() .getRenderedProperty()); List<ICollectionConnectorProvider> subtreeConnectors = new ArrayList<ICollectionConnectorProvider>(); if (subtreeViewDescriptor.getChildrenDescriptors() != null && depth < viewDescriptor.getMaxDepth()) { for (ITreeLevelDescriptor childDescriptor : subtreeViewDescriptor .getChildrenDescriptors()) { ICollectionConnectorProvider childConnector = createNodeGroupConnector( viewDescriptor, childDescriptor, depth + 1); nodeGroupPrototypeConnector.addChildConnector(childConnector); subtreeConnectors.add(childConnector); } } nodeGroupPrototypeConnector .setCollectionConnectorProviders(subtreeConnectors); ICollectionConnector nodeGroupCollectionConnector = connectorFactory .createCollectionConnector(nodeGroupModelDescriptor.getName(), mvcBinder, nodeGroupPrototypeConnector); return nodeGroupCollectionConnector; }
List<ICollectionConnectorProvider> subtreeConnectors = new ArrayList<ICollectionConnectorProvider>(); if (((ICompositeTreeLevelDescriptor) rootDescriptor) .getChildrenDescriptors() != null) { for (ITreeLevelDescriptor subtreeViewDescriptor : ((ICompositeTreeLevelDescriptor) rootDescriptor) .getChildrenDescriptors()) { ICollectionConnectorProvider subtreeConnector = createNodeGroupConnector( viewDescriptor, subtreeViewDescriptor, 1);
List<ICollectionConnectorProvider> subtreeConnectors = new ArrayList<ICollectionConnectorProvider>(); if (((ICompositeTreeLevelDescriptor) rootDescriptor) .getChildrenDescriptors() != null) { for (ITreeLevelDescriptor subtreeViewDescriptor : ((ICompositeTreeLevelDescriptor) rootDescriptor) .getChildrenDescriptors()) { ICollectionConnectorProvider subtreeConnector = createNodeGroupConnector( viewDescriptor, subtreeViewDescriptor, 1);
List<ICollectionConnectorProvider> subtreeConnectors = new ArrayList<ICollectionConnectorProvider>(); if (((ICompositeTreeLevelDescriptor) rootDescriptor) .getChildrenDescriptors() != null) { for (ITreeLevelDescriptor subtreeViewDescriptor : ((ICompositeTreeLevelDescriptor) rootDescriptor) .getChildrenDescriptors()) { ICollectionConnectorProvider subtreeConnector = createNodeGroupConnector( viewDescriptor, subtreeViewDescriptor, 0);