KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > SFlowDownLayout


1 /*
2  * $Id: SFlowDownLayout.java,v 1.4 2005/03/04 16:13:59 blueshift Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings;
15
16
17 /**
18  * This is a flow down layout. This is a flow layout
19  * with vertical orientation and left alignment.
20  *
21  * @author <a HREF="mailto:haaf@mercatis.de">Armin Haaf</a>
22  * @version $Revision: 1.4 $
23  */

24 public class SFlowDownLayout extends SFlowLayout {
25     /**
26      * creates a new flow down layouts
27      */

28     public SFlowDownLayout() {
29         this(SConstants.LEFT_ALIGN);
30     }
31
32     /**
33      * creates a new flow down layouts
34      * @param alignment Align CENTER, LEFT or RIGHT
35      */

36     public SFlowDownLayout(int alignment) {
37         super();
38         setOrientation(SConstants.VERTICAL);
39         setAlignment(alignment);
40     }
41 }
42
43
44
Popular Tags