Search in sources :

Example 1 with LineStyleEnum

use of org.eclipse.nebula.widgets.nattable.style.BorderStyle.LineStyleEnum in project nebula.widgets.nattable by eclipse.

the class BorderStyleEditorPanel method getNewValue.

@Override
public BorderStyle getNewValue() {
    if (!this.noBordersCheckBox.getSelection()) {
        Color borderColor = this.colorPicker.getSelectedColor();
        LineStyleEnum lineStyle = this.lineStylePicker.getSelectedLineStyle();
        int borderThickness = this.thicknessPicker.getSelectedThickness();
        return new BorderStyle(borderThickness, borderColor, lineStyle);
    }
    return null;
}
Also used : BorderStyle(org.eclipse.nebula.widgets.nattable.style.BorderStyle) Color(org.eclipse.swt.graphics.Color) LineStyleEnum(org.eclipse.nebula.widgets.nattable.style.BorderStyle.LineStyleEnum)

Aggregations

BorderStyle (org.eclipse.nebula.widgets.nattable.style.BorderStyle)1 LineStyleEnum (org.eclipse.nebula.widgets.nattable.style.BorderStyle.LineStyleEnum)1 Color (org.eclipse.swt.graphics.Color)1