public class CommonAction<U extends org.ujorm.Ujo> extends Object implements Serializable, CommonActions
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PREFIX
Default Action label prefix is
"action.label." |
| Constructor and Description |
|---|
CommonAction(String actionId)
Create Resource model label using
actionId with a prefix "label.action." |
CommonAction(String actionId,
org.apache.wicket.model.IModel<String> label)
Constructor with full arguments
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActionId()
Action id
|
org.apache.wicket.model.IModel<String> |
getLabel()
Label of the action
|
boolean |
isVisible(U row)
Is the action visible?
|
static CommonAction[] |
of(String... actions)
A common action factory
|
public static final String DEFAULT_PREFIX
"action.label."public CommonAction(String actionId)
actionId with a prefix "label.action."actionId - Action identifier, see common constants from the class CommonActions.CommonActionspublic CommonAction(@Nonnull String actionId, @Nullable org.apache.wicket.model.IModel<String> label)
actionId - Action identifier, see common constants from the class CommonActions.label - Optional Label, the null value is replaced by the key: "label.action." + actionId.CommonActionspublic String getActionId()
public org.apache.wicket.model.IModel<String> getLabel()
public boolean isVisible(U row)
public static CommonAction[] of(String... actions)
actions - An array of the action namesclassCopyright © 2021. All rights reserved.