Class AbstractCSSPropertyDimensionHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyDimensionHandler
- All Implemented Interfaces:
ICSSPropertyDimensionHandler
,ICSSPropertyHandler
public abstract class AbstractCSSPropertyDimensionHandler
extends Object
implements ICSSPropertyDimensionHandler
-
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
applyCSSPropertyHeight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the height of an element.void
applyCSSPropertyLineHeight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the distance between lines.void
applyCSSPropertyMaxHeight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the maximum height of an element.void
applyCSSPropertyMaxWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the maximum width of an element.void
applyCSSPropertyMinHeight
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the minimum height of an element.void
applyCSSPropertyMinWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the minimum width of an element.void
applyCSSPropertyWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of an element.retrieveCSSProperty
(Object widget, String property, CSSEngine engine) retrieveCSSPropertyHeight
(Object widget, String property, CSSEngine engine) retrieveCSSPropertyMaxHeight
(Object widget, String property, CSSEngine engine) retrieveCSSPropertyMinHeight
(Object widget, String property, CSSEngine engine) retrieveCSSPropertyMinWidth
(Object widget, String property, CSSEngine engine) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.e4.ui.css.core.dom.properties.css2.ICSSPropertyDimensionHandler
retrieveCSSPropertyHeight, retrieveCSSPropertyMaxHeight, retrieveCSSPropertyMinHeight, retrieveCSSPropertyMinWidth
Methods inherited from interface org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler
retrieveCSSProperty
-
Constructor Details
-
AbstractCSSPropertyDimensionHandler
public AbstractCSSPropertyDimensionHandler()
-
-
Method Details
-
applyCSSPropertyHeight
public void applyCSSPropertyHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the height of an element. Available values are=auto length %- Specified by:
applyCSSPropertyHeight
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
applyCSSPropertyLineHeight
public void applyCSSPropertyLineHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the distance between lines. Available values are=normal number length %- Specified by:
applyCSSPropertyLineHeight
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
applyCSSPropertyMaxHeight
public void applyCSSPropertyMaxHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the maximum height of an element. Available values are= none length %- Specified by:
applyCSSPropertyMaxHeight
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
applyCSSPropertyMaxWidth
public void applyCSSPropertyMaxWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the maximum width of an element. Available values are=none length %- Specified by:
applyCSSPropertyMaxWidth
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
applyCSSPropertyMinHeight
public void applyCSSPropertyMinHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the minimum height of an element. Available values are=length %- Specified by:
applyCSSPropertyMinHeight
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
applyCSSPropertyMinWidth
public void applyCSSPropertyMinWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the minimum width of an element. Available values are=length %- Specified by:
applyCSSPropertyMinWidth
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
applyCSSPropertyWidth
public void applyCSSPropertyWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandler
Sets the width of an element. Available values are=auto % length- Specified by:
applyCSSPropertyWidth
in interfaceICSSPropertyDimensionHandler
- Throws:
Exception
-
retrieveCSSPropertyHeight
public String retrieveCSSPropertyHeight(Object widget, String property, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMaxHeight
public String retrieveCSSPropertyMaxHeight(Object widget, String property, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMinHeight
public String retrieveCSSPropertyMinHeight(Object widget, String property, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyMinWidth
public String retrieveCSSPropertyMinWidth(Object widget, String property, CSSEngine engine) throws Exception - Throws:
Exception
-
applyCSSProperty
public boolean applyCSSProperty(Object widget, 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
- Parameters:
widget
- 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
-
retrieveCSSProperty
public String retrieveCSSProperty(Object widget, String property, CSSEngine engine) throws Exception - Throws:
Exception
-