Class CSSPropertyHandlerSimpleProviderImpl
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.providers.AbstractCSSPropertyHandlerProvider
org.eclipse.e4.ui.css.core.dom.properties.providers.CSSPropertyHandlerSimpleProviderImpl
- All Implemented Interfaces:
ICSSPropertyHandlerProvider
CSS property handler with static strategy.
ICSSPropertyHandler
are
retrieved after the CSS Engine register the handler with
registerCSSPropertyHandler method.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCSSProperties
(Object element) Return the list of applicable properties forelement
protected Class<? extends ICSSPropertyHandler>
getCSSPropertyHandlerClass
(String property) getCSSPropertyHandlers
(Object element, String property) Return list ofICSSPropertyHandler
linked to the CSS Propertyproperty
for the provided element.getCSSPropertyHandlers
(String property) Return list ofICSSPropertyHandler
linked to the CSS Propertyproperty
.getDefaultCSSStyleDeclaration
(CSSEngine engine, CSSStylableElement stylableElement, CSSStyleDeclaration newStyle, String pseudoE) Return the default CSS style declaration of theCSSStylableElement
stylableElement
before apply thenewStyle
CSSStyleDeclaration
.void
registerCSSProperty
(String propertyName, Class<? extends ICSSPropertyHandler> propertyHandlerClass) void
registerCSSPropertyHandler
(Class<?> cl, ICSSPropertyHandler handler) static void
registerDefaultCSSProperty
(String propertyName, Class<? extends ICSSPropertyHandler> propertyHandlerClass) Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.providers.AbstractCSSPropertyHandlerProvider
getCSSPropertyStyle, getDefaultCSSStyleDeclaration
-
Constructor Details
-
CSSPropertyHandlerSimpleProviderImpl
public CSSPropertyHandlerSimpleProviderImpl()
-
-
Method Details
-
getCSSPropertyHandlers
Description copied from interface:ICSSPropertyHandlerProvider
Return list ofICSSPropertyHandler
linked to the CSS Propertyproperty
.- Throws:
Exception
-
registerCSSPropertyHandler
-
getCSSPropertyHandlerClass
-
registerCSSProperty
public void registerCSSProperty(String propertyName, Class<? extends ICSSPropertyHandler> propertyHandlerClass) -
registerDefaultCSSProperty
public static void registerDefaultCSSProperty(String propertyName, Class<? extends ICSSPropertyHandler> propertyHandlerClass) -
getAllCSSPropertyNames
-
getDefaultCSSStyleDeclaration
public CSSStyleDeclaration getDefaultCSSStyleDeclaration(CSSEngine engine, CSSStylableElement stylableElement, CSSStyleDeclaration newStyle, String pseudoE) throws Exception Description copied from class:AbstractCSSPropertyHandlerProvider
Return the default CSS style declaration of theCSSStylableElement
stylableElement
before apply thenewStyle
CSSStyleDeclaration
.- Specified by:
getDefaultCSSStyleDeclaration
in classAbstractCSSPropertyHandlerProvider
- Throws:
Exception
-
getCSSPropertyHandlers
public Collection<ICSSPropertyHandler> getCSSPropertyHandlers(Object element, String property) throws Exception Description copied from interface:ICSSPropertyHandlerProvider
Return list ofICSSPropertyHandler
linked to the CSS Propertyproperty
for the provided element.- Parameters:
element
- the DOM element- Returns:
- the handlers for the element
- Throws:
Exception
-
getCSSProperties
Description copied from interface:ICSSPropertyHandlerProvider
Return the list of applicable properties forelement
- Parameters:
element
- the DOM element
-