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
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).voidapplyCSSPropertyMargin(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all four margins in one declaration.voidapplyCSSPropertyMarginBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the bottom margin.voidapplyCSSPropertyMarginLeft(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the left margin.voidapplyCSSPropertyMarginRight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the right margin.voidapplyCSSPropertyMarginTop(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:ICSSPropertyHandlerApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Specified by:
applyCSSPropertyin interfaceICSSPropertyHandler- Overrides:
applyCSSPropertyin classAbstractCSSPropertyMarginHandler- 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
-
applyCSSPropertyMargin
public void applyCSSPropertyMargin(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyMarginHandlerA 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:ICSSPropertyMarginHandlerSets 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:ICSSPropertyMarginHandlerSets 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:ICSSPropertyMarginHandlerSets 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:ICSSPropertyMarginHandlerSets 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
-