Search in sources :

Example 21 with Breadcrumb

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

the class PageBase method redirectBack.

/**
 * @param backStep redirects back to page with backStep step
 */
public Breadcrumb redirectBack(int backStep) {
    List<Breadcrumb> breadcrumbs = getBreadcrumbs();
    if (canRedirectBack(backStep)) {
        Breadcrumb breadcrumb = breadcrumbs.get(breadcrumbs.size() - backStep);
        redirectBackToBreadcrumb(breadcrumb);
        return breadcrumb;
    } else if (canRedirectBack(DEFAULT_BREADCRUMB_STEP)) {
        Breadcrumb breadcrumb = breadcrumbs.get(breadcrumbs.size() - DEFAULT_BREADCRUMB_STEP);
        redirectBackToBreadcrumb(breadcrumb);
        return breadcrumb;
    } else {
        setResponsePage(getMidpointApplication().getHomePage());
        return null;
    }
}
Also used : Breadcrumb(com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)

Example 22 with Breadcrumb

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

the class PageOrgSelfProfile method createBreadcrumb.

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

Example 23 with Breadcrumb

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

the class PageServiceSelfProfile method createBreadcrumb.

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

Example 24 with Breadcrumb

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

the class PageUserSelfProfile method createBreadcrumb.

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

Example 25 with Breadcrumb

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

the class PageOrgSelfProfile method createBreadcrumb.

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

Aggregations

Breadcrumb (com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb)26 Model (org.apache.wicket.model.Model)11 IModel (org.apache.wicket.model.IModel)10 BreadcrumbPageInstance (com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageInstance)5 WebPage (org.apache.wicket.markup.html.WebPage)4 BreadcrumbPageClass (com.evolveum.midpoint.web.component.breadcrumbs.BreadcrumbPageClass)3 VisibleBehaviour (com.evolveum.midpoint.web.component.util.VisibleBehaviour)2 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)2 LoadableModel (com.evolveum.midpoint.gui.api.model.LoadableModel)1 PageBase (com.evolveum.midpoint.gui.api.page.PageBase)1 UserDetailsModel (com.evolveum.midpoint.gui.impl.page.admin.user.UserDetailsModel)1 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1 AjaxButton (com.evolveum.midpoint.web.component.AjaxButton)1 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)1 PageAdminObjectDetails (com.evolveum.midpoint.web.page.admin.PageAdminObjectDetails)1 PageAssignmentsList (com.evolveum.midpoint.web.page.self.PageAssignmentsList)1 IPageFactory (org.apache.wicket.IPageFactory)1 AjaxLink (org.apache.wicket.ajax.markup.html.AjaxLink)1 TransparentWebMarkupContainer (org.apache.wicket.markup.html.TransparentWebMarkupContainer)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1