Package org.eclipse.e4.ui.css.swt.engine
Class AbstractCSSSWTEngineImpl
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine
org.eclipse.e4.ui.css.core.impl.engine.CSSEngineImpl
org.eclipse.e4.ui.css.swt.engine.AbstractCSSSWTEngineImpl
- All Implemented Interfaces:
CSSEngine
- Direct Known Subclasses:
CSSSWTEngineImpl
CSS SWT Engine implementation which configure CSSEngineImpl to apply styles
to SWT widgets.
-
Field Summary
FieldsFields inherited from class org.eclipse.e4.ui.css.core.impl.engine.CSSEngineImpl
CONDITIONFACTORY_INSTANCEFields inherited from class org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine
computeDefaultStyle, propertyHandlerProviders -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCSSSWTEngineImpl(Display display) AbstractCSSSWTEngineImpl(Display display, boolean lazyApplyingStyles) -
Method Summary
Modifier and TypeMethodDescriptiongetElement(Object element) Return the w3c Element linked to the Object element.Get theIResourcesRegistryregistered used to cache/dispose resources.protected abstract voidprotected abstract voidprotected booleanisStylable(Widget widget) Return true if the given widget can be styledvoidreset()Reset all style sheet registered into CSS Engine.Methods inherited from class org.eclipse.e4.ui.css.core.impl.engine.CSSEngineImpl
makeCSSParser, registerCSSProperty, registerCSSPropertyHandler, registerPackageMethods inherited from class org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine
applyCSSProperty, applyDefaultStyleDeclaration, applyDefaultStyleDeclaration, applyInlineStyle, applyStyleDeclaration, applyStyles, applyStyles, convert, convert, dispose, getCSSCompositePropertiesNames, getCSSElementContext, getCSSProperties, getCSSPropertyHandlers, getCSSValueConverter, getDefaultStyleDeclaration, getDefaultStyleDeclaration, getDocumentCSS, getElementProvider, getElementsContext, getErrorHandler, getNativeWidget, getResourcesLocatorManager, getStaticPseudoInstances, getViewCSS, handleExceptions, handleWidgetDisposed, hookNativeWidget, isVisible, matches, onStylesAppliedToChildNodes, parseAndApplyStyleDeclaration, parseAndApplyStyleDeclaration, parseAndApplyStyleDeclaration, parseAndApplyStyleDeclaration, parsePropertyValue, parsePropertyValue, parsePropertyValue, parsePropertyValue, parseSelectors, parseSelectors, parseSelectors, parseSelectors, parseStyleDeclaration, parseStyleDeclaration, parseStyleDeclaration, parseStyleDeclaration, parseStyleSheet, parseStyleSheet, parseStyleSheet, registerCSSPropertyHandlerProvider, registerCSSValueConverter, retrieveCSSProperty, setElementProvider, setErrorHandler, setResourceRegistryKeyFactory, setResourcesLocatorManager, setResourcesRegistry, unregisterCSSPropertyHandlerProvider, unregisterCSSValueConverter
-
Field Details
-
display
-
-
Constructor Details
-
AbstractCSSSWTEngineImpl
-
AbstractCSSSWTEngineImpl
-
-
Method Details
-
initializeCSSPropertyHandlers
protected abstract void initializeCSSPropertyHandlers() -
initializeCSSElementProvider
protected abstract void initializeCSSElementProvider() -
getResourcesRegistry
Description copied from interface:CSSEngineGet theIResourcesRegistryregistered used to cache/dispose resources.- Specified by:
getResourcesRegistryin interfaceCSSEngine- Overrides:
getResourcesRegistryin classAbstractCSSEngine
-
getElement
Description copied from class:AbstractCSSEngineReturn the w3c Element linked to the Object element.- Specified by:
getElementin interfaceCSSEngine- Overrides:
getElementin classAbstractCSSEngine
-
isStylable
Return true if the given widget can be styled- Parameters:
widget- the widget- Returns:
- true if the widget can be styled
-
reset
public void reset()Description copied from interface:CSSEngineReset all style sheet registered into CSS Engine. This method must be called if you want parse and apply new StyleSheet and remove the old StyleSheet parsed.- Specified by:
resetin interfaceCSSEngine- Overrides:
resetin classAbstractCSSEngine
-