public class Action extends Object implements Serializable, Cloneable, Comparable<Action>
Modifier and Type | Field and Description |
---|---|
static String[] |
EMPTY_CATEGORIES |
Constructor and Description |
---|
Action() |
Action(String id,
String[] categories) |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
int |
compareTo(Action anotherAction) |
boolean |
equals(Object other) |
String |
getAccessKey() |
boolean |
getAvailable() |
String[] |
getCategories() |
List<String> |
getCategoryList()
Returns the categories as a list.
|
String |
getConfirm()
Returns the confirm javascript for this element.
|
List<String> |
getFilterIds() |
ActionFilter[] |
getFilters() |
String |
getHelp() |
String |
getIcon() |
String |
getId() |
String |
getLabel() |
String |
getLink()
Returns the link for this action.
|
Class[] |
getLinkParams()
Deprecated.
since 5.6: useless now that EL expressions support parameters
|
int |
getOrder()
Returns the action order.
|
Map<String,Serializable> |
getProperties()
Returns an aggregate of
localProperties and properties set via descriptors. |
ActionPropertiesDescriptor |
getPropertiesDescriptor() |
String |
getType() |
int |
hashCode() |
boolean |
isEnabled() |
boolean |
isEnableSet()
Returns true if the enabled element was set on the descriptor, useful for merging.
|
boolean |
isImmediate() |
void |
setAccessKey(String accessKey) |
void |
setAvailable(boolean available) |
void |
setCategories(String[] categories) |
void |
setConfirm(String confirm) |
void |
setEnabled(boolean enabled) |
void |
setFilterIds(List<String> filterIds) |
void |
setFilters(ActionFilter[] filters) |
void |
setHelp(String title) |
void |
setIcon(String icon) |
void |
setImmediate(boolean immediate) |
void |
setLabel(String label) |
void |
setLink(String link) |
void |
setLinkParams(Class<?>[] linkParams)
Deprecated.
since 5.6: useless now that EL expressions support parameters
|
void |
setOrder(int order)
Sets the order of the action.
|
void |
setProperties(Map<String,Serializable> localProperties)
Sets local properties programatically
|
void |
setPropertiesDescriptor(ActionPropertiesDescriptor properties) |
void |
setType(String type) |
String |
toString() |
public static final String[] EMPTY_CATEGORIES
public boolean isEnableSet()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public String getLabel()
public void setLabel(String label)
public String getIcon()
public void setIcon(String icon)
public String getLink()
Since 5.7.3, fallbacks on properties when link is not set and retrieve it using key "link".
public void setLink(String link)
public String[] getCategories()
public String getId()
public int getOrder()
public void setOrder(int order)
order
- order of the actionpublic int compareTo(Action anotherAction)
compareTo
in interface Comparable<Action>
public ActionFilter[] getFilters()
public void setFilters(ActionFilter[] filters)
public void setCategories(String[] categories)
@Deprecated public Class[] getLinkParams()
@Deprecated public void setLinkParams(Class<?>[] linkParams)
public String getConfirm()
Since 5.7.3, fallbacks on properties when link is not set and retrieve it using key "confirm".
public void setConfirm(String confirm)
public boolean getAvailable()
public void setAvailable(boolean available)
public String getHelp()
public void setHelp(String title)
public boolean isImmediate()
public void setImmediate(boolean immediate)
public String getType()
public void setType(String type)
public ActionPropertiesDescriptor getPropertiesDescriptor()
public void setPropertiesDescriptor(ActionPropertiesDescriptor properties)
public void setProperties(Map<String,Serializable> localProperties)
public Map<String,Serializable> getProperties()
localProperties
and properties
set via descriptors.public void setAccessKey(String accessKey)
public String getAccessKey()
Copyright © 2015 Nuxeo SA. All rights reserved.