Class CSSSWTEngineImpl
java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.CSSEngineImpl
org.eclipse.e4.ui.css.swt.engine.CSSSWTEngineImpl
- All Implemented Interfaces:
CSSEngine
CSS SWT Engine. Configures
CSSEngineImpl with the SWT-specific
value converters and the registry-driven element + property handler
providers, and applies styles to SWT widgets.-
Field Summary
FieldsFields inherited from class CSSEngineImpl
computeDefaultStyle, propertyHandlerProviders -
Constructor Summary
ConstructorsConstructorDescriptionCSSSWTEngineImpl(Display display) CSSSWTEngineImpl(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 voidhookNativeWidget(Object widget) Called when an element context is created for a native widget and registered with this engine.protected booleanisStylable(Widget widget) Return true if the given widget can be styled.voidreapply()Reapply the styles to the objects managed by this engine.voidreset()Reset all style sheet registered into CSS Engine.Methods inherited from class CSSEngineImpl
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, isElementStyled, isVisible, makeCSSParser, markElementStyled, matches, onStylesAppliedToChildNodes, parseAndApplyStyleDeclaration, parseAndApplyStyleDeclaration, parseAndApplyStyleDeclaration, parseAndApplyStyleDeclaration, parsePropertyValue, parsePropertyValue, parsePropertyValue, parsePropertyValue, parseSelectors, parseSelectors, parseSelectors, parseSelectors, parseStyleDeclaration, parseStyleDeclaration, parseStyleDeclaration, parseStyleDeclaration, parseStyleSheet, parseStyleSheet, parseStyleSheet, registerCSSProperty, registerCSSPropertyHandler, registerCSSPropertyHandlerProvider, registerCSSValueConverter, registerPackage, retrieveCSSProperty, setElementProvider, setErrorHandler, setResourceRegistryKeyFactory, setResourcesLocatorManager, setResourcesRegistry, startStylingSession, stopStylingSession, unregisterCSSPropertyHandlerProvider, unregisterCSSValueConverter
-
Field Details
-
display
-
-
Constructor Details
-
CSSSWTEngineImpl
-
CSSSWTEngineImpl
-
-
Method Details
-
hookNativeWidget
Description copied from class:CSSEngineImplCalled 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 callCSSEngineImpl.handleWidgetDisposed(Object)when the widget is disposed.The default implementation of this method does nothing.
- Overrides:
hookNativeWidgetin classCSSEngineImpl- Parameters:
widget- the native widget to hook
-
getResourcesRegistry
Description copied from interface:CSSEngineGet theIResourcesRegistryregistered used to cache/dispose resources.- Specified by:
getResourcesRegistryin interfaceCSSEngine- Overrides:
getResourcesRegistryin classCSSEngineImpl
-
getElement
Description copied from class:CSSEngineImplReturn the w3c Element linked to the Object element.- Specified by:
getElementin interfaceCSSEngine- Overrides:
getElementin classCSSEngineImpl
-
isStylable
Return true if the given 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 classCSSEngineImpl
-
reapply
public void reapply()Description copied from interface:CSSEngineReapply the styles to the objects managed by this engine.
-