Class CSSPropertyFontSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.AbstractCSSPropertyCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyFontCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyFontHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyFontSWTHandler
- All Implemented Interfaces:
ICSSPropertyFontHandler
,ICSSPropertyCompositeHandler
,ICSSPropertyHandler
,ICSSPropertyHandler2
public class CSSPropertyFontSWTHandler
extends AbstractCSSPropertyFontHandler
implements ICSSPropertyHandler2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply CSS Propertyproperty
(ex : background-color) with CSSValuevalue
(ex : red) into theelement
(ex : Swing Component, SWT Widget).void
applyCSSPropertyFontFamily
(Object element, CSSValue value, String pseudo, CSSEngine engine) A prioritized list of font family names and/or generic family names for an element.void
applyCSSPropertyFontSize
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the size of a font.void
applyCSSPropertyFontStyle
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the font.void
applyCSSPropertyFontWeight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the weight of a font.void
onAllCSSPropertiesApplyed
(Object element, CSSEngine engine) Callback method called when all CSS properties are applied.retrieveCSSProperty
(Object element, String property, String pseudo, CSSEngine engine) Retrieve CSS value (ex : red) of CSS Propertyproperty
(ex : background-color) from theelement
(ex : Swing Component, SWT Widget).retrieveCSSPropertyFontAdjust
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontFamily
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontSize
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontStretch
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontStyle
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontVariant
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFontWeight
(Object element, String pseudo, CSSEngine engine) Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyFontHandler
applyCSSPropertyFont, applyCSSPropertyFontFamily, applyCSSPropertyFontSize, applyCSSPropertyFontSizeAdjust, applyCSSPropertyFontStretch, applyCSSPropertyFontStyle, applyCSSPropertyFontVariant, applyCSSPropertyFontWeight
Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyFontCompositeHandler
applyCSSProperty, getCSSPropertiesNames, isCSSPropertyComposite
Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.AbstractCSSPropertyCompositeHandler
applyCSSPropertyComposite
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler2
onAllCSSPropertiesApplyed
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CSSPropertyFontSWTHandler
public CSSPropertyFontSWTHandler()
-
-
Method Details
-
applyCSSProperty
public boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandler
Apply CSS Propertyproperty
(ex : background-color) with CSSValuevalue
(ex : red) into theelement
(ex : Swing Component, SWT Widget).- Specified by:
applyCSSProperty
in interfaceICSSPropertyHandler
- Overrides:
applyCSSProperty
in classAbstractCSSPropertyFontHandler
- Parameters:
element
- Swing Component, SWT Widget...property
- CSS Propertyvalue
- CSS valuepseudo
- the pseudo class to use, ornull
if none is requiredengine
- CSS Engine- Returns:
- weather CSS property was applied or not
- Throws:
Exception
- if applying CSS failed
-
applyCSSPropertyFontFamily
public void applyCSSPropertyFontFamily(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandler
A prioritized list of font family names and/or generic family names for an element.- Specified by:
applyCSSPropertyFontFamily
in interfaceICSSPropertyFontHandler
- Overrides:
applyCSSPropertyFontFamily
in classAbstractCSSPropertyFontHandler
- Throws:
Exception
-
applyCSSPropertyFontSize
public void applyCSSPropertyFontSize(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandler
Sets the size of a font.- Specified by:
applyCSSPropertyFontSize
in interfaceICSSPropertyFontHandler
- Overrides:
applyCSSPropertyFontSize
in classAbstractCSSPropertyFontHandler
- Throws:
Exception
-
applyCSSPropertyFontWeight
public void applyCSSPropertyFontWeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandler
Sets the weight of a font.- Specified by:
applyCSSPropertyFontWeight
in interfaceICSSPropertyFontHandler
- Overrides:
applyCSSPropertyFontWeight
in classAbstractCSSPropertyFontHandler
- Throws:
Exception
-
applyCSSPropertyFontStyle
public void applyCSSPropertyFontStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyFontHandler
Sets the style of the font.- Specified by:
applyCSSPropertyFontStyle
in interfaceICSSPropertyFontHandler
- Overrides:
applyCSSPropertyFontStyle
in classAbstractCSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSProperty
public String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandler
Retrieve CSS value (ex : red) of CSS Propertyproperty
(ex : background-color) from theelement
(ex : Swing Component, SWT Widget).- Specified by:
retrieveCSSProperty
in interfaceICSSPropertyHandler
- Overrides:
retrieveCSSProperty
in classAbstractCSSPropertyFontHandler
- Parameters:
element
- Swing Component, SWT Widget...property
- CSS Propertypseudo
- the pseudo class to use, ornull
if none is requiredengine
- CSS Engine- Returns:
- retrieved CSS properties or
null
- Throws:
Exception
- if retrieving CSS failed
-
retrieveCSSPropertyFontAdjust
public String retrieveCSSPropertyFontAdjust(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontAdjust
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSPropertyFontFamily
public String retrieveCSSPropertyFontFamily(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontFamily
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSPropertyFontSize
public String retrieveCSSPropertyFontSize(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontSize
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSPropertyFontStretch
public String retrieveCSSPropertyFontStretch(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontStretch
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSPropertyFontStyle
public String retrieveCSSPropertyFontStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontStyle
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSPropertyFontVariant
public String retrieveCSSPropertyFontVariant(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontVariant
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
retrieveCSSPropertyFontWeight
public String retrieveCSSPropertyFontWeight(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFontWeight
in interfaceICSSPropertyFontHandler
- Throws:
Exception
-
onAllCSSPropertiesApplyed
Description copied from interface:ICSSPropertyHandler2
Callback method called when all CSS properties are applied.- Specified by:
onAllCSSPropertiesApplyed
in interfaceICSSPropertyHandler2
- Throws:
Exception
-