Interface I18nDecoratorDefinition

    • Method Detail

      • accept

        boolean accept​(io.ultreia.java4all.decoration.Decorator decorator)
        Parameters:
        decorator - decorator to inspect
        Returns:
        true if it accept to deal with with decorator.
      • getDecoratorType

        Class<?> getDecoratorType​(io.ultreia.java4all.decoration.Decorator decorator)
        Parameters:
        decorator - decorator to inspect
        Returns:
        the type used by I18n to decorate properties, might be different of the DecoratorDefinition.type()...
      • computeLabels

        default LinkedHashMap<String,​String> computeLabels​(io.ultreia.java4all.decoration.Decorator decorator,
                                                                 io.ultreia.java4all.i18n.spi.bean.BeanPropertyI18nKeyProducer labelsBuilder)
        Build the properties labels for a decorator.
        Parameters:
        decorator - decorator to inspect
        labelsBuilder - the labels builder used tyo compute labels.
        Returns:
        the dictionary of labels (keys are property names, values are properties labels)