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, toString
equals, getCSSClass, getIcon, getName, getProperty, getTextModel, hashCode, isVisible, match
public 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 IJQuerySecurityProvider
public 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 IJQuerySecurityProvider
public 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 IJQuerySecurityProvider
public 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 IJQuerySecurityProvider
public String[] getRoles()
public final boolean isLocked()
IJQuerySecurityProvider.hasRole(String...)
public boolean isEnabled()
AbstractButton
isEnabled
in class AbstractButton
true
by defaultpublic String getIconClass()
AbstractButton
getIconClass
in class AbstractButton
AbstractButton.getIcon()
Copyright © 2019 7thWeb. All rights reserved.