Description and Features List

Rounded corners and drop shadow displaying is not a problem for Borders API

Rounded corners and drop shadow displaying is not a problem for Borders API

Borders API provides a toolkit for borders rendering. Currently only two types of borders supported:

  • Single Border - a simple border having one line
  • Round Corner Border - a single line border with rounded corners

Both implementations have similar set of features:

  • visible lines selection options (top, bottom, left and right)
  • drop shadows support
  • no images required

You can find sample of Borders API usage below.

Sample

The next sample illustrates how to create and display a border with a shadow.


RoundCornerBorder border = new RoundCornerBorder();
border.addStyleName("border");
border.setWidget(new Label("Shadow under the border"));
layout.setWidget(3, 0, border);
border.setShadowVisibile(true);