Package org.eclipse.nebula.widgets.nattable.style

Examples of org.eclipse.nebula.widgets.nattable.style.IStyle


     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureDefaultSelectionStyle(IConfigRegistry configRegistry) {
        // register body cell style for every display mode
        IStyle defaultSelectionStyle = getDefaultSelectionCellStyle();
        if (!isStyleEmpty(defaultSelectionStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, defaultSelectionStyle,
                    DisplayMode.SELECT);
        }
View Full Code Here


     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureColumnHeaderSelectionStyle(
            IConfigRegistry configRegistry) {
        IStyle columnHeaderStyle = getColumnHeaderSelectionStyle();
        if (!isStyleEmpty(columnHeaderStyle)) {
            // register column header cell style in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, columnHeaderStyle,
                    DisplayMode.SELECT, GridRegion.COLUMN_HEADER);
        }

        ICellPainter columnHeaderCellPainter = getColumnHeaderSelectionCellPainter();
        if (columnHeaderCellPainter != null) {
            // register column header cell painter in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, columnHeaderCellPainter,
                    DisplayMode.SELECT, GridRegion.COLUMN_HEADER);
        }

        IStyle fullSelectionColumnHeaderStyle = getColumnHeaderFullSelectionStyle();
        if (!isStyleEmpty(fullSelectionColumnHeaderStyle)) {
            // register column header cell style in select mode when all cells
            // in the column are selected
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE,
View Full Code Here

     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureRowHeaderSelectionStyle(
            IConfigRegistry configRegistry) {
        IStyle rowHeaderStyle = getRowHeaderSelectionStyle();
        if (!isStyleEmpty(rowHeaderStyle)) {
            // register column header cell style in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, rowHeaderStyle,
                    DisplayMode.SELECT, GridRegion.ROW_HEADER);
        }

        ICellPainter rowHeaderCellPainter = getRowHeaderSelectionCellPainter();
        if (rowHeaderCellPainter != null) {
            // register column header cell painter in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, rowHeaderCellPainter,
                    DisplayMode.SELECT, GridRegion.ROW_HEADER);
        }

        IStyle fullSelectionRowHeaderStyle = getRowHeaderFullSelectionStyle();
        if (!isStyleEmpty(fullSelectionRowHeaderStyle)) {
            // register row header cell style in select mode when all cells in
            // the row are selected
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE,
View Full Code Here

     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureCornerSelectionStyle(IConfigRegistry configRegistry) {
        IStyle cornerStyle = this.styleCornerLikeColumnHeader ? getColumnHeaderSelectionStyle()
                : getCornerSelectionStyle();
        if (!isStyleEmpty(cornerStyle)) {
            // register corner cell style in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, cornerStyle,
View Full Code Here

     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureSelectionAnchorStyle(IConfigRegistry configRegistry) {
        // Selection anchor style for normal display mode
        IStyle anchorStyle = getSelectionAnchorStyle();
        if (!isStyleEmpty(anchorStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, anchorStyle,
                    DisplayMode.NORMAL,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }
        ICellPainter anchorPainter = getSelectionAnchorCellPainter();
        if (anchorPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, anchorPainter,
                    DisplayMode.NORMAL,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }

        // Selection anchor style for select display mode
        IStyle selectionAnchorStyle = getSelectionAnchorSelectionStyle();
        if (!isStyleEmpty(selectionAnchorStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, selectionAnchorStyle,
                    DisplayMode.SELECT,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }
        ICellPainter selectionAnchorPainter = getSelectionAnchorSelectionCellPainter();
        if (selectionAnchorPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, selectionAnchorPainter,
                    DisplayMode.SELECT,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }

        // configure selection anchor grid line style
        IStyle gridLineStyle = getSelectionAnchorGridLineStyle();
        if (!isStyleEmpty(gridLineStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, gridLineStyle,
                    DisplayMode.SELECT,
                    SelectionStyleLabels.SELECTION_ANCHOR_GRID_LINE_STYLE);
View Full Code Here

     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureAlternatingRowStyle(IConfigRegistry configRegistry) {
        IStyle evenStyle = getEvenRowStyle();
        if (!isStyleEmpty(evenStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, evenStyle,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.EVEN_ROW_CONFIG_TYPE);
        }

        ICellPainter evenCellPainter = getEvenRowCellPainter();
        if (evenCellPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, evenCellPainter,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.EVEN_ROW_CONFIG_TYPE);
        }

        IStyle oddStyle = getOddRowStyle();
        if (!isStyleEmpty(oddStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, oddStyle,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.ODD_ROW_CONFIG_TYPE);
View Full Code Here

     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureColumnGroupHeaderStyle(
            IConfigRegistry configRegistry) {
        IStyle columnGroupHeaderStyle = getColumnGroupHeaderStyle();
        if (!isStyleEmpty(columnGroupHeaderStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, columnGroupHeaderStyle,
                    DisplayMode.NORMAL, GridRegion.COLUMN_GROUP_HEADER);
        }
View Full Code Here

     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureRowGroupHeaderStyle(IConfigRegistry configRegistry) {
        IStyle rowGroupHeaderStyle = getRowGroupHeaderStyle();
        if (!isStyleEmpty(rowGroupHeaderStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, rowGroupHeaderStyle,
                    DisplayMode.NORMAL, GridRegion.ROW_GROUP_HEADER);
        }
View Full Code Here

     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureSortHeaderStyle(IConfigRegistry configRegistry) {
        IStyle sortStyle = getSortHeaderStyle();
        if (!isStyleEmpty(sortStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, sortStyle,
                    DisplayMode.NORMAL,
                    DefaultSortConfiguration.SORT_DOWN_CONFIG_TYPE);
View Full Code Here

     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureSelectedSortHeaderStyle(
            IConfigRegistry configRegistry) {
        IStyle sortStyle = getSelectedSortHeaderStyle();
        if (!isStyleEmpty(sortStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, sortStyle,
                    DisplayMode.SELECT,
                    DefaultSortConfiguration.SORT_DOWN_CONFIG_TYPE);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.style.IStyle

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.