com.businessobjects.rebean.wi
Interface SimpleBorder

All Superinterfaces:
Border

public interface SimpleBorder
extends Border

Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.

SimpleBorder interface represents a border that is the same on all four sides of an element.


Method Summary
 java.awt.Color getColor()
          Returns the current border color.
 BorderSize getSize()
          Returns the current border size.
 void setColor(java.awt.Color color)
          Changes the current border color.
 void setSize(BorderSize size)
          Changes the currrent border size.
 ComplexBorder toComplex()
          Turns this border into a complex border.
 

Method Detail

getColor

java.awt.Color getColor()
Returns the current border color.

Returns:
the current border color, or null for the default color

setColor

void setColor(java.awt.Color color)
Changes the current border color.

Parameters:
color - the new border color, or null for the default color
Throws:
java.lang.NullPointerException - when color is null and there is no parent

getSize

BorderSize getSize()
Returns the current border size.

Returns:
the current border size

setSize

void setSize(BorderSize size)
Changes the currrent border size.

Parameters:
size - the new border size, or null to take the border size specified in the parent element
Throws:
java.lang.NullPointerException - when size is null and there is no parent

toComplex

ComplexBorder toComplex()
Turns this border into a complex border. All four sides will have the same look as this border.

Returns:
the new complex border