/** * {@inheritDoc} */ public Collection<String> getChildConnectorKeys() { if (toStringPropertyConnector != null) { return Collections.singleton(toStringPropertyConnector.getId()); } return null; }
/** * {@inheritDoc} */ public Collection<String> getChildConnectorKeys() { if (renderingConnector != null) { return Collections.singleton(renderingConnector.getId()); } return null; }
/** * {@inheritDoc} */ @Override public Collection<String> getChildConnectorKeys() { if (renderingConnector != null) { return Collections.singleton(renderingConnector.getId()); } return null; }
/** * {@inheritDoc} */ public IValueConnector getChildConnector(String connectorKey) { if (connectorKey.equals(renderingConnector.getId())) { return renderingConnector; } return null; }
/** * {@inheritDoc} */ public IValueConnector getChildConnector(String connectorKey) { if (connectorKey.equals(toStringPropertyConnector.getId())) { return toStringPropertyConnector; } return null; }
/** * {@inheritDoc} */ public Collection<String> getChildConnectorKeys() { if (toStringPropertyConnector != null) { return Collections.singleton(toStringPropertyConnector.getId()); } return null; }
/** * {@inheritDoc} */ public IValueConnector getChildConnector(String connectorKey) { if (connectorKey.equals(toStringPropertyConnector.getId())) { return toStringPropertyConnector; } return null; }
/** * {@inheritDoc} */ public IValueConnector getChildConnector(String connectorKey) { if (connectorKey.equals(toStringPropertyConnector.getId())) { return toStringPropertyConnector; } return null; }
/** * {@inheritDoc} */ @Override public IValueConnector getChildConnector(String connectorKey) { if (connectorKey.equals(renderingConnector.getId())) { return renderingConnector; } return null; }
/** * {@inheritDoc} */ public Collection<String> getChildConnectorKeys() { if (toStringPropertyConnector != null) { return Collections.singleton(toStringPropertyConnector.getId()); } return null; }
private List<String> getDescriptorPathFromConnectorTreePath( TreePath connectorTreePath) { List<String> descriptorPath = new ArrayList<String>(); if (connectorTreePath != null) { Object[] connectors = connectorTreePath.getPath(); for (Object connector : connectors) { if (connector instanceof ICollectionConnectorProvider) { descriptorPath.add(((IValueConnector) connector).getId()); } } } return descriptorPath; }
private List<String> getDescriptorPathFromConnectorTreePath(TreePath connectorTreePath) { List<String> descriptorPath = new ArrayList<>(); if (connectorTreePath != null) { Object[] connectors = connectorTreePath.getPath(); for (Object connector : connectors) { if (connector instanceof ICollectionConnectorProvider) { descriptorPath.add(((IValueConnector) connector).getId()); } } } return descriptorPath; }
/** * Adds a new child connector to this composite. The key used as storage key * is the child connector id. * * @param childConnector * the added connector. */ @Override public final void addChildConnector(IValueConnector childConnector) { addChildConnector(childConnector.getId(), childConnector); }
/** * Adds a new child connector to this composite. The key used as storage key * is the child connector id. * * @param childConnector * the added connector. */ @Override public final void addChildConnector(IValueConnector childConnector) { addChildConnector(childConnector.getId(), childConnector); }
/** * Adds a new child connector to this composite. The key used as storage key * is the child connector id. * * @param childConnector * the added connector. */ @Override public final void addChildConnector(IValueConnector childConnector) { addChildConnector(childConnector.getId(), childConnector); }
/** * Adds a new child connector to this composite. The key used as storage key * is the child connector id. * * @param childConnector * the added connector. */ @Override public final void addChildConnector(IValueConnector childConnector) { addChildConnector(childConnector.getId(), childConnector); }
private List<String> getDescriptorPathFromConnectorTreePath( TreePath connectorTreePath) { List<String> descriptorPath = new ArrayList<String>(); if (connectorTreePath != null) { Object[] connectors = connectorTreePath.getPath(); for (Object connector : connectors) { if (connector instanceof ICollectionConnectorProvider) { descriptorPath.add(((IValueConnector) connector).getId()); } } } return descriptorPath; }
private List<String> getDescriptorPathFromConnectorTreePath( TreePath connectorTreePath) { List<String> descriptorPath = new ArrayList<String>(); if (connectorTreePath != null) { Object[] connectors = connectorTreePath.getPath(); for (Object connector : connectors) { if (connector instanceof ICollectionConnectorProvider) { descriptorPath.add(((IValueConnector) connector).getId()); } } } return descriptorPath; }
/** * Retrieves a connector complete path following the parent/child * relationship. * * @param connector * the connector to look the tree path for. * @return the list of connector identifiers from the root connector to the * looked-up connector. */ public static List<String> getPathToConnector(IValueConnector connector) { if (connector == null) { return null; } List<String> path = new ArrayList<>(); IValueConnector parentConnector = connector; while (parentConnector != null) { path.add(parentConnector.getId()); parentConnector = parentConnector.getParentConnector(); } Collections.reverse(path); return path; }
/** * Constructs a new <code>WingsViewCellEditorAdapter</code> instance. * * @param editorView * the swing view used as editor. */ public WingsViewCellEditorAdapter(IView<SComponent> editorView) { this.listenerList = new EventListenerList(); this.editorView = editorView; if (editorView.getPeer() instanceof SAbstractButton) { ((SAbstractButton) editorView.getPeer()) .setHorizontalAlignment(SConstants.CENTER); } modelConnector = new BasicValueConnector(editorView.getConnector().getId()); // To prevent the editor from being read-only. editorView.getConnector().setModelConnector(modelConnector); }