Class CSSPropertyPaddingSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyPaddingHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyPaddingSWTHandler
- All Implemented Interfaces:
ICSSPropertyPaddingHandler, 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).voidapplyCSSPropertyPadding(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all four paddings in one declaration.voidapplyCSSPropertyPaddingBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the bottom padding.voidapplyCSSPropertyPaddingLeft(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the left padding.voidapplyCSSPropertyPaddingRight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the right padding.voidapplyCSSPropertyPaddingTop(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the top padding.retrieveCSSPropertyPadding(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyPaddingBottom(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyPaddingLeft(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyPaddingRight(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyPaddingTop(Object element, String pseudo, CSSEngine engine) Methods inherited from class AbstractCSSPropertyPaddingHandler
retrieveCSSPropertyMethods 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
-
CSSPropertyPaddingSWTHandler
public CSSPropertyPaddingSWTHandler()
-
-
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 classAbstractCSSPropertyPaddingHandler- 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
-
applyCSSPropertyPadding
public void applyCSSPropertyPadding(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyPaddingHandlerA shorthand property for setting all four paddings in one declaration. Available values are {padding-top, padding-right, padding-bottom, padding-left}- Throws:
Exception
-
applyCSSPropertyPaddingTop
-
applyCSSPropertyPaddingRight
-
applyCSSPropertyPaddingBottom
-
applyCSSPropertyPaddingLeft
-
retrieveCSSPropertyPadding
-
retrieveCSSPropertyPaddingTop
-
retrieveCSSPropertyPaddingRight
-
retrieveCSSPropertyPaddingBottom
-
retrieveCSSPropertyPaddingLeft
-