com.vaadin.event.Action.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(75)

本文整理了Java中com.vaadin.event.Action.<init>()方法的一些代码示例,展示了Action.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.<init>()方法的具体详情如下:
包路径:com.vaadin.event.Action
类名称:Action
方法名:<init>

Action.<init>介绍

[英]Constructs a new action with the given caption.
[中]构造具有给定标题的新操作。

代码示例

代码示例来源:origin: org.aperteworkflow/editor

public UserStepEditorWindow(StepEditorApplication application, String jsonConfig, String url, String stepName, String stepType) {
  super(application, jsonConfig, url, stepName, stepType);
  permissions = new LinkedHashSet<Permission>();
  actionDelete = new Action(I18NSource.ThreadUtil.getThreadI18nSource().getMessage("stepTree.action.delete"));
  actions = new Action[] { actionDelete };
}

代码示例来源:origin: com.haulmont.cuba/cuba-web

@Override
public com.vaadin.event.Action[] getActions(Object target, Object sender) {
  if (!initialized) {
    Messages messages = beanLocator.get(Messages.NAME);
    saveSettingsAction = new com.vaadin.event.Action(messages.getMainMessage("actions.saveSettings"));
    restoreToDefaultsAction = new com.vaadin.event.Action(messages.getMainMessage("actions.restoreToDefaults"));
    analyzeAction = new com.vaadin.event.Action(messages.getMainMessage("actions.analyzeLayout"));
    initialized = true;
  }
  List<Action> actions = new ArrayList<>(3);
  ClientConfig clientConfig = getClientConfig();
  if (clientConfig.getManualScreenSettingsSaving()) {
    actions.add(saveSettingsAction);
    actions.add(restoreToDefaultsAction);
  }
  if (clientConfig.getLayoutAnalyzerEnabled()) {
    actions.add(analyzeAction);
  }
  return actions.toArray(new com.vaadin.event.Action[0]);
}

代码示例来源:origin: com.haulmont.cuba/cuba-web

Messages messages = AppBeans.get(Messages.NAME);
closeAllTabs = new com.vaadin.event.Action(messages.getMainMessage("actions.closeAllTabs"));
closeOtherTabs = new com.vaadin.event.Action(messages.getMainMessage("actions.closeOtherTabs"));
closeCurrentTab = new com.vaadin.event.Action(messages.getMainMessage("actions.closeCurrentTab"));
showInfo = new com.vaadin.event.Action(messages.getMainMessage("actions.showInfo"));
analyzeLayout = new com.vaadin.event.Action(messages.getMainMessage("actions.analyzeLayout"));
saveSettings = new com.vaadin.event.Action(messages.getMainMessage("actions.saveSettings"));
restoreToDefaults = new com.vaadin.event.Action(messages.getMainMessage("actions.restoreToDefaults"));

代码示例来源:origin: nz.co.senanque/madura-vaadinsupport

MessageSourceAccessor messageSourceAccessor = new MessageSourceAccessor(m_messageSource);
private static final long serialVersionUID = -5923269974651895441L;
Action add = new Action(messageSourceAccessor.getMessage("add.new.row.to.table",null,"add.new.row.to.table"));
Action remove = new Action(messageSourceAccessor.getMessage("delete.this.row",null,"delete.this.row"));
Action edit = new Action(messageSourceAccessor.getMessage("edit.this.row",null,"edit.this.row"));

代码示例来源:origin: org.apache.ace/org.apache.ace.tageditor

final Action[] delete = new Action[] { new Action("delete") };

代码示例来源:origin: apache/ace

final Action[] delete = new Action[] { new Action("delete") };

相关文章

微信公众号

最新文章

更多