Examples of HumanTime


Examples of org.activiti.explorer.util.time.HumanTime

    HorizontalLayout propertiesLayout = new HorizontalLayout();
    propertiesLayout.setSpacing(true);
    details.addComponent(propertiesLayout);
   
    // Created Time
    String createLabel = i18nManager.getMessage(Messages.REPORTING_CREATE_TIME, new HumanTime(i18nManager).format(historicProcessInstance.getEndTime()));
    Label versionLabel = new Label(createLabel);
    versionLabel.addStyleName(ExplorerLayout.STYLE_PROCESS_HEADER_START_TIME);
    propertiesLayout.addComponent(versionLabel);
  }
View Full Code Here

Examples of org.activiti.explorer.util.time.HumanTime

    Label text = taskEventTextResolver.resolveText(taskEvent);
    text.setWidth("100%");
    layout.addComponent(text);
   
    // Time
    Label time = new Label(new HumanTime(i18nManager).format(taskEvent.getTime()));
    time.setSizeUndefined();
    time.addStyleName(ExplorerLayout.STYLE_TASK_EVENT_TIME);
    layout.addComponent(time);
   
  }
View Full Code Here

Examples of org.activiti.explorer.util.time.HumanTime

    Label text = taskEventTextResolver.resolveText(taskEvent);
    text.setWidth("100%");
    layout.addComponent(text);
   
    // Time
    Label time = new Label(new HumanTime(i18nManager).format(taskEvent.getTime()));
    time.setSizeUndefined();
    time.addStyleName(ExplorerLayout.STYLE_TASK_EVENT_TIME);
    layout.addComponent(time);
   
  }
View Full Code Here

Examples of org.activiti.explorer.util.time.HumanTime

      } else {
        dateFormat = new SimpleDateFormat(Constants.DEFAULT_DATE_FORMAT);
      }
     
      if(labelTemplate != null) {
        super.setValue(MessageFormat.format(labelTemplate, new HumanTime(i18nManager).format(date)));
      } else {
        super.setValue(new HumanTime(i18nManager).format(date));
      }
      setDescription(dateFormat.format(date));
    } else {
      super.setValue(noDateCaption);
      setDescription(noDateCaption);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.