Class AbstractCSSPropertyClassificationHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyClassificationHandler
- All Implemented Interfaces:
ICSSPropertyClassificationHandler
,ICSSPropertyHandler
- Direct Known Subclasses:
CSSPropertyClassificationSWTHandler
public abstract class AbstractCSSPropertyClassificationHandler
extends Object
implements ICSSPropertyClassificationHandler
-
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
applyCSSPropertyClear
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the sides of an element where other floating elements are not allowed.void
applyCSSPropertyCursor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Specifies the type of cursor to be displayed.void
applyCSSPropertyDisplay
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets how/if an element is displayed.void
applyCSSPropertyFloat
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets where an image or a text will appear in another element.void
applyCSSPropertyPosition
(Object element, CSSValue value, String pseudo, CSSEngine engine) Places an element in a static, relative, absolute or fixed position.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).retrieveCSSPropertyClear
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyCursor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyDisplay
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyFloat
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyPosition
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyVisibility
(Object element, String pseudo, CSSEngine engine)
-
Constructor Details
-
AbstractCSSPropertyClassificationHandler
public AbstractCSSPropertyClassificationHandler()
-
-
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
- 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
- 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
-
applyCSSPropertyClear
public void applyCSSPropertyClear(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyClassificationHandler
Sets the sides of an element where other floating elements are not allowed. Available values are=left,right,both,none- Specified by:
applyCSSPropertyClear
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
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
- Throws:
Exception
-
applyCSSPropertyDisplay
public void applyCSSPropertyDisplay(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyClassificationHandler
Sets how/if an element is displayed. Available values are=none inline block list-item run-in compact marker table inline-table table-row-group table-header-group table-footer-group table-row table-column-group table-column table-cell table-caption- Specified by:
applyCSSPropertyDisplay
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
applyCSSPropertyFloat
public void applyCSSPropertyFloat(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyClassificationHandler
Sets where an image or a text will appear in another element. Available values are=left right none- Specified by:
applyCSSPropertyFloat
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
applyCSSPropertyPosition
public void applyCSSPropertyPosition(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyClassificationHandler
Places an element in a static, relative, absolute or fixed position. Available values are=static relative absolute fixed- Specified by:
applyCSSPropertyPosition
in interfaceICSSPropertyClassificationHandler
- 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
- Throws:
Exception
-
retrieveCSSPropertyClear
public String retrieveCSSPropertyClear(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyClear
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyCursor
public String retrieveCSSPropertyCursor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyCursor
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyDisplay
public String retrieveCSSPropertyDisplay(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyDisplay
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyFloat
public String retrieveCSSPropertyFloat(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyFloat
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyPosition
public String retrieveCSSPropertyPosition(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyPosition
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-
retrieveCSSPropertyVisibility
public String retrieveCSSPropertyVisibility(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyVisibility
in interfaceICSSPropertyClassificationHandler
- Throws:
Exception
-