org.jboss.portal.core.impl.api.navstate
Class NavigationalStateContextImpl

java.lang.Object
  extended by org.jboss.portal.core.impl.api.navstate.NavigationalStateContextImpl
All Implemented Interfaces:
NavigationalStateContext

public class NavigationalStateContextImpl
extends java.lang.Object
implements NavigationalStateContext

Version:
$Revision: 8786 $
Author:
Julien Viet

Constructor Summary
NavigationalStateContextImpl(org.jboss.portal.common.invocation.AttributeResolver navigationalStateResolver)
           
 
Method Summary
 org.jboss.portal.Mode getMode(PortalNode window)
          Returns the mode of a window or null if it is not found.
 org.jboss.portal.WindowState getWindowState(PortalNode window)
          Returns the window state of a window or null if it is not found.
 void setMode(PortalNode window, org.jboss.portal.Mode mode)
          Updates the mode of a window.
 void setWindowState(PortalNode window, org.jboss.portal.WindowState windowState)
          Updates the window state of a window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationalStateContextImpl

public NavigationalStateContextImpl(org.jboss.portal.common.invocation.AttributeResolver navigationalStateResolver)
Method Detail

getWindowState

public org.jboss.portal.WindowState getWindowState(PortalNode window)
                                            throws java.lang.IllegalArgumentException
Description copied from interface: NavigationalStateContext
Returns the window state of a window or null if it is not found.

Specified by:
getWindowState in interface NavigationalStateContext
Parameters:
window - the window from which the window state is returned
Returns:
the window state
Throws:
java.lang.IllegalArgumentException

setWindowState

public void setWindowState(PortalNode window,
                           org.jboss.portal.WindowState windowState)
                    throws java.lang.IllegalArgumentException
Description copied from interface: NavigationalStateContext
Updates the window state of a window.

Specified by:
setWindowState in interface NavigationalStateContext
Parameters:
window - the window to update
windowState - the new window state value
Throws:
java.lang.IllegalArgumentException

getMode

public org.jboss.portal.Mode getMode(PortalNode window)
                              throws java.lang.IllegalArgumentException
Description copied from interface: NavigationalStateContext
Returns the mode of a window or null if it is not found.

Specified by:
getMode in interface NavigationalStateContext
Parameters:
window - the window from which the mode is returned
Returns:
the mode
Throws:
java.lang.IllegalArgumentException

setMode

public void setMode(PortalNode window,
                    org.jboss.portal.Mode mode)
             throws java.lang.IllegalArgumentException
Description copied from interface: NavigationalStateContext
Updates the mode of a window.

Specified by:
setMode in interface NavigationalStateContext
Parameters:
window - the window to update
mode - the new mode value
Throws:
java.lang.IllegalArgumentException