Class CSSPropertyBackgroundSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.AbstractCSSPropertyCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBackgroundCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBackgroundHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyBackgroundSWTHandler
- All Implemented Interfaces:
ICSSPropertyBackgroundHandler
,ICSSPropertyCompositeHandler
,ICSSPropertyHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply CSS Propertyproperty
(ex : background-color) with CSSValuevalue
(ex : red) into theelement
(ex : Swing Component, SWT Widget).void
applyCSSPropertyBackgroundColor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the background color of an element.void
applyCSSPropertyBackgroundImage
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets an image as the background.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).retrieveCSSPropertyBackgroundColor
(Object element, String pseudo, CSSEngine engine) Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBackgroundHandler
applyCSSPropertyBackground, applyCSSPropertyBackgroundAttachment, applyCSSPropertyBackgroundPosition, applyCSSPropertyBackgroundRepeat
Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBackgroundCompositeHandler
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.css2.ICSSPropertyBackgroundHandler
retrieveCSSPropertyBackgroundAttachment, retrieveCSSPropertyBackgroundImage, retrieveCSSPropertyBackgroundPosition, retrieveCSSPropertyBackgroundRepeat
-
Constructor Details
-
CSSPropertyBackgroundSWTHandler
public CSSPropertyBackgroundSWTHandler()
-
-
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 classAbstractCSSPropertyBackgroundHandler
- 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
-
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 classAbstractCSSPropertyBackgroundHandler
- 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
-
applyCSSPropertyBackgroundColor
public void applyCSSPropertyBackgroundColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBackgroundHandler
Sets the background color of an element. Available values are= color-rgb, color-hex, color-name, transparent- Specified by:
applyCSSPropertyBackgroundColor
in interfaceICSSPropertyBackgroundHandler
- Overrides:
applyCSSPropertyBackgroundColor
in classAbstractCSSPropertyBackgroundHandler
- Throws:
Exception
-
applyCSSPropertyBackgroundImage
public void applyCSSPropertyBackgroundImage(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBackgroundHandler
Sets an image as the background. Available values=url(URL), none- Specified by:
applyCSSPropertyBackgroundImage
in interfaceICSSPropertyBackgroundHandler
- Overrides:
applyCSSPropertyBackgroundImage
in classAbstractCSSPropertyBackgroundHandler
- Throws:
Exception
-
retrieveCSSPropertyBackgroundColor
public String retrieveCSSPropertyBackgroundColor(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-