Search in sources :

Example 11 with HeaderMenuAction

use of com.evolveum.midpoint.web.page.admin.configuration.component.HeaderMenuAction in project midpoint by Evolveum.

the class AbstractRoleMemberPanel method createRemoveMemberInlineMenuItems.

protected List<InlineMenuItem> createRemoveMemberInlineMenuItems() {
    List<InlineMenuItem> removeMenuItems = new ArrayList<>();
    removeMenuItems.add(new InlineMenuItem(createStringResource("TreeTablePanel.menu.unassignMembersSelected"), false, new HeaderMenuAction(this) {

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick(AjaxRequestTarget target) {
            removeMembersPerformed(QueryScope.SELECTED, target);
        }
    }));
    removeMenuItems.add(new InlineMenuItem(createStringResource("TreeTablePanel.menu.unassignMembersAll"), false, new HeaderMenuAction(this) {

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick(AjaxRequestTarget target) {
            removeMembersPerformed(QueryScope.ALL, target);
        }
    }));
    return removeMenuItems;
}
Also used : HeaderMenuAction(com.evolveum.midpoint.web.page.admin.configuration.component.HeaderMenuAction) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) ArrayList(java.util.ArrayList) InlineMenuItem(com.evolveum.midpoint.web.component.menu.cog.InlineMenuItem)

Aggregations

InlineMenuItem (com.evolveum.midpoint.web.component.menu.cog.InlineMenuItem)11 HeaderMenuAction (com.evolveum.midpoint.web.page.admin.configuration.component.HeaderMenuAction)11 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)11 ArrayList (java.util.ArrayList)9 Form (org.apache.wicket.markup.html.form.Form)3 LoadableModel (com.evolveum.midpoint.gui.api.model.LoadableModel)1 DebugSearchDto (com.evolveum.midpoint.web.page.admin.configuration.dto.DebugSearchDto)1 AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)1 IModel (org.apache.wicket.model.IModel)1 Model (org.apache.wicket.model.Model)1 PropertyModel (org.apache.wicket.model.PropertyModel)1