Class FocusListInlineMenuHelper<F extends FocusType>

  • 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 Detail

      • FocusListInlineMenuHelper

        public FocusListInlineMenuHelper​(@NotNull
                                         @NotNull Class<F> objectClass,
                                         @NotNull
                                         @NotNull PageBase parentPage,
                                         @NotNull
                                         @NotNull MainObjectListPanel<F> focusListComponent)
    • Method Detail

      • 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)