org.ujorm.wicket.component.grid
Class CommonAction<U extends Ujo>

java.lang.Object
  extended by org.ujorm.wicket.component.grid.CommonAction<U>
All Implemented Interfaces:
Serializable

public class CommonAction<U extends Ujo>
extends Object
implements Serializable

The common action panel

Author:
Pavel Ponec
See Also:
Serialized Form

Field Summary
static String DEFAULT_PREFIX
          Default Action label prefix is "action.label."
 
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 visibled? The method is ready to to owerriding.
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

DEFAULT_PREFIX

public static final String DEFAULT_PREFIX
Default Action label prefix is "action.label."

See Also:
Constant Field Values
Constructor Detail

CommonAction

public CommonAction(String actionId)
Create Resource model label using actionId with a prefix "label.action."


CommonAction

public CommonAction(@Nonnull
                    String actionId,
                    @Nullable
                    org.apache.wicket.model.IModel<String> label)
Constructor with full arguments

Parameters:
actionId - Action identifier
label - Optional Label, the null value is replaced by the key: "label.action." + actionId.
visibleModel - Visible model is optional
Method Detail

getActionId

public String getActionId()
Action id


getLabel

public org.apache.wicket.model.IModel<String> getLabel()
Label of the action


isVisible

public boolean isVisible(U row)
Is the action visibled? The method is ready to to owerriding.


of

public static CommonAction[] of(String... actions)
A common action factory



Copyright © 2014. All Rights Reserved.