Package org.eclipse.e4.ui.css.swt.engine
Class CSSSWTEngineImpl
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
org.eclipse.e4.ui.css.swt.engine.CSSSWTEngineImpl
- All Implemented Interfaces:
CSSEngine
CSS SWT Engine implementation which configure CSSEngineImpl to apply styles
to SWT widgets with static handler strategy.
-
Field Summary
Fields inherited from class org.eclipse.e4.ui.css.swt.engine.AbstractCSSSWTEngineImpl
displayFields 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
ConstructorsConstructorDescriptionCSSSWTEngineImpl(Display display) CSSSWTEngineImpl(Display display, boolean lazyApplyingStyles) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhookNativeWidget(Object widget) Called when an element context is created for a native widget and registered with this engine.protected voidprotected voidvoidreapply()Reapply the styles to the objects managed by this engine.Methods inherited from class org.eclipse.e4.ui.css.swt.engine.AbstractCSSSWTEngineImpl
getElement, getResourcesRegistry, isStylable, resetMethods 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, 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
-
Constructor Details
-
CSSSWTEngineImpl
-
CSSSWTEngineImpl
-
-
Method Details
-
hookNativeWidget
Description copied from class:AbstractCSSEngineCalled when an element context is created for a native widget and registered with this engine. Subclasses should override and install a listener on the widget that will callAbstractCSSEngine.handleWidgetDisposed(Object)when the widget is disposed.The default implementation of this method does nothing.
- Overrides:
hookNativeWidgetin classAbstractCSSEngine- Parameters:
widget- the native widget to hook
-
initializeCSSPropertyHandlers
protected void initializeCSSPropertyHandlers()- Specified by:
initializeCSSPropertyHandlersin classAbstractCSSSWTEngineImpl
-
initializeCSSElementProvider
protected void initializeCSSElementProvider()- Specified by:
initializeCSSElementProviderin classAbstractCSSSWTEngineImpl
-
reapply
public void reapply()Description copied from interface:CSSEngineReapply the styles to the objects managed by this engine.
-