Class CSSPropertyHandlerLazyProviderImpl
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.providers.AbstractCSSPropertyHandlerProvider
org.eclipse.e4.ui.css.core.dom.properties.providers.CSSPropertyHandlerLazyProviderImpl
- All Implemented Interfaces:
ICSSPropertyHandlerProvider
CSS property handler with lazy strategy.
ICSSPropertyHandler
are
retrieved with name into packages registered with registerPackage method.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCSSProperties
(Object element) Return the list of applicable properties forelement
protected ICSSPropertyHandler
getCSSPropertyHandler
(String packageName, String handlerClassName) Reflexive method that return a property handler classgetCSSPropertyHandlers
(Object element, String property) Return list ofICSSPropertyHandler
linked to the CSS Propertyproperty
for the provided element.getCSSPropertyHandlers
(String property) Return the list of PropertiesHandler corresponding to the property name given as argumentprotected CSSStyleDeclaration
getDefaultCSSStyleDeclaration
(CSSEngine engine, CSSStylableElement stylableElement, CSSStyleDeclaration newStyle, String pseudoE) Return the default CSS style declaration of theCSSStylableElement
stylableElement
before apply thenewStyle
CSSStyleDeclaration
.protected String
getHandlerClassName
(String property) Return the handler class name corresponding to the property label given as argument A Property Handler Class Name is CSSPropertyXXXHandler (like CSSPropertyBorderTopColorHandler)protected Map<String,
List<ICSSPropertyHandler>> void
registerPackage
(String packageName) Register a package path "name.name1." where to search for PropertyHandler classMethods inherited from class org.eclipse.e4.ui.css.core.dom.properties.providers.AbstractCSSPropertyHandlerProvider
getCSSPropertyStyle, getDefaultCSSStyleDeclaration
-
Constructor Details
-
CSSPropertyHandlerLazyProviderImpl
public CSSPropertyHandlerLazyProviderImpl()
-
-
Method Details
-
getCSSPropertyHandlers
Return the list of PropertiesHandler corresponding to the property name given as argument- Throws:
Exception
-
registerPackage
Register a package path "name.name1." where to search for PropertyHandler class -
getPropertyToHandlersMap
-
getCSSPropertyHandler
protected ICSSPropertyHandler getCSSPropertyHandler(String packageName, String handlerClassName) throws Exception Reflexive method that return a property handler class- Throws:
Exception
-
getHandlerClassName
Return the handler class name corresponding to the property label given as argument A Property Handler Class Name is CSSPropertyXXXHandler (like CSSPropertyBorderTopColorHandler) -
getDefaultCSSStyleDeclaration
protected 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
-