KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > pci > CustomWindowStateWithDescription


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  *
5  * Created on 7 janv. 2004
6  */

7 package org.exoplatform.services.portletcontainer.pci;
8
9 import java.util.List JavaDoc;
10
11 /**
12  * @author Mestrallet Benjamin
13  * benjmestrallet@users.sourceforge.net
14  */

15 public class CustomWindowStateWithDescription {
16   
17   private javax.portlet.WindowState windowState;
18   private List JavaDoc descriptions;
19   
20   public CustomWindowStateWithDescription(javax.portlet.WindowState windowState,
21                                           List JavaDoc descriptions){
22     this.windowState = windowState;
23     this.descriptions = descriptions;
24   }
25   
26   /**
27    * @return a List of LocalisedDescription objects
28    */

29   public List JavaDoc getDescriptions() {
30     return descriptions;
31   }
32
33   public javax.portlet.WindowState getWindowState() {
34     return windowState;
35   }
36
37   public class Description {
38     private String JavaDoc lang;
39     private String JavaDoc description;
40      
41     public Description(String JavaDoc lang, String JavaDoc description){
42        this.lang = lang;
43        this.description = description;
44     }
45      
46     public String JavaDoc getDescription() {
47       return description;
48     }
49
50     public String JavaDoc getLang() {
51       return lang;
52     }
53
54   }
55
56 }
57
Popular Tags