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_INSTANCE
Fields 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 theIResourcesRegistry
registered used to cache/dispose resources.protected abstract void
protected abstract void
protected boolean
isStylable
(Widget widget) Return true if the given widget can be styledvoid
reset()
Reset all style sheet registered into CSS Engine.Methods inherited from class org.eclipse.e4.ui.css.core.impl.engine.CSSEngineImpl
makeCSSParser, registerCSSProperty, registerCSSPropertyHandler, registerPackage
Methods 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:CSSEngine
Get theIResourcesRegistry
registered used to cache/dispose resources.- Specified by:
getResourcesRegistry
in interfaceCSSEngine
- Overrides:
getResourcesRegistry
in classAbstractCSSEngine
-
getElement
Description copied from class:AbstractCSSEngine
Return the w3c Element linked to the Object element.- Specified by:
getElement
in interfaceCSSEngine
- Overrides:
getElement
in 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:CSSEngine
Reset 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:
reset
in interfaceCSSEngine
- Overrides:
reset
in classAbstractCSSEngine
-