/** * Returns the connector at {@code index} in the child connectors * collection contained in the backed collection connector. * <p> * {@inheritDoc} */ @Override public IValueConnector getElementAt(int index) { return collectionConnector.getChildConnector(index); }
private int computeRow(IValueConnector connector) { for (int i = 0; i < collectionConnector.getChildConnectorCount(); i++) { if (collectionConnector.getChildConnector(i) == connector) { return i; } } return -1; }
/** * Returns the connector at <code>index</code> in the child connectors * collection contained in the backed collection connector. * <p> * {@inheritDoc} */ public Object getElementAt(int index) { return collectionConnector.getChildConnector(index); }
private void checkListenerRegistrationForConnector( ICollectionConnectorListProvider nodeConnector) { for (ICollectionConnector childNodeConnector : nodeConnector .getCollectionConnectors()) { childNodeConnector .addSelectionChangeListener(connectorsSelectionListener); for (int i = 0; i < childNodeConnector.getChildConnectorCount(); i++) { checkListenerRegistrationForConnector((ICollectionConnectorListProvider) childNodeConnector .getChildConnector(i)); } } }
/** * Gets the value to display as row toolTip. * * @param rowIndex * the row index to compute the toolTip for. * @return the row toolTip or null. */ public String getRowToolTip(int rowIndex) { return collectionConnector.getChildConnector(rowIndex).toString(); }
private void checkListenerRegistrationForConnector( ICollectionConnectorListProvider nodeConnector) { for (ICollectionConnector childNodeConnector : nodeConnector .getCollectionConnectors()) { childNodeConnector .addSelectionChangeListener(connectorsSelectionListener); for (int i = 0; i < childNodeConnector.getChildConnectorCount(); i++) { checkListenerRegistrationForConnector((ICollectionConnectorListProvider) childNodeConnector .getChildConnector(i)); } } }
/** * Gets the value to display as row toolTip. * * @param rowIndex * the row index to compute the toolTip for. * @return the row toolTip or null. */ public String getRowToolTip(int rowIndex) { return collectionConnector.getChildConnector(rowIndex).toString(); }
private IValueConnector getConnectorAt(int rowIndex, int columnIndex) { return ((ICompositeValueConnector) collectionConnector .getChildConnector(rowIndex)).getChildConnector(columnConnectorKeys .get(columnIndex)); }
/** * Returns the connector value of the connector at <code>index</code> in the * child connectors collection contained in the backed collection connector. * <p> * {@inheritDoc} */ public Object getElementAt(int index) { return collectionConnector.getChildConnector(index).getConnectorValue(); }
/** * Returns the connector value of the connector at <code>index</code> in the * child connectors collection contained in the backed collection connector. * <p> * {@inheritDoc} */ public Object getElementAt(int index) { return collectionConnector.getChildConnector(index).getConnectorValue(); }
/** * Gets the value connector backing the table cell. * * @param rowIndex * the row index of the cell. * @param columnIndex * the column index of the cell. * @return the value connector behind the cell. */ private IValueConnector getConnectorAt(int rowIndex, int columnIndex) { return ((ICompositeValueConnector) collectionConnector .getChildConnector(rowIndex)).getChildConnector(columnConnectorKeys .get(columnIndex)); }
/** * Gets the value connector backing the table cell. * * @param rowIndex * the row index of the cell. * @param columnIndex * the column index of the cell. * @return the value connector behind the cell. */ private IValueConnector getConnectorAt(int rowIndex, int columnIndex) { return ((ICompositeValueConnector) collectionConnector .getChildConnector(rowIndex)).getChildConnector(columnConnectorKeys .get(columnIndex)); }
/** * Gets the value connector backing the table cell. * * @param rowIndex * the row index of the cell. * @param columnIndex * the column index of the cell. * @return the value connector behind the cell. */ private IValueConnector getConnectorAt(int rowIndex, int columnIndex) { return ((ICompositeValueConnector) collectionConnector .getChildConnector(rowIndex)).getChildConnector(columnConnectorKeys .get(columnIndex)); }
/** * {@inheritDoc} */ public Object getChild(Object parent, int index) { if (parent instanceof ICollectionConnectorProvider) { ICollectionConnector collectionConnector = ((ICollectionConnectorProvider) parent) .getCollectionConnector(); return collectionConnector.getChildConnector(index); } else if (parent instanceof ICollectionConnectorListProvider) { return ((ICollectionConnectorListProvider) parent) .getCollectionConnectors().get(index); } return null; }
/** * {@inheritDoc} */ public Object getChild(Object parent, int index) { if (parent instanceof ICollectionConnectorProvider) { ICollectionConnector collectionConnector = ((ICollectionConnectorProvider) parent) .getCollectionConnector(); return collectionConnector.getChildConnector(index); } else if (parent instanceof ICollectionConnectorListProvider) { return ((ICollectionConnectorListProvider) parent) .getCollectionConnectors().get(index); } return null; }
/** * {@inheritDoc} */ @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return collectionConnector.isWritable() && collectionConnector.getChildConnector(rowIndex).isWritable() && getConnectorAt(rowIndex, columnIndex).isWritable(); }
/** * {@inheritDoc} */ @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return collectionConnector.isWritable() && collectionConnector.getChildConnector(rowIndex).isWritable() && getConnectorAt(rowIndex, columnIndex).isWritable(); }
/** * {@inheritDoc} */ @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return collectionConnector.isWritable() && collectionConnector.getChildConnector(rowIndex).isWritable() && getConnectorAt(rowIndex, columnIndex).isWritable(); }
/** * {@inheritDoc} */ @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return collectionConnector.isWritable() && collectionConnector.getChildConnector(rowIndex).isWritable() && getConnectorAt(rowIndex, columnIndex).isWritable(); }
private void bindChildConnector(int index) { IValueConnector cellConnector = collectionConnector .getChildConnector(index); if (cellConnector instanceof IRenderableCompositeValueConnector && ((IRenderableCompositeValueConnector) cellConnector) .getRenderingConnector() != null) { ((IRenderableCompositeValueConnector) cellConnector) .getRenderingConnector().addValueChangeListener( getChildConnectorListener(index)); } else { cellConnector.addValueChangeListener(getChildConnectorListener(index)); } }