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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCSSProperties(Object element) Return the list of applicable properties forelementprotected ICSSPropertyHandlergetCSSPropertyHandler(String packageName, String handlerClassName) Reflexive method that return a property handler classgetCSSPropertyHandlers(Object element, String property) Return list ofICSSPropertyHandlerlinked to the CSS Propertypropertyfor the provided element.getCSSPropertyHandlers(String property) Return the list of PropertiesHandler corresponding to the property name given as argumentprotected CSSStyleDeclarationgetDefaultCSSStyleDeclaration(CSSEngine engine, CSSStylableElement stylableElement, CSSStyleDeclaration newStyle, String pseudoE) Return the default CSS style declaration of theCSSStylableElementstylableElementbefore apply thenewStyleCSSStyleDeclaration.protected StringgetHandlerClassName(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>> voidregisterPackage(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: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
-