* Page parameters
*/
public BasePage() {
add(CSSPackageResource.getHeaderContribution(DefaultStyle.CSS_MAIN));
add(CSSPackageResource.getHeaderContribution(Styles.CSS_MAIN));
Layout layout = new Layout("layout", true) {
private static final long serialVersionUID = 1L;
@Override
public Panel getLayoutWestComponent(String wicketId) {
return new NavigationPanel(wicketId);
}
@Override
public Panel getLayoutNorthComponent(String wicketId) {
return new HeaderPanel(wicketId);
}
@Override
public Panel getLayoutCenterComponent(final String wicketId) {
return new IndicatorPanel(wicketId, creaAyuda()) {
private static final long serialVersionUID = 1L;
@Override
protected Component newContents(String id) {
return BasePage.this.getLayoutCenterComponent(id);
}
};
}
};
add(layout);
layout.setResizable(PanePositionEnum.NORTH, false)
.setClosable(PanePositionEnum.NORTH, false)
.setSpacingOpen(PanePositionEnum.NORTH, 0)
.setMinSize(PanePositionEnum.NORTH, 80)
.setMaxSize(PanePositionEnum.NORTH, 82);