本文整理了Java中org.nuxeo.ecm.platform.actions.Action.<init>()
方法的一些代码示例,展示了Action.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.<init>()
方法的具体详情如下:
包路径:org.nuxeo.ecm.platform.actions.Action
类名称:Action
方法名:<init>
暂无
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
@Override
public Action clone() {
Action clone = new Action();
clone.id = id;
clone.link = link;
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-document-routing-web
String buttonId = button.getName();
String id = getTaskActionId(task, buttonId);
Action action = new Action(id, Action.EMPTY_CATEGORIES);
action.setLabel(button.getLabel());
Map<String, Serializable> actionProps = new HashMap<String, Serializable>();
Action processAction = new Action(id, Action.EMPTY_CATEGORIES);
processAction.setProperties(props);
processAction.setType("process_task");
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
/**
* Helper to register a simple action based on the given descriptor
*
* @since 6.0
*/
protected Action getAction() {
Action a = new Action(ACTION_ID_PREFIX + getTreeId(),
new String[] { DirectoryTreeDescriptor.NAV_ACTION_CATEGORY });
a.setType("rest_document_link");
a.setLabel(getTreeLabel());
Map<String, String> props = new HashMap<String, String>();
props.put("ajaxSupport", "true");
if (isDirectoryTreeBased()) {
props.put("link", "/incl/single_directory_tree_explorer.xhtml");
} else {
props.put("link", getXhtmlview());
}
ActionPropertiesDescriptor pdesc = new ActionPropertiesDescriptor();
pdesc.setProperties(props);
a.setPropertiesDescriptor(pdesc);
Integer order = getOrder();
if (order != null) {
a.setOrder(order.intValue());
}
a.setEnabled(isEnabled());
a.setIcon(String.format("/img/%s.png", getTreeId()));
// need to set a non-empty list
a.setFilterIds(new ArrayList<String>());
return a;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
cats = new String[] { DIR_ACTION_CATEGORY };
Action a = new Action(ACTION_ID_PREFIX + getName(), cats);
a.setType("rest_document_link");
a.setLabel(getLabel());
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-document-routing-web
Action action = new Action(button.getName(),
Action.EMPTY_CATEGORIES);
action.setLabel(button.getLabel());
内容来源于网络,如有侵权,请联系作者删除!