Class CSSPropertyMarginSWTHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyMarginHandler
org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyMarginSWTHandler
- All Implemented Interfaces:
ICSSPropertyMarginHandler
,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
applyCSSPropertyMargin
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all four margins in one declaration.void
applyCSSPropertyMarginBottom
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the bottom margin.void
applyCSSPropertyMarginLeft
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the left margin.void
applyCSSPropertyMarginRight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the right margin.void
applyCSSPropertyMarginTop
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the top margin.retrieveCSSPropertyMargin
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyMarginBottom
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyMarginLeft
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyMarginRight
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyMarginTop
(Object element, String pseudo, CSSEngine engine) Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyMarginHandler
retrieveCSSProperty
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CSSPropertyMarginSWTHandler
public CSSPropertyMarginSWTHandler()
-
-
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 classAbstractCSSPropertyMarginHandler
- 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
-
applyCSSPropertyMargin
public void applyCSSPropertyMargin(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyMarginHandler
A shorthand property for setting all four margins in one declaration. Available values are {margin-top, margin-right, margin-bottom, margin-left}- Throws:
Exception
-
applyCSSPropertyMarginTop
public void applyCSSPropertyMarginTop(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyMarginHandler
Sets the top margin. Available values are {length}- Throws:
Exception
-
applyCSSPropertyMarginRight
public void applyCSSPropertyMarginRight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyMarginHandler
Sets the right margin. Available values are {length}- Throws:
Exception
-
applyCSSPropertyMarginBottom
public void applyCSSPropertyMarginBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyMarginHandler
Sets the bottom margin. Available values are {length}- Throws:
Exception
-
applyCSSPropertyMarginLeft
public void applyCSSPropertyMarginLeft(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyMarginHandler
Sets the left margin. Available values are {length}- Throws:
Exception
-
retrieveCSSPropertyMargin
public String retrieveCSSPropertyMargin(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMarginTop
public String retrieveCSSPropertyMarginTop(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMarginRight
public String retrieveCSSPropertyMarginRight(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMarginBottom
public String retrieveCSSPropertyMarginBottom(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMarginLeft
public String retrieveCSSPropertyMarginLeft(Object element, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-