Class InlineMenuItem
- java.lang.Object
-
- com.evolveum.midpoint.web.component.menu.cog.InlineMenuItem
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ButtonInlineMenuItem
,CheckboxMenuItem
public abstract class InlineMenuItem extends Object implements Serializable
TODO: update to better use with DropdownButtonPanel. Move away from depreated com.evolveum.midpoint.web.component.menu.cog. TODO: Create a builder for this.- Author:
- lazyman
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InlineMenuItem.VisibilityChecker
-
Constructor Summary
Constructors Constructor Description InlineMenuItem(org.apache.wicket.model.IModel<String> label)
InlineMenuItem(org.apache.wicket.model.IModel<String> label, boolean isSubmit)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description InlineMenuItemAction
getAction()
org.apache.wicket.model.IModel<String>
getConfirmationMessageModel()
org.apache.wicket.model.IModel<Boolean>
getEnabled()
int
getId()
org.apache.wicket.model.IModel<String>
getLabel()
InlineMenuItem.VisibilityChecker
getVisibilityChecker()
org.apache.wicket.model.IModel<Boolean>
getVisible()
abstract InlineMenuItemAction
initAction()
boolean
isDivider()
boolean
isHeaderMenuItem()
visible behavior for menu item in the headerboolean
isMenuHeader()
boolean
isSubmit()
if true, link must be rendered as submit link button, otherwise normal ajax linkvoid
setAction(InlineMenuItemAction action)
void
setEnabled(org.apache.wicket.model.IModel<Boolean> enabled)
void
setId(int id)
void
setVisibilityChecker(InlineMenuItem.VisibilityChecker visibilityChecker)
void
setVisible(org.apache.wicket.model.IModel<Boolean> visible)
boolean
showConfirmationDialog()
-
-
-
Method Detail
-
initAction
public abstract InlineMenuItemAction initAction()
-
getEnabled
public org.apache.wicket.model.IModel<Boolean> getEnabled()
-
setEnabled
public void setEnabled(org.apache.wicket.model.IModel<Boolean> enabled)
-
getLabel
public org.apache.wicket.model.IModel<String> getLabel()
-
isSubmit
public boolean isSubmit()
if true, link must be rendered as submit link button, otherwise normal ajax link
-
getVisible
public org.apache.wicket.model.IModel<Boolean> getVisible()
-
setVisible
public void setVisible(org.apache.wicket.model.IModel<Boolean> visible)
-
isDivider
public boolean isDivider()
-
isMenuHeader
public boolean isMenuHeader()
-
isHeaderMenuItem
public boolean isHeaderMenuItem()
visible behavior for menu item in the header
-
getId
public int getId()
-
setId
public void setId(int id)
-
getAction
public InlineMenuItemAction getAction()
-
setAction
public void setAction(InlineMenuItemAction action)
-
getConfirmationMessageModel
public org.apache.wicket.model.IModel<String> getConfirmationMessageModel()
-
showConfirmationDialog
public boolean showConfirmationDialog()
-
getVisibilityChecker
public InlineMenuItem.VisibilityChecker getVisibilityChecker()
-
setVisibilityChecker
public void setVisibilityChecker(InlineMenuItem.VisibilityChecker visibilityChecker)
-
-