Package org.apache.wicket.markup
Class ContainerInfo
- java.lang.Object
-
- org.apache.wicket.markup.ContainerInfo
-
public class ContainerInfo extends Object
Because Component has a reference to its parents, which eventually is the Page, 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
Constructors Constructor Description ContainerInfo(Class<?> containerClass, Locale locale, String style, String variation, MarkupType markupType)
Construct.ContainerInfo(Class<?> containerClass, MarkupContainer container)
Construct.ContainerInfo(MarkupContainer container)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getContainerClass()
String
getFileExtension()
Locale
getLocale()
String
getStyle()
String
getVariation()
String
toString()
-
-
-
Constructor Detail
-
ContainerInfo
public ContainerInfo(MarkupContainer container)
Construct.- Parameters:
container
- The container to create the information from
-
ContainerInfo
public ContainerInfo(Class<?> containerClass, MarkupContainer container)
Construct.- Parameters:
containerClass
- the real container class (could be a parent class)container
- The container to create the information from
-
ContainerInfo
public ContainerInfo(Class<?> containerClass, Locale locale, String style, String variation, MarkupType markupType)
Construct.- Parameters:
containerClass
-locale
-style
-variation
-markupType
-
-
-
Method Detail
-
getContainerClass
public Class<?> getContainerClass()
- Returns:
- The container class
-
getFileExtension
public String getFileExtension()
- Returns:
- The container markup type (== file extension)
-
getVariation
public String getVariation()
- Returns:
- The containers variation
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-