KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > plaf > css > CardLayoutCG


1 /*
2  * $Id: CardLayoutCG.java,v 1.2 2005/01/31 10:59:53 oliverscheck 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.plaf.css;
15
16 import java.io.IOException JavaDoc;
17
18 import org.wings.SCardLayout;
19 import org.wings.SComponent;
20 import org.wings.SLayoutManager;
21 import org.wings.io.Device;
22 import org.wings.plaf.LayoutCG;
23
24 public class CardLayoutCG implements LayoutCG {
25     /**
26      * @param d the device to write the code to
27      * @param l the layout manager
28      * @throws IOException
29      */

30     public void write(Device d, SLayoutManager l)
31             throws IOException JavaDoc {
32         SCardLayout cardLayout = (SCardLayout) l;
33         SComponent c = cardLayout.getVisibleComponent();
34         // Just present visible component
35
if (c != null) {
36             c.write(d);
37         }
38     }
39 }
40
41
42
Popular Tags