Class CSSPropertyClassificationSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyClassificationHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyClassificationSWTHandler
- All Implemented Interfaces:
ICSSPropertyClassificationHandler
,ICSSPropertyHandler
-
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
applyCSSPropertyCursor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Specifies the type of cursor to be displayed.void
applyCSSPropertyVisibility
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets if an element should be visible or invisible.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).retrieveCSSPropertyCursor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyVisibility
(Object element, String pseudo, CSSEngine engine) Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyClassificationHandler
applyCSSPropertyClear, applyCSSPropertyDisplay, applyCSSPropertyFloat, applyCSSPropertyPosition, retrieveCSSPropertyClear, retrieveCSSPropertyDisplay, retrieveCSSPropertyFloat, retrieveCSSPropertyPosition
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CSSPropertyClassificationSWTHandler
public CSSPropertyClassificationSWTHandler()
-
-
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 classAbstractCSSPropertyClassificationHandler
- 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 classAbstractCSSPropertyClassificationHandler
- 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
-
applyCSSPropertyCursor
public void applyCSSPropertyCursor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyClassificationHandler
Specifies the type of cursor to be displayed. Available values are=url auto crosshair default pointer move e-resize ne-resize nw-resize n-resize se-resize sw-resize s-resize w-resize text wait help- Specified by:
applyCSSPropertyCursor
in interfaceICSSPropertyClassificationHandler
- Overrides:
applyCSSPropertyCursor
in classAbstractCSSPropertyClassificationHandler
- Throws:
Exception
-
applyCSSPropertyVisibility
public void applyCSSPropertyVisibility(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyClassificationHandler
Sets if an element should be visible or invisible. Available values are=visible hidden collapse- Specified by:
applyCSSPropertyVisibility
in interfaceICSSPropertyClassificationHandler
- Overrides:
applyCSSPropertyVisibility
in classAbstractCSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyCursor
public String retrieveCSSPropertyCursor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyCursor
in interfaceICSSPropertyClassificationHandler
- Overrides:
retrieveCSSPropertyCursor
in classAbstractCSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyVisibility
public String retrieveCSSPropertyVisibility(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyVisibility
in interfaceICSSPropertyClassificationHandler
- Overrides:
retrieveCSSPropertyVisibility
in classAbstractCSSPropertyClassificationHandler
- Throws:
Exception
-