private ICollectionConnectorProvider createSimpleNodeGroupConnector( ITreeViewDescriptor viewDescriptor, ISimpleTreeLevelDescriptor subtreeViewDescriptor, int depth) { ICollectionPropertyDescriptor<?> nodeGroupModelDescriptor = (ICollectionPropertyDescriptor<?>) subtreeViewDescriptor .getNodeGroupDescriptor().getModelDescriptor(); IConfigurableCollectionConnectorProvider nodeGroupPrototypeConnector = connectorFactory .createConfigurableCollectionConnectorProvider(nodeGroupModelDescriptor .getName() + "Element", subtreeViewDescriptor.getNodeGroupDescriptor() .getRenderedProperty()); if (subtreeViewDescriptor.getChildDescriptor() != null && depth < viewDescriptor.getMaxDepth()) { ICollectionConnectorProvider childConnector = createNodeGroupConnector( viewDescriptor, subtreeViewDescriptor.getChildDescriptor(), depth + 1); nodeGroupPrototypeConnector.addChildConnector(childConnector); nodeGroupPrototypeConnector .setCollectionConnectorProvider(childConnector); } ICollectionConnector nodeGroupCollectionConnector = connectorFactory .createCollectionConnector(nodeGroupModelDescriptor.getName(), mvcBinder, nodeGroupPrototypeConnector); return nodeGroupCollectionConnector; }
private ICollectionConnectorProvider createSimpleNodeGroupConnector( ITreeViewDescriptor viewDescriptor, ISimpleTreeLevelDescriptor subtreeViewDescriptor, int depth) { ICollectionPropertyDescriptor<?> nodeGroupModelDescriptor = (ICollectionPropertyDescriptor<?>) subtreeViewDescriptor .getNodeGroupDescriptor().getModelDescriptor(); IConfigurableCollectionConnectorProvider nodeGroupPrototypeConnector = connectorFactory .createConfigurableCollectionConnectorProvider(nodeGroupModelDescriptor .getName() + "Element", subtreeViewDescriptor.getNodeGroupDescriptor() .getRenderedProperty()); if (subtreeViewDescriptor.getChildDescriptor() != null && depth < viewDescriptor.getMaxDepth()) { ICollectionConnectorProvider childConnector = createNodeGroupConnector( viewDescriptor, subtreeViewDescriptor.getChildDescriptor(), depth + 1); nodeGroupPrototypeConnector.addChildConnector(childConnector); nodeGroupPrototypeConnector .setCollectionConnectorProvider(childConnector); } ICollectionConnector nodeGroupCollectionConnector = connectorFactory .createCollectionConnector(nodeGroupModelDescriptor.getName(), mvcBinder, nodeGroupPrototypeConnector); return nodeGroupCollectionConnector; }
private ICollectionConnectorProvider createSimpleNodeGroupConnector( ITreeViewDescriptor viewDescriptor, ISimpleTreeLevelDescriptor subtreeViewDescriptor, int depth) { ICollectionPropertyDescriptor<?> nodeGroupModelDescriptor = (ICollectionPropertyDescriptor<?>) subtreeViewDescriptor .getNodeGroupDescriptor().getModelDescriptor(); IConfigurableCollectionConnectorProvider nodeGroupPrototypeConnector = connectorFactory .createConfigurableCollectionConnectorProvider(nodeGroupModelDescriptor .getName() + "Element", subtreeViewDescriptor.getNodeGroupDescriptor() .getRenderedProperty()); if (subtreeViewDescriptor.getChildDescriptor() != null && depth < viewDescriptor.getMaxDepth()) { ICollectionConnectorProvider childConnector = createNodeGroupConnector( viewDescriptor, subtreeViewDescriptor.getChildDescriptor(), depth + 1); nodeGroupPrototypeConnector.addChildConnector(childConnector); nodeGroupPrototypeConnector .setCollectionConnectorProvider(childConnector); } ICollectionConnector nodeGroupCollectionConnector = connectorFactory .createCollectionConnector(nodeGroupModelDescriptor.getName(), mvcBinder, nodeGroupPrototypeConnector); return nodeGroupCollectionConnector; }
viewDescriptor, ((ISimpleTreeLevelDescriptor) rootDescriptor) .getChildDescriptor(), 1); simpleConnector.addChildConnector(subtreeConnector); simpleConnector.setCollectionConnectorProvider(subtreeConnector);
.createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, null); wrapper.addChildConnector(detailView.getConnector()); if (detailView.getConnector() instanceof ICollectionConnector) { wrapper .setCollectionConnectorProvider((ICollectionConnector) detailView .getConnector());
.createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, null); wrapper.addChildConnector(detailView.getConnector()); if (detailView.getConnector() instanceof ICollectionConnector) { wrapper .setCollectionConnectorProvider((ICollectionConnector) detailView .getConnector());
.createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, null); wrapper.addChildConnector(detailView.getConnector()); if (detailView.getConnector() instanceof ICollectionConnector) { wrapper .setCollectionConnectorProvider((ICollectionConnector) detailView .getConnector());
viewDescriptor, ((ISimpleTreeLevelDescriptor) rootDescriptor) .getChildDescriptor(), 1); simpleConnector.addChildConnector(subtreeConnector); simpleConnector.setCollectionConnectorProvider(subtreeConnector);
viewDescriptor, ((ISimpleTreeLevelDescriptor) rootDescriptor) .getChildDescriptor(), 0); simpleConnector.addChildConnector(subtreeConnector); simpleConnector.setCollectionConnectorProvider(subtreeConnector);