Search in sources :

Example 1 with MemoryPanel

use of eu.esdihumboldt.hale.server.status.war.components.memory.MemoryPanel in project hale by halestudio.

the class StatusPage method addControls.

@Override
protected void addControls(boolean loggedIn) {
    super.addControls(loggedIn);
    List<AbstractTab> tabs = new ArrayList<AbstractTab>();
    tabs.add(new AbstractTab(Model.of("Memory")) {

        private static final long serialVersionUID = -8792707190741096316L;

        @Override
        public WebMarkupContainer getPanel(String panelId) {
            return new MemoryPanel(panelId);
        }
    });
    tabs.add(new AbstractTab(Model.of("Jobs")) {

        private static final long serialVersionUID = -8792707190741096316L;

        @Override
        public WebMarkupContainer getPanel(String panelId) {
            return new JobPanelWrapper(panelId);
        }
    });
    add(new TabbedPanel<AbstractTab>("tabs", tabs));
}
Also used : JobPanelWrapper(eu.esdihumboldt.hale.server.status.war.components.JobPanelWrapper) ArrayList(java.util.ArrayList) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) MemoryPanel(eu.esdihumboldt.hale.server.status.war.components.memory.MemoryPanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

JobPanelWrapper (eu.esdihumboldt.hale.server.status.war.components.JobPanelWrapper)1 MemoryPanel (eu.esdihumboldt.hale.server.status.war.components.memory.MemoryPanel)1 ArrayList (java.util.ArrayList)1 AbstractTab (org.apache.wicket.extensions.markup.html.tabs.AbstractTab)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1