Examples of addLabelOnTop()


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

    public LabelStack getConfigLabelsByPosition(int columnPosition,
            int rowPosition) {
        LabelStack configLabels = super.getConfigLabelsByPosition(
                columnPosition, rowPosition);
        if (this.treeData.getDataAtIndex(getRowIndexByPosition(rowPosition)) instanceof GroupByObject) {
            configLabels.addLabelOnTop(GROUP_BY_OBJECT);
            configLabels.addLabelOnTop(GROUP_BY_COLUMN_PREFIX + columnPosition);
            if (getGroupBySummaryProvider(configLabels) != null) {
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY);
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY_COLUMN_PREFIX
                        + columnPosition);
View Full Code Here

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

            int rowPosition) {
        LabelStack configLabels = super.getConfigLabelsByPosition(
                columnPosition, rowPosition);
        if (this.treeData.getDataAtIndex(getRowIndexByPosition(rowPosition)) instanceof GroupByObject) {
            configLabels.addLabelOnTop(GROUP_BY_OBJECT);
            configLabels.addLabelOnTop(GROUP_BY_COLUMN_PREFIX + columnPosition);
            if (getGroupBySummaryProvider(configLabels) != null) {
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY);
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY_COLUMN_PREFIX
                        + columnPosition);
            }
View Full Code Here

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

                columnPosition, rowPosition);
        if (this.treeData.getDataAtIndex(getRowIndexByPosition(rowPosition)) instanceof GroupByObject) {
            configLabels.addLabelOnTop(GROUP_BY_OBJECT);
            configLabels.addLabelOnTop(GROUP_BY_COLUMN_PREFIX + columnPosition);
            if (getGroupBySummaryProvider(configLabels) != null) {
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY);
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY_COLUMN_PREFIX
                        + columnPosition);
            }
        }
        return configLabels;
View Full Code Here

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

        if (this.treeData.getDataAtIndex(getRowIndexByPosition(rowPosition)) instanceof GroupByObject) {
            configLabels.addLabelOnTop(GROUP_BY_OBJECT);
            configLabels.addLabelOnTop(GROUP_BY_COLUMN_PREFIX + columnPosition);
            if (getGroupBySummaryProvider(configLabels) != null) {
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY);
                configLabels.addLabelOnTop(GROUP_BY_SUMMARY_COLUMN_PREFIX
                        + columnPosition);
            }
        }
        return configLabels;
    }
View Full Code Here

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

            LabelStack stack = new LabelStack(GridRegion.COLUMN_GROUP_HEADER);

            if (model.isPartOfACollapseableGroup(columnIndex)) {
                ColumnGroup group = model.getColumnGroupByIndex(columnIndex);
                if (group.isCollapsed()) {
                    stack.addLabelOnTop(DefaultColumnGroupHeaderLayerConfiguration.GROUP_COLLAPSED_CONFIG_TYPE);
                } else {
                    stack.addLabelOnTop(DefaultColumnGroupHeaderLayerConfiguration.GROUP_EXPANDED_CONFIG_TYPE);
                }
            }
View Full Code Here

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

            if (model.isPartOfACollapseableGroup(columnIndex)) {
                ColumnGroup group = model.getColumnGroupByIndex(columnIndex);
                if (group.isCollapsed()) {
                    stack.addLabelOnTop(DefaultColumnGroupHeaderLayerConfiguration.GROUP_COLLAPSED_CONFIG_TYPE);
                } else {
                    stack.addLabelOnTop(DefaultColumnGroupHeaderLayerConfiguration.GROUP_EXPANDED_CONFIG_TYPE);
                }
            }

            return stack;
        } else {
View Full Code Here

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

                    newValue);
        }

        if (blinkConfigTypes != null && blinkConfigTypes.length > 0) {
            for (String configType : blinkConfigTypes) {
                underlyingLabelStack.addLabelOnTop(configType);
            }
        }

        return underlyingLabelStack;
    }
View Full Code Here

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

            int rowPosition) {
        LabelStack configLabels = super.getConfigLabelsByPosition(
                columnPosition, rowPosition);

        if (isTreeColumn(columnPosition)) {
            configLabels.addLabelOnTop(TREE_COLUMN_CELL);

            int rowIndex = getRowIndexByPosition(rowPosition);
            configLabels
            .addLabelOnTop(DefaultTreeLayerConfiguration.TREE_DEPTH_CONFIG_TYPE
                    + this.treeRowModel.depth(rowIndex));
View Full Code Here

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

        if (isTreeColumn(columnPosition)) {
            configLabels.addLabelOnTop(TREE_COLUMN_CELL);

            int rowIndex = getRowIndexByPosition(rowPosition);
            configLabels
            .addLabelOnTop(DefaultTreeLayerConfiguration.TREE_DEPTH_CONFIG_TYPE
                    + this.treeRowModel.depth(rowIndex));
            if (!this.treeRowModel.hasChildren(rowIndex)) {
                configLabels
                .addLabelOnTop(DefaultTreeLayerConfiguration.TREE_LEAF_CONFIG_TYPE);
View Full Code Here

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

        LabelStack labelStack = super.getConfigLabelsByPosition(columnPosition, rowPosition);
        // add a label to the row header summary row cell aswell, so
        // it can be styled differently too in this case it will simply use
        // the same styling as the summary row in the body
        if (rowPosition == 0)
            labelStack.addLabelOnTop(SummaryRowLayer.DEFAULT_SUMMARY_ROW_CONFIG_LABEL);
        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.