public class EEFStyledTextStyleCallback extends java.lang.Object implements EEFStyleHelper.IEEFTextStyleCallback
Constructor and Description |
---|
EEFStyledTextStyleCallback(org.eclipse.swt.custom.StyledText styledText)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyBackgroundColor(EEFColor color)
Applies the given background color to the widget.
|
void |
applyFont(EEFFont font)
Applies the given font to the widget.
|
void |
applyFontStyle(boolean strikeout,
boolean underline)
Applies the strikeout and/or underline styles.
|
void |
applyForegroundColor(EEFColor color)
Applies the given foreground color to the widget.
|
public EEFStyledTextStyleCallback(org.eclipse.swt.custom.StyledText styledText)
styledText
- The styled textpublic void applyFont(EEFFont font)
applyFont
in interface EEFStyleHelper.IEEFTextStyleCallback
font
- The fontEEFStyleHelper.IEEFTextStyleCallback.applyFont(org.eclipse.eef.ide.ui.internal.widgets.styles.EEFFont)
public void applyFontStyle(boolean strikeout, boolean underline)
applyFontStyle
in interface EEFStyleHelper.IEEFTextStyleCallback
strikeout
- true
if the widget should be striked out, false
otherwiseunderline
- true
if the widget should be underlined, false
otherwiseEEFStyleHelper.IEEFTextStyleCallback.applyFontStyle(boolean, boolean)
public void applyForegroundColor(EEFColor color)
applyForegroundColor
in interface EEFStyleHelper.IEEFTextStyleCallback
color
- The foreground colorEEFStyleHelper.IEEFTextStyleCallback.applyForegroundColor(org.eclipse.eef.ide.ui.internal.widgets.styles.EEFColor)
public void applyBackgroundColor(EEFColor color)
applyBackgroundColor
in interface EEFStyleHelper.IEEFTextStyleCallback
color
- The background colorEEFStyleHelper.IEEFTextStyleCallback.applyBackgroundColor(org.eclipse.eef.ide.ui.internal.widgets.styles.EEFColor)