Class BorderPanel

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public abstract class BorderPanel extends Panel
Whereas a Panel replaces the body markup with the associated markup file, a BorderPanel assumes a that Body component renders the body markup including any number of Wicket Components.

Example:

 MyPage.html
 ...
 <div wicket:id="myPanel">
   ...
   <div wicket:id="componentInBody"/>
   ...
 </div>
 
 MyPage.java
 ...
 public MyPage extends WebPage {
   ...
   public MyPage() { 
     ...
     MyPanel border = new MyPanel("myPanel");
     add(border);
     border.getBodyContainer().add(new MyComponent("componentInBody"));
     ...
   }
   ...
 }
 
 MyPanel.java
 ...
 public MyPanel extends BorderPanel {
   ...
   public MyPanel(final String id) {
     super(id);
     ...
     add(newBodyContainer("body"));
     ...
   }
 }
 
Author:
Juergen Donnerstag
See Also: