Class AbstractCSSPropertyBorderHandler
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.AbstractCSSPropertyCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBorderCompositeHandler
org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBorderHandler
- All Implemented Interfaces:
ICSSPropertyBorderHandler
,ICSSPropertyCompositeHandler
,ICSSPropertyHandler
- Direct Known Subclasses:
CSSPropertyBorderSWTHandler
public abstract class AbstractCSSPropertyBorderHandler
extends AbstractCSSPropertyBorderCompositeHandler
implements ICSSPropertyBorderHandler
Abstract CSS property background which is enable to manage
apply CSS Property border, border-color, border-style...
-
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
applyCSSPropertyBorder
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the four borders in one declaration.void
applyCSSPropertyBorderBottom
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the bottom border in one declaration.void
applyCSSPropertyBorderBottomColor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the bottom border.void
applyCSSPropertyBorderBottomStyle
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the bottom border.void
applyCSSPropertyBorderBottomWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the bottom border.void
applyCSSPropertyBorderColor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the four borders, can have from one to four colors.void
applyCSSPropertyBorderColor
(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) void
applyCSSPropertyBorderLeft
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the left border in one declaration.void
applyCSSPropertyBorderLeftColor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the left border.void
applyCSSPropertyBorderLeftStyle
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the left border.void
applyCSSPropertyBorderLeftWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the left border.void
applyCSSPropertyBorderRight
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the right border in one declaration.void
applyCSSPropertyBorderRightColor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the right border.void
applyCSSPropertyBorderRightStyle
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the right border.void
applyCSSPropertyBorderRightWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the right border.Available values are= thin medium thick lengthvoid
applyCSSPropertyBorderStyle
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the four borders, can have from one to four styles.void
applyCSSPropertyBorderStyle
(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) void
applyCSSPropertyBorderTop
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the top border in one declaration.void
applyCSSPropertyBorderTopColor
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the top border.void
applyCSSPropertyBorderTopStyle
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the top border.void
applyCSSPropertyBorderTopWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the top border.void
applyCSSPropertyBorderWidth
(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting the width of the four borders in one declaration, can have from one to four values.void
applyCSSPropertyBorderWidth
(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) retrieveCSSProperty
(Object element, String property, String pseudo, CSSEngine engine) Retrieve CSS value (ex : red) of CSS Propertyproperty
(ex : background-color) from theelement
(ex : Swing Component, SWT Widget).retrieveCSSPropertyBorder
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderBottom
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderBottomColor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderBottomStyle
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderBottomWidth
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderColor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderLeft
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderLeftColor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderLeftStyle
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderLeftWidth
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderRight
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderRightColor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderRightStyle
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderRightWidth
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderStyle
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderTop
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderTopColor
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderTopStyle
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderTopWidth
(Object element, String pseudo, CSSEngine engine) retrieveCSSPropertyBorderWidth
(Object element, String pseudo, CSSEngine engine) Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.css2.AbstractCSSPropertyBorderCompositeHandler
applyCSSProperty, getCSSPropertiesNames, isCSSPropertyComposite
Methods inherited from class org.eclipse.e4.ui.css.core.dom.properties.AbstractCSSPropertyCompositeHandler
applyCSSPropertyComposite
-
Constructor Details
-
AbstractCSSPropertyBorderHandler
public AbstractCSSPropertyBorderHandler()
-
-
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
- 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
-
retrieveCSSProperty
public String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandler
Retrieve CSS value (ex : red) of CSS Propertyproperty
(ex : background-color) from theelement
(ex : Swing Component, SWT Widget).- Specified by:
retrieveCSSProperty
in interfaceICSSPropertyHandler
- Parameters:
element
- Swing Component, SWT Widget...property
- CSS Propertypseudo
- the pseudo class to use, ornull
if none is requiredengine
- CSS Engine- Returns:
- retrieved CSS properties or
null
- Throws:
Exception
- if retrieving CSS failed
-
applyCSSPropertyBorder
public void applyCSSPropertyBorder(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
A shorthand property for setting all of the properties for the four borders in one declaration. Available values are= border-width border-style border-color- Specified by:
applyCSSPropertyBorder
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderBottom
public void applyCSSPropertyBorderBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
A shorthand property for setting all of the properties for the bottom border in one declaration. Available values are=border-bottom-width border-style border-color- Specified by:
applyCSSPropertyBorderBottom
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderBottomColor
public void applyCSSPropertyBorderBottomColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the color of the bottom border. Available values are=border-color- Specified by:
applyCSSPropertyBorderBottomColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderBottomStyle
public void applyCSSPropertyBorderBottomStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the style of the bottom border. Available values are=border-style- Specified by:
applyCSSPropertyBorderBottomStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderBottomWidth
public void applyCSSPropertyBorderBottomWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the width of the bottom border. Available values are= thin medium thick length- Specified by:
applyCSSPropertyBorderBottomWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderColor
public void applyCSSPropertyBorderColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the color of the four borders, can have from one to four colors. Available values are=color- Specified by:
applyCSSPropertyBorderColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderColor
public void applyCSSPropertyBorderColor(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
applyCSSPropertyBorderLeft
public void applyCSSPropertyBorderLeft(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
A shorthand property for setting all of the properties for the left border in one declaration. Available values are=border-left-width border-style border-color- Specified by:
applyCSSPropertyBorderLeft
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderLeftColor
public void applyCSSPropertyBorderLeftColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the color of the left border. Available values are=border-color- Specified by:
applyCSSPropertyBorderLeftColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderLeftStyle
public void applyCSSPropertyBorderLeftStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the style of the left border. Available values are=border-style- Specified by:
applyCSSPropertyBorderLeftStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderLeftWidth
public void applyCSSPropertyBorderLeftWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the width of the left border. Available values are=thin medium thick length- Specified by:
applyCSSPropertyBorderLeftWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderRight
public void applyCSSPropertyBorderRight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
A shorthand property for setting all of the properties for the right border in one declaration. Available values are=border-right-width border-style border-color- Specified by:
applyCSSPropertyBorderRight
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderRightColor
public void applyCSSPropertyBorderRightColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the color of the right border. Available values are=border-color- Specified by:
applyCSSPropertyBorderRightColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderRightStyle
public void applyCSSPropertyBorderRightStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the style of the right border. Available values are=border-style- Specified by:
applyCSSPropertyBorderRightStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderRightWidth
public void applyCSSPropertyBorderRightWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the width of the right border.Available values are= thin medium thick length- Specified by:
applyCSSPropertyBorderRightWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderStyle
public void applyCSSPropertyBorderStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the style of the four borders, can have from one to four styles. Available values are=none hidden dotted dashed solid double groove ridge inset outset- Specified by:
applyCSSPropertyBorderStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderStyle
public void applyCSSPropertyBorderStyle(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
applyCSSPropertyBorderTop
public void applyCSSPropertyBorderTop(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
A shorthand property for setting all of the properties for the top border in one declaration. Available values are=border-top-width border-style border-color- Specified by:
applyCSSPropertyBorderTop
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderTopColor
public void applyCSSPropertyBorderTopColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the color of the top border. Available values are=border-color- Specified by:
applyCSSPropertyBorderTopColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderTopStyle
public void applyCSSPropertyBorderTopStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the style of the top border. Available values are=border-style- Specified by:
applyCSSPropertyBorderTopStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderTopWidth
public void applyCSSPropertyBorderTopWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
Sets the width of the top border. Available values are=thin medium thick length- Specified by:
applyCSSPropertyBorderTopWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderWidth
public void applyCSSPropertyBorderWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandler
A shorthand property for setting the width of the four borders in one declaration, can have from one to four values. Available values are=thin medium thick length- Specified by:
applyCSSPropertyBorderWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
applyCSSPropertyBorderWidth
public void applyCSSPropertyBorderWidth(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) throws Exception - Throws:
Exception
-
retrieveCSSPropertyBorder
public String retrieveCSSPropertyBorder(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorder
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderBottom
public String retrieveCSSPropertyBorderBottom(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottom
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderBottomColor
public String retrieveCSSPropertyBorderBottomColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderBottomStyle
public String retrieveCSSPropertyBorderBottomStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderBottomWidth
public String retrieveCSSPropertyBorderBottomWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderColor
public String retrieveCSSPropertyBorderColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderLeft
public String retrieveCSSPropertyBorderLeft(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeft
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderLeftColor
public String retrieveCSSPropertyBorderLeftColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderLeftStyle
public String retrieveCSSPropertyBorderLeftStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderLeftWidth
public String retrieveCSSPropertyBorderLeftWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderRight
public String retrieveCSSPropertyBorderRight(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRight
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderRightColor
public String retrieveCSSPropertyBorderRightColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderRightStyle
public String retrieveCSSPropertyBorderRightStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderRightWidth
public String retrieveCSSPropertyBorderRightWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderStyle
public String retrieveCSSPropertyBorderStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderTop
public String retrieveCSSPropertyBorderTop(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTop
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderTopColor
public String retrieveCSSPropertyBorderTopColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopColor
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderTopStyle
public String retrieveCSSPropertyBorderTopStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopStyle
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderTopWidth
public String retrieveCSSPropertyBorderTopWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-
retrieveCSSPropertyBorderWidth
public String retrieveCSSPropertyBorderWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderWidth
in interfaceICSSPropertyBorderHandler
- Throws:
Exception
-