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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply CSS Propertyproperty
(ex : background-color) with CSSValuevalue
(ex : red) into theelement
(ex : Swing Component, SWT Widget).void
applyCSSPropertyPadding
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all four paddings in one declaration.void
applyCSSPropertyPaddingBottom
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the bottom padding.void
applyCSSPropertyPaddingLeft
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the left padding.void
applyCSSPropertyPaddingRight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the right padding.void
applyCSSPropertyPaddingTop
(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 org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyPaddingHandler
retrieveCSSProperty
-
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:ICSSPropertyHandler
Apply CSS Propertyproperty
(ex : background-color) with CSSValuevalue
(ex : red) into theelement
(ex : Swing Component, SWT Widget).- Specified by:
applyCSSProperty
in interfaceICSSPropertyHandler
- Overrides:
applyCSSProperty
in classAbstractCSSPropertyPaddingHandler
- Parameters:
element
- Swing Component, SWT Widget...property
- CSS Propertyvalue
- CSS valuepseudo
- the pseudo class to use, ornull
if 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:ICSSPropertyPaddingHandler
A shorthand property for setting all four paddings in one declaration. Available values are {padding-top, padding-right, padding-bottom, padding-left}- Throws:
Exception
-
applyCSSPropertyPaddingTop
public void applyCSSPropertyPaddingTop(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyPaddingHandler
Sets the top padding. Available values are {length}- Throws:
Exception
-
applyCSSPropertyPaddingRight
public void applyCSSPropertyPaddingRight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyPaddingHandler
Sets the right padding. Available values are {length}- Throws:
Exception
-
applyCSSPropertyPaddingBottom
public void applyCSSPropertyPaddingBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyPaddingHandler
Sets the bottom padding. Available values are {length}- Throws:
Exception
-
applyCSSPropertyPaddingLeft
public void applyCSSPropertyPaddingLeft(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyPaddingHandler
Sets the left padding. Available values are {length}- Throws:
Exception
-
retrieveCSSPropertyPadding
public String retrieveCSSPropertyPadding(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyPaddingTop
public String retrieveCSSPropertyPaddingTop(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyPaddingRight
public String retrieveCSSPropertyPaddingRight(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyPaddingBottom
public String retrieveCSSPropertyPaddingBottom(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyPaddingLeft
public String retrieveCSSPropertyPaddingLeft(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-