Class FocusListInlineMenuHelper<F extends FocusType>
- java.lang.Object
-
- com.evolveum.midpoint.web.component.util.FocusListInlineMenuHelper<F>
-
- All Implemented Interfaces:
Serializable
public class FocusListInlineMenuHelper<F extends FocusType> extends Object implements Serializable
Provides common inline menu functionality for focal objects: enable, disable, reconcile, delete. TODO deduplicate this functionality with the one in PageUsers- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FocusListInlineMenuHelper(@NotNull Class<F> objectClass, @NotNull PageBase parentPage, @NotNull MainObjectListPanel<F> focusListComponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InlineMenuItem>
createRowActions(Class<F> objectType)
void
deleteConfirmedPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<SelectableBean<F>> selectedObject)
protected org.apache.wicket.model.IModel<String>
getConfirmationMessageModel(ColumnMenuAction action, String actionName)
static boolean
isObjectDisabled(org.apache.wicket.model.IModel<?> rowModel, boolean isHeader)
static boolean
isObjectEnabled(org.apache.wicket.model.IModel<?> rowModel, boolean isHeader)
protected boolean
isShowConfirmationDialog(ColumnMenuAction action)
-
-
-
Constructor Detail
-
FocusListInlineMenuHelper
public FocusListInlineMenuHelper(@NotNull @NotNull Class<F> objectClass, @NotNull @NotNull PageBase parentPage, @NotNull @NotNull MainObjectListPanel<F> focusListComponent)
-
-
Method Detail
-
createRowActions
public List<InlineMenuItem> createRowActions(Class<F> objectType)
-
deleteConfirmedPerformed
public void deleteConfirmedPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<SelectableBean<F>> selectedObject)
-
isObjectEnabled
public static boolean isObjectEnabled(org.apache.wicket.model.IModel<?> rowModel, boolean isHeader)
-
isObjectDisabled
public static boolean isObjectDisabled(org.apache.wicket.model.IModel<?> rowModel, boolean isHeader)
-
isShowConfirmationDialog
protected boolean isShowConfirmationDialog(ColumnMenuAction action)
-
getConfirmationMessageModel
protected org.apache.wicket.model.IModel<String> getConfirmationMessageModel(ColumnMenuAction action, String actionName)
-
-