Package org.activiti.explorer

Examples of org.activiti.explorer.I18nManager


    layout.setSpacing(true);
    layout.setSizeFull();
    layout.setMargin(false, false, true, false);
    addComponent(layout);
   
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    setCaption(i18nManager.getMessage(Messages.MODEL_DEPLOY_POPUP_CAPTION));
   
    // Process name
    Label nameLabel = new Label(i18nManager.getMessage(Messages.MODEL_DEPLOY_NAME));
    layout.addComponent(nameLabel, 0, 0);
   
    processNameTextField = new TextField();
    if (modelData.getName() != null) {
      processNameTextField.setValue(modelData.getName());
    }
    processNameTextField.focus();
    layout.addComponent(processNameTextField, 1, 0);
   
    // Generate reports
    Label generateReportsLabel = new Label(i18nManager.getMessage(Messages.MODEL_DEPLOY_GENERATE_REPORTS));
    layout.addComponent(generateReportsLabel, 0, 1);
   
    generateReportsCheckBox = new CheckBox();
    generateReportsCheckBox.setValue(true);
    layout.addComponent(generateReportsCheckBox, 1, 1);
View Full Code Here


  protected static final String STYLE_LOGIN_FIELD = "login-field";
  protected static final String STYLE_LOGIN_FIELD_CAPTION = "login-field-caption";
  protected static final String STYLE_LOGIN_BUTTON = "login-button";
 
  public ExplorerLoginForm() {
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    usernameCaption = HtmlUtils.htmlEscape(i18nManager.getMessage(Messages.LOGIN_USERNAME));
    passwordCaption = HtmlUtils.htmlEscape(i18nManager.getMessage(Messages.LOGIN_PASSWORD));
    submitCaption = HtmlUtils.htmlEscape(i18nManager.getMessage(Messages.LOGIN_BUTTON));
  }
View Full Code Here

    comboBox.setRequired(formProperty.isRequired());
    comboBox.setRequiredError(getMessage(Messages.FORM_FIELD_REQUIRED, getPropertyLabel(formProperty)));
    comboBox.setEnabled(formProperty.isWritable());

    // Fill combobox
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    for (int i=0; i<12; i++) {
      comboBox.addItem(i);
      comboBox.setItemCaption(i, i18nManager.getMessage(Messages.MONTH_PREFIX + i));
    }
   
    // Select first
    comboBox.setNullSelectionAllowed(false);
    Calendar cal = Calendar.getInstance();
View Full Code Here

    this.groupId = groupId;
    this.membershipChangeListener = memberShipChangeListener;
  }
 
  public void click(ClickEvent event) {
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    ViewManager viewManager = ExplorerApp.get().getViewManager();
   
    // Add listener to confirmation window. If confirmed, membership is deleted
    ConfirmationDialogPopupWindow confirmationPopup =
      new ConfirmationDialogPopupWindow(i18nManager.getMessage(Messages.USER_CONFIRM_DELETE_GROUP, userId, groupId));
    confirmationPopup.addListener(new ConfirmationEventListener() {
      protected void rejected(ConfirmationEvent event) {
      }
      protected void confirmed(ConfirmationEvent event) {
        identityService.deleteMembership(userId, groupId);
View Full Code Here

  protected Component componentToDisableOnClose;
 
  protected TextField nameField;

  public SaveReportPopupWindow() {
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    setCaption(i18nManager.getMessage(Messages.REPORTING_SAVE_POPUP_CAPTION));
   
    VerticalLayout layout = new VerticalLayout();
    addComponent(layout);
   
    createNameTextField(i18nManager, layout);
View Full Code Here

    this.subTask = subTask;
    this.subTaskComponent = subTaskComponent;
  }

  public void click(ClickEvent event) {
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    ViewManager viewManager = ExplorerApp.get().getViewManager();
    final TaskService taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
   
    ConfirmationDialogPopupWindow popup = new ConfirmationDialogPopupWindow(
            i18nManager.getMessage(Messages.TASK_CONFIRM_DELETE_SUBTASK, subTask.getName()));
    popup.addListener(new ConfirmationEventListener() {
      private static final long serialVersionUID = 1L;
      protected void rejected(ConfirmationEvent event) {
      }
      protected void confirmed(ConfirmationEvent event) {
View Full Code Here

    this.groupId = groupId;
    this.membershipChangeListener = memberShipChangeListener;
  }
 
  public void click(ClickEvent event) {
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    ViewManager viewManager = ExplorerApp.get().getViewManager();
   
    // Add listener to confirmation window. If confirmed, membership is deleted
    ConfirmationDialogPopupWindow confirmationPopup =
      new ConfirmationDialogPopupWindow(i18nManager.getMessage(Messages.USER_CONFIRM_DELETE_GROUP, userId, groupId));
    confirmationPopup.addListener(new ConfirmationEventListener() {
      protected void rejected(ConfirmationEvent event) {
      }
      protected void confirmed(ConfirmationEvent event) {
        identityService.deleteMembership(userId, groupId);
View Full Code Here

  protected static final String STYLE_LOGIN_FIELD = "login-field";
  protected static final String STYLE_LOGIN_FIELD_CAPTION = "login-field-caption";
  protected static final String STYLE_LOGIN_BUTTON = "login-button";
 
  public ExplorerLoginForm() {
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    usernameCaption = HtmlUtils.htmlEscape(i18nManager.getMessage(Messages.LOGIN_USERNAME));
    passwordCaption = HtmlUtils.htmlEscape(i18nManager.getMessage(Messages.LOGIN_PASSWORD));
    submitCaption = HtmlUtils.htmlEscape(i18nManager.getMessage(Messages.LOGIN_BUTTON));
  }
View Full Code Here

    layout.setSpacing(true);
    layout.setSizeFull();
   
    setContent(layout);
   
    I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    if(title != null) {
      setCaption(title);
    } else {
      setCaption(i18nManager.getMessage(Messages.CONFIRMATION_DIALOG_DEFAULT_TITLE));
    }
   
    initLabel(description);
    initButtons(i18nManager);
  }
View Full Code Here

    init();
  }
 
  protected void init() {
   
    final I18nManager i18nManager = ExplorerApp.get().getI18nManager();
    if (date != null) {
      DateFormat dateFormat = null;
      if(showTime) {
        dateFormat = new SimpleDateFormat(Constants.DEFAULT_TIME_FORMAT);
      } else {
View Full Code Here

TOP

Related Classes of org.activiti.explorer.I18nManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.