1 9 package org.jboss.portal.server; 10 11 import org.apache.log4j.Logger; 12 import org.jboss.portal.server.output.cache.TimedContent; 13 import org.jboss.portal.server.plugins.mode.Mode; 14 import org.jboss.portal.server.plugins.windowstate.WindowState; 15 import org.jboss.portal.server.user.AbstractServerObjectContext; 16 17 23 public class WindowContext extends AbstractServerObjectContext 24 { 25 26 27 private static final Logger log = Logger.getLogger(WindowContext.class); 28 29 30 private transient TimedContent cachedResult = null; 31 32 33 private Mode mode; 34 35 36 private WindowState windowState; 37 38 public WindowContext(ServerObjectID id) 39 { 40 this(id, Mode.VIEW, WindowState.NORMAL); 41 } 42 43 public WindowContext(ServerObjectID id, Mode mode, WindowState windowState) 44 { 45 super(id); 46 this.mode = mode; 47 this.windowState = windowState; 48 } 49 50 53 public Mode getMode() 54 { 55 return mode; 56 } 57 58 61 public void setMode(Mode mode) 62 { 63 this.mode = mode; 64 } 65 66 69 public WindowState getWindowState() 70 { 71 return windowState; 72 } 73 74 77 public void setWindowState(WindowState windowState) 78 { 79 this.windowState = windowState; 80 } 81 82 85 public TimedContent getCachedResult() 86 { 87 return cachedResult; 88 } 89 90 93 public void setCachedResult(TimedContent cachedResult) 94 { 95 this.cachedResult = cachedResult; 96 } 97 } 98 | Popular Tags |