Menu

Layouts

Added the first layout to the framework - BorderLayout.

Every add-on is in a separate JAR file leaving the core absolutely untouched. And it hasn't been touched for almost a week now with all this development going on.. I think that's ok...

Below is the current usage of the border layout :

/

* @author Marc Magon
/
public class BorderLayoutTestScreen extends BorderLayout
{
@FormattingCSS(Background_Color$= ColourNames.Chocolate)
@LayoutCSS(Display= Displays.Block,
Overflow= Overflows.Hidden,
Height=@MeasurementCSS(value=20,MeasurementType= MeasurementTypes.Percent),
Max_Height=@MeasurementCSS(value=20,MeasurementType= MeasurementTypes.Percent))
private JWPanel north;
@FormattingCSS(Background_Color$= ColourNames.AliceBlue,
Vertical_Align= VerticalAlignments.Top)
private JWPanel west;
@FormattingCSS(Background_Color$= ColourNames.Azure)
private JWPanel center;
@FormattingCSS(Background_Color$= ColourNames.BlueViolet)
private JWPanel east;
@FormattingCSS(Background_Color$= ColourNames.Cornsilk)
private JWPanel south;

public BorderLayoutTestScreen()
{
    north = new JWPanel();
    north.add("This is north");
    west = new JWPanel();
    west.getFeatures().add(new JWResizableFeature());
    east = new JWPanel();
    south = new JWPanel();
    center = new JWPanel();
    south.add("This is south");
}

}

borderLayout = new BorderLayoutTestScreen();
body.add(borderLayout);

    accordian = new JWAccordionTestScreen();
    borderLayout.getWest().add(accordian);

    textScreen = new TextComponentsTestScreen();
    borderLayout.getCenter().add(textScreen);

    add(body);
Posted by Marc Magon 2012-11-14

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.