public class SecuredCommandButton extends CommandButton
DataTable columnCANCEL, CREATE, CSS_ICON_ONLY, CSS_STATE_DISABLED, DESTROY, EDIT, SAVE| Constructor and Description |
|---|
SecuredCommandButton(String name,
org.apache.wicket.model.IModel<String> text,
String[] roles)
Constructor for built-in commands (no property supplied)
|
SecuredCommandButton(String name,
org.apache.wicket.model.IModel<String> text,
String[] roles,
com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
Constructor for built-in commands (no property supplied)
|
SecuredCommandButton(String name,
org.apache.wicket.model.IModel<String> text,
String property,
String[] roles)
Constructor
|
SecuredCommandButton(String name,
org.apache.wicket.model.IModel<String> text,
String property,
String[] roles,
com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
Constructor
|
SecuredCommandButton(String name,
String[] roles)
Constructor for built-in commands (no property supplied)
|
SecuredCommandButton(String name,
String[] roles,
com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
Constructor for built-in commands (no property supplied)
|
SecuredCommandButton(String name,
String property,
String[] roles)
Constructor
|
SecuredCommandButton(String name,
String property,
String[] roles,
com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIconClass()
Gets the CSS class for the icon
|
String[] |
getRoles()
Gets the roles
Caution: to be overridden with care! |
boolean |
isEnabled()
Indicates whether this button is enabled
|
boolean |
isLocked()
Indicates whether the button is locked.
|
isBuiltIn, onClick, toJSONObject, toStringequals, getCSSClass, getIcon, getName, getProperty, getTextModel, hashCode, isVisible, matchpublic SecuredCommandButton(String name, String[] roles)
name - the button's nameroles - list of roles allowed to enable the buttonpublic SecuredCommandButton(String name, String[] roles, com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
name - the button's nameroles - list of roles allowed to enable the buttonprovider - the IJQuerySecurityProviderpublic SecuredCommandButton(String name, String property, String[] roles)
name - the button's nameproperty - the property used to retrieve the row's object valueroles - list of roles allowed to enable the buttonpublic SecuredCommandButton(String name, String property, String[] roles, com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
name - the button's nameproperty - the property used to retrieve the row's object valueroles - list of roles allowed to enable the buttonprovider - the IJQuerySecurityProviderpublic SecuredCommandButton(String name, org.apache.wicket.model.IModel<String> text, String[] roles)
name - the button's nametext - the button's textroles - list of roles allowed to enable the buttonpublic SecuredCommandButton(String name, org.apache.wicket.model.IModel<String> text, String[] roles, com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
name - the button's nametext - the button's textroles - list of roles allowed to enable the buttonprovider - the IJQuerySecurityProviderpublic SecuredCommandButton(String name, org.apache.wicket.model.IModel<String> text, String property, String[] roles)
name - the button's nametext - the button's textproperty - the property used to retrieve the row's object valueroles - list of roles allowed to enable the buttonpublic SecuredCommandButton(String name, org.apache.wicket.model.IModel<String> text, String property, String[] roles, com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider)
name - the button's nametext - the button's textproperty - the property used to retrieve the row's object valueroles - list of roles allowed to enable the buttonprovider - the IJQuerySecurityProviderpublic String[] getRoles()
public final boolean isLocked()
IJQuerySecurityProvider.hasRole(String...)public boolean isEnabled()
AbstractButtonisEnabled in class AbstractButtontrue by defaultpublic String getIconClass()
AbstractButtongetIconClass in class AbstractButtonAbstractButton.getIcon()Copyright © 2021 7thWeb. All rights reserved.