Class CSSPropertyHeaderHandler
java.lang.Object
org.eclipse.e4.ui.css.swt.properties.custom.CSSPropertyHeaderHandler
- All Implemented Interfaces:
ICSSPropertyHandler
A handler which allows the styling of IHeaderCustomizationElements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).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).
-
Constructor Details
-
CSSPropertyHeaderHandler
public CSSPropertyHeaderHandler()
-
-
Method Details
-
applyCSSProperty
public boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Specified by:
applyCSSPropertyin interfaceICSSPropertyHandler- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertyvalue- CSS valuepseudo- the pseudo class to use, ornullif none is requiredengine- CSS Engine- Returns:
- weather CSS property was applied or not
- Throws:
Exception- if applying CSS failed
-
retrieveCSSProperty
public String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerRetrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).- Specified by:
retrieveCSSPropertyin interfaceICSSPropertyHandler- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertypseudo- the pseudo class to use, ornullif none is requiredengine- CSS Engine- Returns:
- retrieved CSS properties or
null - Throws:
Exception- if retrieving CSS failed
-