Package pl.net.bluesoft.rnd.util.i18n

Examples of pl.net.bluesoft.rnd.util.i18n.I18NSource$ThreadUtil


        docName = null;
        docDescription = null;
        properties = new ArrayList<Property<?>>();
        permissions = getPermissionsFromAnnotation(permissionsUsed, defaultPermissions);
       
        I18NSource i18NSource = I18NSource.ThreadUtil.getThreadI18nSource();
       
    if (classDoc != null) {
      docName = i18NSource.getMessage(classDoc.humanNameKey());
      docDescription = i18NSource.getMessage(classDoc.descriptionKey());
      docIcon = i18NSource.getMessage(classDoc.icon());
    }
    if (StringUtils.isEmpty(docName)) {
      docName = aliasName;
    }
    if (StringUtils.isEmpty(docDescription)) {
View Full Code Here


 
  private Property getProperty(Field field) {
    AutoWiredProperty awp = field.getAnnotation(AutoWiredProperty.class);
        AutoWiredPropertyConfigurator awpConfigurator = field.getAnnotation(AutoWiredPropertyConfigurator.class);
        AperteDoc fieldDoc = field.getAnnotation(AperteDoc.class);
        I18NSource i18NSource = I18NSource.ThreadUtil.getThreadI18nSource();
       
        String fieldDocName = null;
        String fieldDocDescription = null;
       
        if (fieldDoc != null) {
            fieldDocName = i18NSource.getMessage(fieldDoc.humanNameKey());
            fieldDocDescription = i18NSource.getMessage(fieldDoc.descriptionKey());
        }
        if (StringUtils.isEmpty(fieldDocName)) {
          fieldDocName = field.getName();
        }
        if (StringUtils.isEmpty(fieldDocDescription)) {
View Full Code Here

            refreshForm(true);
        }
    }

  private void refreshForm(boolean setCaption) {
    I18NSource messages = I18NSource.ThreadUtil.getThreadI18nSource();
    removeAllComponents();
        VerticalLayout layout = (VerticalLayout) getContent();
   
        if (setCaption) {
          setCaption(classInfo.getDocName());

      layout.addComponent(new Label(classInfo.getDocDescription()));
        }

    List<Property<?>> properties = classInfo.getProperties();
    if (properties == null || properties.size() == 0) {
      layout.addComponent(new Label(messages.getMessage("form.no.parameters.defined")));
    } else {
      propertiesForm = new PropertiesForm();
      propertiesForm.setImmediate(true);
    }
    layout.addComponent(propertiesForm);
View Full Code Here

            if (task.getTaskName().equals(processDeadline.getTaskName())) {
                String assigneeLogin = task.getAssignee();
        Map<String, UserData> notifyUsers = prepareUsersForNotification(ctx, assigneeLogin, processDeadline);

                // everything is good, unless it’s not
        I18NSource messageSource = getI18NSource();
                ProcessStateConfiguration st = ctx.getProcessDefinitionDAO().getProcessStateConfiguration(task);
                String taskName = messageSource.getMessage(st.getDescription());

                for (UserData user : notifyUsers.values()) {
                    if (processDeadline.getSkipAssignee() != null && processDeadline.getSkipAssignee() && user.getLogin().equals(assigneeLogin)) {
                        logger.info("Skipping deadline signal for assignee: " + assigneeLogin);
                        continue;
View Full Code Here

            }
        };
    }

    private I18NSource getDumbI18nSource() {
        return new I18NSource() {

            @Override
            public String getMessage(String key) {
                return key;
            }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.util.i18n.I18NSource$ThreadUtil

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.