no.sesat.search.view.config
Class SearchTab.Layout

java.lang.Object
  extended by no.sesat.search.view.config.SearchTab.Layout
All Implemented Interfaces:
Serializable
Enclosing class:
SearchTab

public static final class SearchTab.Layout
extends Object
implements Serializable

POJO holding defaultLayout information for the given tab. readLayout(Element) is the only way to mutate the bean and can only be called once.

See Also:
Serialized Form

Constructor Summary
SearchTab.Layout(SearchTab.Layout inherit)
          Copy constructor.
 
Method Summary
 String getContentType()
          Get the content type that is specified in views.xml.
 List<String> getCss()
          Getter for property css.
 int getExpiresInSeconds()
          Number of seconds until this layout (page) should expire.
 String getFront()
           
 String getId()
           
 String getInclude(String key)
          Get the include with the given key.
 Map<String,String> getIncludes()
           
 List<String> getJavascript()
          Getter for property javascript.
 String getMain()
           
 String getOrigin()
          Deprecated. no need to use this anymore.
 Map<String,String> getProperties()
           
 String getProperty(String key)
          Get the property with the given key
 boolean isDisplayCss()
          Getter for property displayCss
 SearchTab.Layout readLayout(Element element)
          Will return null when the element argument is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchTab.Layout

public SearchTab.Layout(SearchTab.Layout inherit)
Copy constructor. Used when inheriting from another Layout. Two fields cannot be inherited, id and origin. These must be explicitly set on each instance.

Parameters:
inherit -
Method Detail

getId

public String getId()

getIncludes

public Map<String,String> getIncludes()

getInclude

public String getInclude(String key)
Get the include with the given key.

Parameters:
key -
Returns:

getProperties

public Map<String,String> getProperties()

getProperty

public String getProperty(String key)
Get the property with the given key

Parameters:
key -
Returns:

getOrigin

public String getOrigin()
Deprecated. no need to use this anymore.

Returns:

getMain

public String getMain()

getFront

public String getFront()

getContentType

public String getContentType()
Get the content type that is specified in views.xml.

Returns:
content type

getExpiresInSeconds

public int getExpiresInSeconds()
Number of seconds until this layout (page) should expire.

Returns:
number of seconds until page expires.

isDisplayCss

public boolean isDisplayCss()
Getter for property displayCss

Returns:

getCss

public List<String> getCss()
Getter for property css.

Returns:
Value of property css.

getJavascript

public List<String> getJavascript()
Getter for property javascript.

Returns:
Value of property javascript.

readLayout

public SearchTab.Layout readLayout(Element element)
Will return null when the element argument is null. Otherwise returns the Layout object deserialised from the contents of the Element.

Parameters:
element -
Returns:


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.