Search in sources :

Example 6 with Breadcrumb

use of com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb in project midpoint by Evolveum.

the class PageBase method redirectBack.

public Breadcrumb redirectBack() {
    List<Breadcrumb> breadcrumbs = getBreadcrumbs();
    if (!canRedirectBack()) {
        setResponsePage(getMidpointApplication().getHomePage());
        return null;
    }
    Breadcrumb breadcrumb = breadcrumbs.get(breadcrumbs.size() - 2);
    redirectBackToBreadcrumb(breadcrumb);
    return breadcrumb;
}
Also used : Breadcrumb(com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)

Example 7 with Breadcrumb

use of com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb in project midpoint by Evolveum.

the class AbstractRoleMainPanel method getPreviousPage.

private Class getPreviousPage(PageAdminObjectDetails<R> parentPage) {
    List<Breadcrumb> breadcrumbs = parentPage.getBreadcrumbs();
    if (breadcrumbs == null || breadcrumbs.size() < 2) {
        return null;
    }
    Breadcrumb previousBreadcrumb = breadcrumbs.get(breadcrumbs.size() - 2);
    Class page = null;
    if (previousBreadcrumb instanceof BreadcrumbPageClass) {
        page = ((BreadcrumbPageClass) previousBreadcrumb).getPage();
    } else if (previousBreadcrumb instanceof BreadcrumbPageInstance) {
        page = ((BreadcrumbPageInstance) previousBreadcrumb).getPage().getClass();
    }
    return page;
}
Also used : BreadcrumbPageClass(com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageClass) Breadcrumb(com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb) BreadcrumbPageClass(com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageClass) BreadcrumbPageInstance(com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageInstance)

Example 8 with Breadcrumb

use of com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb in project midpoint by Evolveum.

the class PageSelfDashboard method createBreadcrumb.

@Override
protected void createBreadcrumb() {
    super.createBreadcrumb();
    Breadcrumb bc = getLastBreadcrumb();
    bc.setIcon(new Model("fa fa-dashboard"));
}
Also used : IModel(org.apache.wicket.model.IModel) Model(org.apache.wicket.model.Model) PropertyModel(org.apache.wicket.model.PropertyModel) Breadcrumb(com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)

Example 9 with Breadcrumb

use of com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb in project midpoint by Evolveum.

the class PageSelfProfile method createBreadcrumb.

@Override
protected void createBreadcrumb() {
    super.createBreadcrumb();
    Breadcrumb bc = getLastBreadcrumb();
    bc.setIcon(new Model("fa fa-user"));
}
Also used : Model(org.apache.wicket.model.Model) IModel(org.apache.wicket.model.IModel) Breadcrumb(com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)

Example 10 with Breadcrumb

use of com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb in project midpoint by Evolveum.

the class PageAbstractSelfCredentials method createBreadcrumb.

@Override
protected void createBreadcrumb() {
    super.createBreadcrumb();
    Breadcrumb bc = getLastBreadcrumb();
    bc.setIcon(new Model<String>("fa fa-shield"));
}
Also used : Breadcrumb(com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)

Aggregations

Breadcrumb (com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)14 Model (org.apache.wicket.model.Model)5 WebPage (org.apache.wicket.markup.html.WebPage)3 IModel (org.apache.wicket.model.IModel)3 LoadableModel (com.evolveum.midpoint.gui.api.model.LoadableModel)2 BreadcrumbPageClass (com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageClass)2 BreadcrumbPageInstance (com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageInstance)2 PageBase (com.evolveum.midpoint.gui.api.page.PageBase)1 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)1 PageAdminObjectDetails (com.evolveum.midpoint.web.page.admin.PageAdminObjectDetails)1 IPageFactory (org.apache.wicket.IPageFactory)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 AjaxLink (org.apache.wicket.ajax.markup.html.AjaxLink)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1 Label (org.apache.wicket.markup.html.basic.Label)1 ListItem (org.apache.wicket.markup.html.list.ListItem)1 ListView (org.apache.wicket.markup.html.list.ListView)1 AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)1 PropertyModel (org.apache.wicket.model.PropertyModel)1 StringResourceModel (org.apache.wicket.model.StringResourceModel)1