use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getColumnHeaderHoverStyle.
@Override
protected IStyle getColumnHeaderHoverStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.cHeaderHoverBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.cHeaderHoverFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.cHeaderHoverGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.cHeaderHoverGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.cHeaderHoverHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.cHeaderHoverVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.cHeaderHoverFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.cHeaderHoverImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.cHeaderHoverBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.cHeaderHoverPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.cHeaderHoverTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getRowGroupHeaderStyle.
@Override
protected IStyle getRowGroupHeaderStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.rGroupHeaderBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.rGroupHeaderFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.rGroupHeaderGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.rGroupHeaderGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.rGroupHeaderHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.rGroupHeaderVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.rGroupHeaderFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.rGroupHeaderImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.rGroupHeaderBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.rGroupHeaderPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.rGroupHeaderTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getSelectedSortHeaderStyle.
@Override
protected IStyle getSelectedSortHeaderStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.selectedSortHeaderBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.selectedSortHeaderFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.selectedSortHeaderGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.selectedSortHeaderGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.selectedSortHeaderHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.selectedSortHeaderVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.selectedSortHeaderFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.selectedSortHeaderImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.selectedSortHeaderBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.selectedSortHeaderPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.selectedSortHeaderTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getRowHeaderHoverSelectionStyle.
@Override
protected IStyle getRowHeaderHoverSelectionStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.rHeaderHoverSelectionBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.rHeaderHoverSelectionFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.rHeaderHoverSelectionGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.rHeaderHoverSelectionGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.rHeaderHoverSelectionHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.rHeaderHoverSelectionVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.rHeaderHoverSelectionFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.rHeaderHoverSelectionImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.rHeaderHoverSelectionBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.rHeaderHoverSelectionPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.rHeaderHoverSelectionTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getSelectionAnchorGridLineStyle.
@Override
protected IStyle getSelectionAnchorGridLineStyle() {
Style cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.selectionAnchorGridBorderStyle);
return cellStyle;
}
Aggregations