Search in sources :

Example 1 with RefreshableTabPanel

use of com.evolveum.midpoint.web.page.admin.server.RefreshableTabPanel in project midpoint by Evolveum.

the class PageAdminObjectDetails method refresh.

public void refresh(AjaxRequestTarget target, boolean soft) {
    if (!isAdd()) {
        getObjectModel().reset();
    }
    target.add(getSummaryPanel());
    target.add(getOperationalButtonsPanel());
    target.add(getFeedbackPanel());
    refreshTitle(target);
    if (soft) {
        for (Component component : getMainPanel().getTabbedPanel()) {
            if (component instanceof RefreshableTabPanel) {
                for (Component c : ((RefreshableTabPanel) component).getComponentsToUpdate()) {
                    target.add(c);
                }
            }
        }
    } else {
        target.add(getMainPanel().getTabbedPanel());
    }
}
Also used : Component(org.apache.wicket.Component) RefreshableTabPanel(com.evolveum.midpoint.web.page.admin.server.RefreshableTabPanel)

Aggregations

RefreshableTabPanel (com.evolveum.midpoint.web.page.admin.server.RefreshableTabPanel)1 Component (org.apache.wicket.Component)1