|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.wicket.component.grid.CommonAction<U>
public class CommonAction<U extends Ujo>
The common action panel
| Field Summary | |
|---|---|
static String |
DEFAULT_PREFIX
Default Action label prefix is "action.label." |
| Fields inherited from interface org.ujorm.wicket.CommonActions |
|---|
CLONE, CREATE, DELETE, ERROR, EXIT, FILTER, LOGIN, LOGIN_CHANGED, READ, SELECT, UNDEFINED, UPDATE |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
String |
getActionId()
Action id |
org.apache.wicket.model.IModel<String> |
getLabel()
Label of the action |
boolean |
isVisible(U row)
Is the action visible? The method is ready to to overriding. |
static CommonAction[] |
of(String... actions)
A common action factory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PREFIX
"action.label."
| Constructor Detail |
|---|
public CommonAction(String actionId)
actionId with a prefix "label.action."
actionId - Action identifier, see common constants from the class CommonActions.CommonActions
public 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.visibleModel - Visible model is optionalCommonActions| Method Detail |
|---|
public 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 names
class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||