use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getCornerStyle.
@Override
protected IStyle getCornerStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.cornerBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.cornerFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.cornerGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.cornerGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.cornerHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.cornerVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.cornerFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.cornerImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.cornerBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.cornerPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.cornerTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getSummaryRowSelectionStyle.
@Override
protected IStyle getSummaryRowSelectionStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.summaryRowSelectionBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.summaryRowSelectionFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.summaryRowSelectionGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.summaryRowSelectionGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.summaryRowSelectionHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.summaryRowSelectionVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.summaryRowSelectionFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.summaryRowSelectionImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.summaryRowSelectionBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.summaryRowSelectionPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.summaryRowSelectionTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getColumnHeaderSelectionStyle.
@Override
protected IStyle getColumnHeaderSelectionStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.cHeaderSelectionBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.cHeaderSelectionFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.cHeaderSelectionGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.cHeaderSelectionGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.cHeaderSelectionHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.cHeaderSelectionVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.cHeaderSelectionFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.cHeaderSelectionImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.cHeaderSelectionBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.cHeaderSelectionPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.cHeaderSelectionTextDecoration);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getCopyBorderStyle.
@Override
protected IStyle getCopyBorderStyle() {
Style cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.copyBorderStyle);
return cellStyle;
}
use of org.eclipse.nebula.widgets.nattable.style.IStyle in project nebula.widgets.nattable by eclipse.
the class DefaultNatTableThemeConfiguration method getTreeSelectionStyle.
@Override
protected IStyle getTreeSelectionStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, this.treeSelectionBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, this.treeSelectionFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, this.treeSelectionGradientBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, this.treeSelectionGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, this.treeSelectionHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, this.treeSelectionVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, this.treeSelectionFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, this.treeSelectionImage);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, this.treeSelectionBorderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR, this.treeSelectionPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION, this.treeSelectionTextDecoration);
return cellStyle;
}
Aggregations