Package org.eclipse.nebula.widgets.nattable.layer.cell

Examples of org.eclipse.nebula.widgets.nattable.layer.cell.TransformedLayerCell


                    rowSpan = 1;
                } else {
                    rowSpan = 2;
                }

                cell = new TransformedLayerCell(cell) {
                    @Override
                    public ILayer getLayer() {
                        return ColumnGroupHeaderLayer.this;
                    }
View Full Code Here


            // and the row header layer asks his data provider for the column
            // count
            // which should always return 1, we ask for row position 0
            ILayerCell cell = rowHeaderLayer.getCellByPosition(0, rowPosition);
            if (cell != null) {
                cell = new TransformedLayerCell(cell) {
                    @Override
                    public ILayer getLayer() {
                        return RowGroupHeaderLayer.this;
                    }
View Full Code Here

                                    boundsRect.width
                                            + getColumnWidthByPosition(columnPosition),
                                    boundsRect.height);

                            final ILayerCell underlyingCell = cell;
                            cell = new TransformedLayerCell(cell) {
                                @Override
                                public int getColumnSpan() {
                                    return underlyingCell.getColumnSpan() + 1;
                                }
                            };
                        }

                        cells[columnPosition][rowPosition] = cell;
                        bounds[columnPosition][rowPosition] = boundsRect;

                        if (cellInfoFieldTokenizer.hasMoreTokens()) {
                            System.out
                                    .println("Extra tokens detected after parsing span for cell position "
                                            + columnPosition
                                            + ","
                                            + rowPosition + "; ignoring");
                        }
                        break;
                    } else if ("^".equals(token)) {
                        // Span from above
                        dataValues[columnPosition][rowPosition] = dataValues[columnPosition][rowPosition - 1];

                        ILayerCell cell = cells[columnPosition][rowPosition - 1];
                        Rectangle boundsRect = bounds[columnPosition][rowPosition - 1];

                        if (rowPosition >= cell.getRowPosition()
                                + cell.getRowSpan()) {
                            boundsRect = new Rectangle(
                                    boundsRect.x,
                                    boundsRect.y,
                                    boundsRect.width,
                                    boundsRect.height
                                            + getRowHeightByPosition(rowPosition));

                            final ILayerCell underlyingCell = cell;
                            cell = new TransformedLayerCell(cell) {
                                @Override
                                public int getRowSpan() {
                                    return underlyingCell.getRowSpan() + 1;
                                }
                            };
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.layer.cell.TransformedLayerCell

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.