Search in sources :

Example 6 with OrgTreeAssignablePanel

use of com.evolveum.midpoint.web.page.admin.orgs.OrgTreeAssignablePanel in project midpoint by Evolveum.

the class TreeTablePanel method moveRootPerformed.

private void moveRootPerformed(final TreeSelectableBean<OrgType> root, AjaxRequestTarget target) {
    OrgTreeAssignablePanel orgAssignablePanel = new OrgTreeAssignablePanel(parentPage.getMainPopupBodyId(), false) {

        private static final long serialVersionUID = 1L;

        @Override
        protected void onItemSelect(SelectableBeanImpl<OrgType> selected, AjaxRequestTarget target) {
            moveConfirmPerformed(root, selected, target);
        }

        @SuppressWarnings("unchecked")
        @Override
        protected OrgType getAssignmentOwnerObject() {
            return root.getValue();
        }
    };
    orgAssignablePanel.setOutputMarkupId(true);
    parentPage.showMainPopup(orgAssignablePanel, target);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) SelectableBeanImpl(com.evolveum.midpoint.web.component.util.SelectableBeanImpl) OrgTreeAssignablePanel(com.evolveum.midpoint.web.page.admin.orgs.OrgTreeAssignablePanel)

Aggregations

OrgTreeAssignablePanel (com.evolveum.midpoint.web.page.admin.orgs.OrgTreeAssignablePanel)6 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)6 OrgType (com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 IModel (org.apache.wicket.model.IModel)2 TypedAssignablePanel (com.evolveum.midpoint.gui.api.component.TypedAssignablePanel)1 AjaxButton (com.evolveum.midpoint.web.component.AjaxButton)1 InlineMenuItem (com.evolveum.midpoint.web.component.menu.cog.InlineMenuItem)1 InlineMenuItemAction (com.evolveum.midpoint.web.component.menu.cog.InlineMenuItemAction)1 SelectableBean (com.evolveum.midpoint.web.component.util.SelectableBean)1 SelectableBeanImpl (com.evolveum.midpoint.web.component.util.SelectableBeanImpl)1 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)1 QName (javax.xml.namespace.QName)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1