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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCSSProperties(Object element) Return the list of applicable properties forelementprotected Class<? extends ICSSPropertyHandler> getCSSPropertyHandlerClass(String property) getCSSPropertyHandlers(Object element, String property) Return list ofICSSPropertyHandlerlinked to the CSS Propertypropertyfor the provided element.getCSSPropertyHandlers(String property) Return list ofICSSPropertyHandlerlinked to the CSS Propertyproperty.getDefaultCSSStyleDeclaration(CSSEngine engine, CSSStylableElement stylableElement, CSSStyleDeclaration newStyle, String pseudoE) Return the default CSS style declaration of theCSSStylableElementstylableElementbefore apply thenewStyleCSSStyleDeclaration.voidregisterCSSProperty(String propertyName, Class<? extends ICSSPropertyHandler> propertyHandlerClass) voidregisterCSSPropertyHandler(Class<?> cl, ICSSPropertyHandler handler) static voidregisterDefaultCSSProperty(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:ICSSPropertyHandlerProviderReturn list ofICSSPropertyHandlerlinked 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:AbstractCSSPropertyHandlerProviderReturn the default CSS style declaration of theCSSStylableElementstylableElementbefore apply thenewStyleCSSStyleDeclaration.- Specified by:
getDefaultCSSStyleDeclarationin classAbstractCSSPropertyHandlerProvider- Throws:
Exception
-
getCSSPropertyHandlers
public Collection<ICSSPropertyHandler> getCSSPropertyHandlers(Object element, String property) throws Exception Description copied from interface:ICSSPropertyHandlerProviderReturn list ofICSSPropertyHandlerlinked to the CSS Propertypropertyfor the provided element.- Parameters:
element- the DOM element- Returns:
- the handlers for the element
- Throws:
Exception
-
getCSSProperties
Description copied from interface:ICSSPropertyHandlerProviderReturn the list of applicable properties forelement- Parameters:
element- the DOM element
-