org.apache.wicket.markup
Class ContainerInfo

java.lang.Object
  extended by org.apache.wicket.markup.ContainerInfo

public class ContainerInfo
extends Object

Because a Component has reference to its parents, which eventually is the Page, and because the Page contains a reference to the Session, keeping a "copy" of a component is very expensive. ContainerInfo shall be used instead of MarkupContainer whenever a small subset of the container's information is required.

Author:
Juergen Donnerstag

Constructor Summary
ContainerInfo(Class<?> containerClass, Locale locale, String style, String variation, String fileExtension)
          Construct.
ContainerInfo(MarkupContainer container)
          Construct.
 
Method Summary
 Class<?> getContainerClass()
           
 String getFileExtension()
           
 Locale getLocale()
           
 String getStyle()
           
 String getVariation()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerInfo

public ContainerInfo(MarkupContainer container)
Construct.

Parameters:
container - The container to create the information from

ContainerInfo

public ContainerInfo(Class<?> containerClass,
                     Locale locale,
                     String style,
                     String variation,
                     String fileExtension)
Construct.

Parameters:
containerClass -
locale -
style -
variation -
fileExtension -
Method Detail

getContainerClass

public Class<?> getContainerClass()
Returns:
The container class

getFileExtension

public String getFileExtension()
Returns:
The container markup type (== file extension)

getLocale

public Locale getLocale()
Returns:
The container locale

getStyle

public String getStyle()
Returns:
The container style

getVariation

public String getVariation()
Returns:
The containers variation

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.