KickJava   Java API By Example, From Geeks To Geeks.

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


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
6 /**
7  * Created by The eXo Platform SARL
8  * Author : Mestrallet Benjamin
9  * benjmestrallet@users.sourceforge.net
10  * Date: Jul 30, 2003
11  * Time: 9:08:10 PM
12  */

13 package org.exoplatform.services.portletcontainer.pci;
14
15 import javax.portlet.PortletMode;
16 import javax.portlet.WindowState;
17 import java.util.Map JavaDoc;
18 import java.util.HashMap JavaDoc;
19
20 public class ActionOutput extends Output {
21
22   private Map JavaDoc renderParameters = new HashMap JavaDoc();
23   private PortletMode nextMode;
24   private WindowState nextState;
25   private byte[] portletState;
26
27   public Map JavaDoc getRenderParameters() {
28     return renderParameters;
29   }
30
31   public void setRenderParameters(Map JavaDoc renderParameters) {
32     this.renderParameters = renderParameters;
33   }
34
35   public void setRenderParameter(String JavaDoc key, String JavaDoc value) {
36     renderParameters.put(key, new String JavaDoc[] {value});
37   }
38
39   public void setRenderParameters(String JavaDoc key, String JavaDoc[] values) {
40     renderParameters.put(key, values);
41   }
42
43   public PortletMode getNextMode() {
44     return nextMode;
45   }
46
47   public void setNextMode(PortletMode nextMode) {
48     this.nextMode = nextMode;
49   }
50
51   public WindowState getNextState() {
52     return nextState;
53   }
54
55   public void setNextState(WindowState nextState) {
56     this.nextState = nextState;
57   }
58
59   public byte[] getPortletState() {
60     return portletState;
61   }
62
63   public void setPortletState(byte[] portletState) {
64     this.portletState = portletState;
65   }
66
67 }
68
Popular Tags