/** * Returns the value of the connector which backs the cell model (2nd level of * nesting). * <p> * {@inheritDoc} */ public Object getValueAt(int rowIndex, int columnIndex) { IValueConnector cellConnector = getConnectorAt(rowIndex, columnIndex); Object connectorValue = cellConnector.getConnectorValue(); if (connectorValue instanceof byte[]) { return null; } return connectorValue; }
/** * Returns the value of the connector which backs the cell model (2nd level of * nesting). * <p> * {@inheritDoc} */ public Object getValueAt(int rowIndex, int columnIndex) { IValueConnector cellConnector = getConnectorAt(rowIndex, columnIndex); if (cellConnector instanceof ICompositeValueConnector) { return cellConnector; } Object connectorValue = cellConnector.getConnectorValue(); if (connectorValue instanceof byte[]) { return null; } return connectorValue; }
/** * Returns the value of the connector which backs the cell model (2nd level of * nesting). * <p> * {@inheritDoc} */ @Override public void setValueAt(Object cellValue, int rowIndex, int columnIndex) { try { getConnectorAt(rowIndex, columnIndex).setConnectorValue(cellValue); } catch (RuntimeException ex) { if (exceptionHandler != null) { exceptionHandler.handleException(ex, null); } else { throw ex; } } }
/** * Returns the value of the connector which backs the cell model (2nd level of * nesting). * <p> * {@inheritDoc} */ @Override public void setValueAt(Object cellValue, int rowIndex, int columnIndex) { try { getConnectorAt(rowIndex, columnIndex).setConnectorValue(cellValue); } catch (RuntimeException ex) { if (exceptionHandler != null) { exceptionHandler.handleException(ex, null); } else { throw ex; } } }
/** * {@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(); }