KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > plugins > page > WindowLocation


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.plugins.page;
10
11 import org.jboss.portal.core.metadata.WindowLocationMetaData;
12 import org.jboss.portal.server.ServerObjectID;
13
14 /**
15  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
16  * @version $Revision: 1.2 $
17  */

18 public class WindowLocation
19 {
20
21    private ServerObjectID id;
22    private String JavaDoc region;
23    private int height;
24
25    public WindowLocation(ServerObjectID id, String JavaDoc region, int height)
26    {
27       this.id = id;
28       this.region = region;
29       this.height = height;
30    }
31
32    public WindowLocation(WindowLocationMetaData metaData)
33    {
34       this(metaData.getID(),
35            metaData.getRegion(),
36            metaData.getHeight());
37    }
38
39    public ServerObjectID getID()
40    {
41       return id;
42    }
43
44    public String JavaDoc getRegion()
45    {
46       return region;
47    }
48
49    public int getHeight()
50    {
51       return height;
52    }
53 }
54
Popular Tags