Class CSSPropertyTextSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyTextHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyTextSWTHandler
- All Implemented Interfaces:
ICSSPropertyTextHandler, ICSSPropertyHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).voidapplyCSSPropertyColor(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of a text.voidapplyCSSPropertyTextTransform(Object element, CSSValue value, String pseudo, CSSEngine engine) Controls the letters in an element.retrieveCSSProperty(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).retrieveCSSPropertyColor(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyTextTransform(Object element, String pseudo, CSSEngine engine) Methods inherited from class AbstractCSSPropertyTextHandler
getTextTransform, getTextTransform, hasTextTransformMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICSSPropertyHandler
onAllCSSPropertiesApplied, onAllCSSPropertiesApplied
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CSSPropertyTextSWTHandler
public CSSPropertyTextSWTHandler()
-
-
Method Details
-
applyCSSProperty
public boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Specified by:
applyCSSPropertyin interfaceICSSPropertyHandler- Overrides:
applyCSSPropertyin classAbstractCSSPropertyTextHandler- 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
public String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerRetrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).- Specified by:
retrieveCSSPropertyin interfaceICSSPropertyHandler- Overrides:
retrieveCSSPropertyin classAbstractCSSPropertyTextHandler- 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
-
applyCSSPropertyColor
public void applyCSSPropertyColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyTextHandlerSets the color of a text.- Specified by:
applyCSSPropertyColorin interfaceICSSPropertyTextHandler- Overrides:
applyCSSPropertyColorin classAbstractCSSPropertyTextHandler- Throws:
Exception
-
applyCSSPropertyTextTransform
public void applyCSSPropertyTextTransform(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyTextHandlerControls the letters in an element. Available values are : none capitalize uppercase lowercase- Specified by:
applyCSSPropertyTextTransformin interfaceICSSPropertyTextHandler- Overrides:
applyCSSPropertyTextTransformin classAbstractCSSPropertyTextHandler- Throws:
Exception
-
retrieveCSSPropertyColor
public String retrieveCSSPropertyColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyColorin interfaceICSSPropertyTextHandler- Overrides:
retrieveCSSPropertyColorin classAbstractCSSPropertyTextHandler- Throws:
Exception
-
retrieveCSSPropertyTextTransform
public String retrieveCSSPropertyTextTransform(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyTextTransformin interfaceICSSPropertyTextHandler- Overrides:
retrieveCSSPropertyTextTransformin classAbstractCSSPropertyTextHandler- Throws:
Exception
-