KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > SLayoutManager


1 /*
2  * $Id: SLayoutManager.java,v 1.4 2005/01/23 19:31:36 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 import org.wings.io.Device;
17
18 import java.io.IOException JavaDoc;
19 import java.io.Serializable JavaDoc;
20
21 /**
22  * The interface for the layout managers.
23  *
24  * @author <a HREF="mailto:haaf@mercatis.de">Armin Haaf</a>
25  * @version $Revision: 1.4 $
26  */

27 public interface SLayoutManager extends SConstants, Serializable JavaDoc, Renderable {
28     /**
29      * Adds a component to the layout manager
30      *
31      * @param c The new component
32      * @param constraint A (sometimes optional) constraint object
33      */

34     void addComponent(SComponent c, Object JavaDoc constraint, int index);
35
36     /**
37      * Removes a component from the layout manager
38      *
39      * @param c The new component
40      */

41     void removeComponent(SComponent c);
42
43     /**
44      * Sets the corresponding container
45      *
46      * @param c The container
47      */

48     void setContainer(SContainer c);
49
50     /**
51      * Returns the corresponding container
52      *
53      * @return The container
54      */

55     SContainer getContainer();
56
57     /**
58      * Writes the layouted container to the given device.
59      *
60      * @param s The output device
61      */

62     void write(Device s) throws IOException JavaDoc;
63
64     /**
65      * Notification from the CGFactory that the L&F has changed.
66      *
67      * @see SLayoutManager#updateCG
68      */

69     void updateCG();
70 }
71
72
73
Popular Tags