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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).voidapplyCSSPropertyHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the height of an element.voidapplyCSSPropertyLineHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the distance between lines.voidapplyCSSPropertyMaxHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the maximum height of an element.voidapplyCSSPropertyMaxWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the maximum width of an element.voidapplyCSSPropertyMinHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the minimum height of an element.voidapplyCSSPropertyMinWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the minimum width of an element.voidapplyCSSPropertyWidth(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, waitMethods inherited from interface org.eclipse.e4.ui.css.core.dom.properties.css2.ICSSPropertyDimensionHandler
retrieveCSSPropertyHeight, retrieveCSSPropertyMaxHeight, retrieveCSSPropertyMinHeight, retrieveCSSPropertyMinWidthMethods 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:ICSSPropertyDimensionHandlerSets the height of an element. Available values are=auto length %- Specified by:
applyCSSPropertyHeightin interfaceICSSPropertyDimensionHandler- Throws:
Exception
-
applyCSSPropertyLineHeight
public void applyCSSPropertyLineHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandlerSets the distance between lines. Available values are=normal number length %- Specified by:
applyCSSPropertyLineHeightin interfaceICSSPropertyDimensionHandler- Throws:
Exception
-
applyCSSPropertyMaxHeight
public void applyCSSPropertyMaxHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandlerSets the maximum height of an element. Available values are= none length %- Specified by:
applyCSSPropertyMaxHeightin interfaceICSSPropertyDimensionHandler- Throws:
Exception
-
applyCSSPropertyMaxWidth
public void applyCSSPropertyMaxWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandlerSets the maximum width of an element. Available values are=none length %- Specified by:
applyCSSPropertyMaxWidthin interfaceICSSPropertyDimensionHandler- Throws:
Exception
-
applyCSSPropertyMinHeight
public void applyCSSPropertyMinHeight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandlerSets the minimum height of an element. Available values are=length %- Specified by:
applyCSSPropertyMinHeightin interfaceICSSPropertyDimensionHandler- Throws:
Exception
-
applyCSSPropertyMinWidth
public void applyCSSPropertyMinWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandlerSets the minimum width of an element. Available values are=length %- Specified by:
applyCSSPropertyMinWidthin interfaceICSSPropertyDimensionHandler- Throws:
Exception
-
applyCSSPropertyWidth
public void applyCSSPropertyWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyDimensionHandlerSets the width of an element. Available values are=auto % length- Specified by:
applyCSSPropertyWidthin 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:ICSSPropertyHandlerApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Specified by:
applyCSSPropertyin interfaceICSSPropertyHandler- Parameters:
widget- 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
-
retrieveCSSProperty
public String retrieveCSSProperty(Object widget, String property, CSSEngine engine) throws Exception - Throws:
Exception
-