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 AbstractCSSPropertyMarginHandler
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
-
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
-
applyCSSPropertyMarginRight
-
applyCSSPropertyMarginBottom
-
applyCSSPropertyMarginLeft
-
retrieveCSSPropertyMargin
-
retrieveCSSPropertyMarginTop
-
retrieveCSSPropertyMarginRight
-
retrieveCSSPropertyMarginBottom
-
retrieveCSSPropertyMarginLeft
-