站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

AbstractLayoutStrategy - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.theme.strategy
Class AbstractLayoutStrategy

java.lang.Object
  extended byorg.jboss.portal.theme.strategy.AbstractLayoutStrategy
All Implemented Interfaces:
LayoutStrategy
Direct Known Subclasses:
DefaultStrategyImpl, MaximizingStrategyImpl

public abstract class AbstractLayoutStrategy
extends java.lang.Object
implements LayoutStrategy

Abstract implementation of the layout strategy interface.

This implementation serves as base class for all layout strategies. All strategies have to extend this class.

See Also:
LayoutStrategy

Constructor Summary
AbstractLayoutStrategy()
           
 
Method Summary
 java.lang.String getAppID()
          Get the name of the application (the WAR) that contains this strategy.
 MediaType getMediaType()
          Get the media type (content/mime type) this strategy is assigned to.
 java.lang.String getName()
          Get the name of this strategy.
 void setAppID(java.lang.String appID)
          Set the name of the application that contains this strategy.
 void setMediaType(MediaType mediaType)
          Set the media type (the content type) of this strategy.
 void setName(java.lang.String name)
          Set the name of this strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.theme.strategy.LayoutStrategy
evaluate
 

Constructor Detail

AbstractLayoutStrategy

public AbstractLayoutStrategy()
Method Detail

setMediaType

public void setMediaType(MediaType mediaType)
Set the media type (the content type) of this strategy.

Parameters:
mediaType - the media type to set

getMediaType

public MediaType getMediaType()
Get the media type (content/mime type) this strategy is assigned to.

Specified by:
getMediaType in interface LayoutStrategy
Returns:
the media type this strategy handles

getName

public java.lang.String getName()
Get the name of this strategy.

Specified by:
getName in interface LayoutStrategy
Returns:
the name of this strategy

setName

public void setName(java.lang.String name)
Set the name of this strategy.

Parameters:
name - the name of this strategy

getAppID

public java.lang.String getAppID()
Get the name of the application (the WAR) that contains this strategy.

Specified by:
getAppID in interface LayoutStrategy
Returns:
the name of the application (the WAR) that contains this strategy

setAppID

public void setAppID(java.lang.String appID)
Set the name of the application that contains this strategy.

Parameters:
appID - the name of the application that contains this strategy