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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).voidapplyCSSPropertyBorder(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the four borders in one declaration.voidapplyCSSPropertyBorderBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the bottom border in one declaration.voidapplyCSSPropertyBorderBottomColor(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the bottom border.voidapplyCSSPropertyBorderBottomStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the bottom border.voidapplyCSSPropertyBorderBottomWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the bottom border.voidapplyCSSPropertyBorderColor(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the four borders, can have from one to four colors.voidapplyCSSPropertyBorderColor(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) voidapplyCSSPropertyBorderLeft(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the left border in one declaration.voidapplyCSSPropertyBorderLeftColor(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the left border.voidapplyCSSPropertyBorderLeftStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the left border.voidapplyCSSPropertyBorderLeftWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the left border.voidapplyCSSPropertyBorderRight(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the right border in one declaration.voidapplyCSSPropertyBorderRightColor(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the right border.voidapplyCSSPropertyBorderRightStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the right border.voidapplyCSSPropertyBorderRightWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the right border.Available values are= thin medium thick lengthvoidapplyCSSPropertyBorderStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the four borders, can have from one to four styles.voidapplyCSSPropertyBorderStyle(CSSBorderProperties border, CSSValue value, String pseudo, CSSEngine engine) voidapplyCSSPropertyBorderTop(Object element, CSSValue value, String pseudo, CSSEngine engine) A shorthand property for setting all of the properties for the top border in one declaration.voidapplyCSSPropertyBorderTopColor(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the color of the top border.voidapplyCSSPropertyBorderTopStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the style of the top border.voidapplyCSSPropertyBorderTopWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) Sets the width of the top border.voidapplyCSSPropertyBorderWidth(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.voidapplyCSSPropertyBorderWidth(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, isCSSPropertyCompositeMethods 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:ICSSPropertyHandlerApply CSS Propertyproperty(ex : background-color) with CSSValuevalue(ex : red) into theelement(ex : Swing Component, SWT Widget).- Specified by:
applyCSSPropertyin interfaceICSSPropertyHandler- 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
-
retrieveCSSProperty
public String retrieveCSSProperty(Object element, String property, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyHandlerRetrieve CSS value (ex : red) of CSS Propertyproperty(ex : background-color) from theelement(ex : Swing Component, SWT Widget).- Specified by:
retrieveCSSPropertyin interfaceICSSPropertyHandler- Parameters:
element- Swing Component, SWT Widget...property- CSS Propertypseudo- the pseudo class to use, ornullif 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:ICSSPropertyBorderHandlerA 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:
applyCSSPropertyBorderin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderBottom
public void applyCSSPropertyBorderBottom(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerA 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:
applyCSSPropertyBorderBottomin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderBottomColor
public void applyCSSPropertyBorderBottomColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the color of the bottom border. Available values are=border-color- Specified by:
applyCSSPropertyBorderBottomColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderBottomStyle
public void applyCSSPropertyBorderBottomStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the style of the bottom border. Available values are=border-style- Specified by:
applyCSSPropertyBorderBottomStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderBottomWidth
public void applyCSSPropertyBorderBottomWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the width of the bottom border. Available values are= thin medium thick length- Specified by:
applyCSSPropertyBorderBottomWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderColor
public void applyCSSPropertyBorderColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the color of the four borders, can have from one to four colors. Available values are=color- Specified by:
applyCSSPropertyBorderColorin 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:ICSSPropertyBorderHandlerA 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:
applyCSSPropertyBorderLeftin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderLeftColor
public void applyCSSPropertyBorderLeftColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the color of the left border. Available values are=border-color- Specified by:
applyCSSPropertyBorderLeftColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderLeftStyle
public void applyCSSPropertyBorderLeftStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the style of the left border. Available values are=border-style- Specified by:
applyCSSPropertyBorderLeftStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderLeftWidth
public void applyCSSPropertyBorderLeftWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the width of the left border. Available values are=thin medium thick length- Specified by:
applyCSSPropertyBorderLeftWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderRight
public void applyCSSPropertyBorderRight(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerA 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:
applyCSSPropertyBorderRightin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderRightColor
public void applyCSSPropertyBorderRightColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the color of the right border. Available values are=border-color- Specified by:
applyCSSPropertyBorderRightColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderRightStyle
public void applyCSSPropertyBorderRightStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the style of the right border. Available values are=border-style- Specified by:
applyCSSPropertyBorderRightStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderRightWidth
public void applyCSSPropertyBorderRightWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the width of the right border.Available values are= thin medium thick length- Specified by:
applyCSSPropertyBorderRightWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderStyle
public void applyCSSPropertyBorderStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets 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:
applyCSSPropertyBorderStylein 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:ICSSPropertyBorderHandlerA 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:
applyCSSPropertyBorderTopin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderTopColor
public void applyCSSPropertyBorderTopColor(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the color of the top border. Available values are=border-color- Specified by:
applyCSSPropertyBorderTopColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderTopStyle
public void applyCSSPropertyBorderTopStyle(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the style of the top border. Available values are=border-style- Specified by:
applyCSSPropertyBorderTopStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderTopWidth
public void applyCSSPropertyBorderTopWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerSets the width of the top border. Available values are=thin medium thick length- Specified by:
applyCSSPropertyBorderTopWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
applyCSSPropertyBorderWidth
public void applyCSSPropertyBorderWidth(Object element, CSSValue value, String pseudo, CSSEngine engine) throws Exception Description copied from interface:ICSSPropertyBorderHandlerA 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:
applyCSSPropertyBorderWidthin 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:
retrieveCSSPropertyBorderin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderBottom
public String retrieveCSSPropertyBorderBottom(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderBottomColor
public String retrieveCSSPropertyBorderBottomColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderBottomStyle
public String retrieveCSSPropertyBorderBottomStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderBottomWidth
public String retrieveCSSPropertyBorderBottomWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderBottomWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderColor
public String retrieveCSSPropertyBorderColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderLeft
public String retrieveCSSPropertyBorderLeft(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderLeftColor
public String retrieveCSSPropertyBorderLeftColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderLeftStyle
public String retrieveCSSPropertyBorderLeftStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderLeftWidth
public String retrieveCSSPropertyBorderLeftWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderLeftWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderRight
public String retrieveCSSPropertyBorderRight(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderRightColor
public String retrieveCSSPropertyBorderRightColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderRightStyle
public String retrieveCSSPropertyBorderRightStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderRightWidth
public String retrieveCSSPropertyBorderRightWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderRightWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderStyle
public String retrieveCSSPropertyBorderStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderTop
public String retrieveCSSPropertyBorderTop(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderTopColor
public String retrieveCSSPropertyBorderTopColor(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopColorin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderTopStyle
public String retrieveCSSPropertyBorderTopStyle(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopStylein interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderTopWidth
public String retrieveCSSPropertyBorderTopWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderTopWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-
retrieveCSSPropertyBorderWidth
public String retrieveCSSPropertyBorderWidth(Object element, String pseudo, CSSEngine engine) throws Exception - Specified by:
retrieveCSSPropertyBorderWidthin interfaceICSSPropertyBorderHandler- Throws:
Exception
-