} else if (rootDescriptor instanceof ISimpleTreeLevelDescriptor) { IConfigurableCollectionConnectorProvider simpleConnector = connectorFactory .createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, ((ISimpleTreeLevelDescriptor) rootDescriptor)
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; }
if (detailView.getDescriptor().getModelDescriptor() instanceof IPropertyDescriptor) { IConfigurableCollectionConnectorProvider wrapper = connectorFactory .createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, null); wrapper.addChildConnector(detailView.getConnector());
if (detailView.getDescriptor().getModelDescriptor() instanceof IPropertyDescriptor) { IConfigurableCollectionConnectorProvider wrapper = connectorFactory .createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, null); wrapper.addChildConnector(detailView.getConnector());
if (detailView.getDescriptor().getModelDescriptor() instanceof IPropertyDescriptor) { IConfigurableCollectionConnectorProvider wrapper = connectorFactory .createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, null); wrapper.addChildConnector(detailView.getConnector());
} else if (rootDescriptor instanceof ISimpleTreeLevelDescriptor) { IConfigurableCollectionConnectorProvider simpleConnector = connectorFactory .createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, ((ISimpleTreeLevelDescriptor) rootDescriptor)
} else if (rootDescriptor instanceof ISimpleTreeLevelDescriptor) { IConfigurableCollectionConnectorProvider simpleConnector = connectorFactory .createConfigurableCollectionConnectorProvider( ModelRefPropertyConnector.THIS_PROPERTY, ((ISimpleTreeLevelDescriptor) rootDescriptor)