wicket.markup
Class ContainerInfo

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

public class ContainerInfo
extends java.lang.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(MarkupContainer container)
          Construct.
 
Method Summary
 java.lang.Class getContainerClass()
           
 java.lang.String getFileExtension()
           
 java.util.Locale getLocale()
           
 java.lang.String getStyle()
           
 java.lang.String getVariation()
           
 java.lang.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
Method Detail

getContainerClass

public java.lang.Class getContainerClass()
Returns:
The container class

getFileExtension

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

getLocale

public java.util.Locale getLocale()
Returns:
The container locale

getStyle

public java.lang.String getStyle()
Returns:
The container style

getVariation

public java.lang.String getVariation()
Returns:
The containers variation

toString

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


Copyright © 2004-2007 Wicket developers. All Rights Reserved.