Interface ICSSPropertyHandler
- All Known Subinterfaces:
ICSSPropertyBackgroundHandler, ICSSPropertyBorderHandler, ICSSPropertyClassificationHandler, ICSSPropertyCompositeHandler, ICSSPropertyDimensionHandler, ICSSPropertyFontHandler, ICSSPropertyMarginHandler, ICSSPropertyPaddingHandler, ICSSPropertyTextHandler
- All Known Implementing Classes:
AbstractConvertedCSSPropertySWTHandler, AbstractCSSPropertyBackgroundCompositeHandler, AbstractCSSPropertyBackgroundHandler, AbstractCSSPropertyBorderCompositeHandler, AbstractCSSPropertyBorderHandler, AbstractCSSPropertyClassificationHandler, AbstractCSSPropertyCompositeHandler, AbstractCSSPropertyDimensionHandler, AbstractCSSPropertyFontCompositeHandler, AbstractCSSPropertyFontHandler, AbstractCSSPropertyMarginHandler, AbstractCSSPropertyPaddingHandler, AbstractCSSPropertySWTHandler, AbstractCSSPropertyTextHandler, CSSBackgroundModePropertyHandler, CSSPropertyAlignmentSWTHandler, CSSPropertyBackgroundSWTHandler, CSSPropertyBorderSWTHandler, CSSPropertyBorderVisibleSWTHandler, CSSPropertyClassificationSWTHandler, CSSPropertyColorDefinitionHandler, CSSPropertyCustomTabContentBackgroundSWTHandler, CSSPropertye4SelectedTabFillHandler, CSSPropertye4TabOutline, CSSPropertyFontDefinitionHandler, CSSPropertyFontSWTHandler, CSSPropertyHeaderHandler, CSSPropertyInnerKeylineSWTHandler, CSSPropertyLinesVisibleSWTHandler, CSSPropertyLinkSWTHandler, CSSPropertyMarginSWTHandler, CSSPropertyMaximizedSWTHandler, CSSPropertyMaximizeVisibleSWTHandler, CSSPropertyMinimizedSWTHandler, CSSPropertyMinimizeVisibleSWTHandler, CSSPropertyOuterKeylineSWTHandler, CSSPropertyPaddingSWTHandler, CSSPropertySelectedImageVisibleSWTHandler, CSSPropertySelectedTabsSWTHandler, CSSPropertySimpleSWTHandler, CSSPropertySingleSWTHandler, CSSPropertyTabHeightHandler, CSSPropertyTabPositionSWTHandler, CSSPropertyTabRendererSWTHandler, CSSPropertyTabTextMinimumCharactersSWTHandler, CSSPropertyTextSWTHandler, CSSPropertyThemeElementDefinitionHandler, CSSPropertyThemesExtensionHandler, CSSPropertyUnselectedCloseVisibleSWTHandler, CSSPropertyUnselectedImageVisibleSWTHandler, CSSPropertyUnselectedTabsSWTHandler, CSSPropertyUnselectHotTabsColorBackgroundHandler, EclipsePreferencesHandler
public interface ICSSPropertyHandler
CSS Property Handler interface used to
- apply CSS Property value to an element like Swing Component, SWT Widget.
- retrieve default CSS Property value from element like Swing Component, SWT Widget.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).default voidonAllCSSPropertiesApplied(Object element, CSSEngine engine) Callback method called once after all CSS properties of a single declaration have been applied.default voidonAllCSSPropertiesApplied(Object element, CSSEngine engine, String pseudo) Variant ofonAllCSSPropertiesApplied(Object, CSSEngine)that also receives the pseudo class.default StringretrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) Retrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).
-
Method Details
-
applyCSSProperty
boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception Apply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertyvalue- CSS valuepseudo- the pseudo class to use, ornullif none is requiredengine- CSS Engine- Returns:
- weather CSS property was applied or not
- Throws:
Exception- if applying CSS failed
-
retrieveCSSProperty
default String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Retrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertypseudo- the pseudo class to use, ornullif none is requiredengine- CSS Engine- Returns:
- retrieved CSS properties or
null - Throws:
Exception- if retrieving CSS failed
-
onAllCSSPropertiesApplied
Callback method called once after all CSS properties of a single declaration have been applied. Handlers that need to perform a final step (re-layout, redraw, batched commit, ...) override this method; the default is a no-op.- Throws:
Exception
-
onAllCSSPropertiesApplied
-