| wicket.markup.html.WebMarkupContainerWithAssociatedMarkup wicket.markup.html.border.Border
All known Subclasses: wicket.examples.compref.MyBorder, wicket.markup.parser.filter.HeaderSectionBorder, wicket.markup.html.border.MyApplicationBorder, wicket.markup.html.form.validation.FormComponentFeedbackBorder, wicket.extensions.ajax.markup.html.repeater.data.sort.AjaxFallbackOrderByBorder, wicket.markup.parser.filter.sub.HeaderSectionBorder, wicket.markup.parser.filter.HeaderSectionBorder_2, wicket.examples.displaytag.list.SortableListViewHeader, wicket.ajax.markup.html.ajaxLink.AjaxTestBorder, wicket.markup.html.border.FormBorder, wicket.extensions.markup.html.repeater.data.sort.OrderByBorder, wicket.markup.html.border.BoxBorder, wicket.markup.html.tree.PageBorder, wicket.markup.html.basic.SimpleBorder, wicket.examples.library.LibraryApplicationBorder, wicket.markup.html.border.BorderComponent1, wicket.markup.html.border.BorderComponent2, wicket.examples.navomatic.NavomaticBorder,
Border | abstract public class Border extends WebMarkupContainerWithAssociatedMarkup implements IComponentResolver(Code) | | A border component has associated markup which is drawn and determines
placement of any markup and/or components nested within the border component.
The portion of the border's associated markup file which is to be used in
rendering the border is denoted by a <wicket:border> tag. The children
of the border component instance are then inserted into this markup,
replacing the first <wicket:body> tag in the border's associated
markup.
For example, if a border's associated markup looked like this:
<html>
<body>
<wicket:border>
First <wicket:body/> Last
</wicket:border>
</body>
</html>
And the border was used on a page like this:
<html>
<body>
<span wicket:id = "myBorder">
Middle
</span>
</body>
</html>
Then the resulting HTML would look like this:
<html>
<body>
First Middle Last
</body>
</html>
In other words, the body of the myBorder component is substituted into the
border's associated markup at the position indicated by the
<wicket:body> tag.
Regarding <wicket:body/> you have two options. Either use
<wicket:body/> (open-close tag) which will automatically be expanded to
<wicket:body>body content</wicket:body> or use
<wicket:body>preview region</wicket:body> in your border's
markup. The preview region (everything in between the open and close tag)
will automatically be removed.
author: Jonathan Locke |
renderBodyComponent | public void renderBodyComponent(MarkupStream markupStream, WicketTag wtag)(Code) | | Render the wicket:body and all what is in it.
Parameters: markupStream - The associated markup stream Parameters: wtag - The wicket:body tag |
renderBodyComponentTag | protected ComponentTag renderBodyComponentTag(MarkupStream markupStream, ComponentTag tag)(Code) | | Render the wicket:body tag
Parameters: tag - The wicket:body tag Parameters: markupStream - The associated markup stream the body tag. May be its type has been changed |
renderBodyComponentTagBody | public void renderBodyComponentTagBody(MarkupStream markupStream, ComponentTag tag)(Code) | | Render the wicket:body tag
Parameters: markupStream - The associated markup stream Parameters: tag - The wicket:body tag |
resolve | final public boolean resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)(Code) | | Border makes use of a <wicket:body> tag to identify the position to
insert within the border's body. As <wicket:body> is a special tag
and MarkupContainer is not able to handle it, we do that here.
You have two options. Either use <wicket:body/> (open-close tag)
which will automatically be expanded to <wicket:body>body
content</wicket:body> or use <wicket:body>preview
region</wicket:body> in your border's markup. The preview region
(everything in between the open and close tag) will automatically be
removed.
See Also: IComponentResolver.resolve(MarkupContainerMarkupStreamComponentTag) Parameters: container - The container parsing its markup Parameters: markupStream - The current markupStream Parameters: tag - The current component tag while parsing the markup True if componentId was handled by the resolver, false otherwise. |
setBorderBodyVisible | public Border setBorderBodyVisible(boolean bodyVisible)(Code) | | When this method is called with a false value the components and raw
markup that this border wraps will not be rendered.
Parameters: bodyVisible - this for chaining |
setTransparentResolver | final public Border setTransparentResolver(boolean transparentResolver)(Code) | | Borders used for bordered pages should set it to "true". Default is
"false".
Parameters: transparentResolver - this for chaining |
|
|