当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
DefaultStrategyImpl - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.theme.impl.strategy
Class DefaultStrategyImpl
java.lang.Object
org.jboss.portal.theme.strategy.AbstractLayoutStrategy
org.jboss.portal.theme.impl.strategy.DefaultStrategyImpl
- All Implemented Interfaces:
- LayoutStrategy
- public class DefaultStrategyImpl
- extends AbstractLayoutStrategy
This is am implementation of the LayoutStrategy to handle the maximized state of any portlet on a page.
This implementation allows only one maximized portlet at any given time. When in doubt , the currently targeted
portlet will win (if a portet was moximized, then the back button was clicked, then another portlet was maximized, the
strategy has to make sure that only one portlet is actually maximized. In this case, the last maximize will win, since
the current request is targeted to this portlet.
- See Also:
LayoutStrategy
Constructor Summary |
DefaultStrategyImpl()
Create a new instance of this strategy implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultStrategyImpl
public DefaultStrategyImpl()
- Create a new instance of this strategy implementation.
evaluate
public StrategyResponse evaluate(StrategyContext context)
throws StrategyException
- Evaluate the strategy and return a strategy response, containing the desired changes.
- Parameters:
context
- a context containing the portal's current information about portlets, states and the layout
- Returns:
- a strategy response with the desired changes
- Throws:
StrategyException
- if the strategy is missconfigured, or can't deal with the provided information- See Also:
StrategyResponse
,
StrategyContext
toString
public java.lang.String toString()
- See Also:
Object.toString()