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

Examples of org.eclipse.nebula.widgets.nattable.layer.LabelStack.addLabel()


        final int selectionLayerColumnPosition = LayerUtil
                .convertColumnPosition(this, columnPosition, selectionLayer);
        if (selectionLayer
                .isColumnPositionFullySelected(selectionLayerColumnPosition)) {
            labelStack
                    .addLabel(SelectionStyleLabels.COLUMN_FULLY_SELECTED_STYLE);
        }

        return labelStack;
    }
View Full Code Here


                    cell.getOriginRowPosition(), cell.getColumnSpan(),
                    cell.getRowSpan());

            if (cellRectangle.contains(getSelectionAnchor().columnPosition,
                    getSelectionAnchor().rowPosition)) {
                labelStack
                        .addLabel(SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
            }
        }

        return labelStack;
View Full Code Here

        // At the data layer level position == index
        final LabelStack labels = super.getConfigLabelsByPosition(
                columnPosition, rowPosition);
        // the label needs to be index based as the position changes on
        // scrolling
        labels.addLabel(FILTER_ROW_COLUMN_LABEL_PREFIX
                + getColumnIndexByPosition(columnPosition));
        labels.addLabel(GridRegion.FILTER_ROW);
        return labels;
    }
View Full Code Here

                columnPosition, rowPosition);
        // the label needs to be index based as the position changes on
        // scrolling
        labels.addLabel(FILTER_ROW_COLUMN_LABEL_PREFIX
                + getColumnIndexByPosition(columnPosition));
        labels.addLabel(GridRegion.FILTER_ROW);
        return labels;
    }

    // There is no multiple inheritance in Java, but the FilterRowDataLayer
    // needs to be a
View Full Code Here

                .getColumnIndexByPosition(command.columnPosition);

        LabelStack configLabels = new LabelStack();
        columnLabelAccumulator.accumulateConfigLabels(configLabels,
                columnIndexOfClick, 0);
        configLabels.addLabel(getConfigLabel(columnIndexOfClick));

        // Column style
        Style clickedCellStyle = (Style) configRegistry.getConfigAttribute(
                CELL_STYLE, NORMAL, configLabels.getLabels());
View Full Code Here

        final int selectionLayerRowPosition = LayerUtil.convertRowPosition(
                this, rowPosition, selectionLayer);
        if (selectionLayer
                .isRowPositionFullySelected(selectionLayerRowPosition)) {
            labelStack.addLabel(SelectionStyleLabels.ROW_FULLY_SELECTED_STYLE);
        }

        return labelStack;
    }
View Full Code Here

        String configLabelsString = configLabels[columnPosition][rowPosition];
        if (configLabelsString != null) {
            StringTokenizer configLabelTokenizer = new StringTokenizer(
                    configLabelsString, ",");
            while (configLabelTokenizer.hasMoreTokens()) {
                labelStack.addLabel(configLabelTokenizer.nextToken());
            }
        }
        return labelStack;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.