protected OpsuiApp app;
public BasePage(PageParameters parameters){
this.app = (OpsuiApp)getApplication();
add(new Link("home_link"){
/* (non-Javadoc)
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
setResponsePage(app.getHomePage());
}
});
add(new Link("fmbrowser_link"){
/* (non-Javadoc)
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
setResponsePage(TypesPage.class);
}
});
add(new Link("pcsstatus_link"){
/* (non-Javadoc)
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
setResponsePage(StatusPage.class);
}
});
add(new Link("wmonitor_link"){
/* (non-Javadoc)
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("status", "ALL");
params.add("pageNum", "1");
setResponsePage(WorkflowInstanceViewerPage.class, params);
}
});
add(new Link("config_link"){
/* (non-Javadoc)
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {