Class GenericLabelProvider

    • Constructor Detail

      • GenericLabelProvider

        public GenericLabelProvider​(java.util.List<PropertyDescriptor> propertyDescriptors)
    • Method Detail

      • getPropertyDescriptors

        public java.util.List<PropertyDescriptor> getPropertyDescriptors()
      • getLabel

        public java.lang.String getLabel​(TypedObject typeObject,
                                         java.lang.String languageIso)
        Description copied from interface: ObjectLabelProvider
        get label value as a String for a given TypeObject and chosen language
        Specified by:
        getLabel in interface ObjectLabelProvider
        languageIso - iso code of language that label should be display in
        Returns:
        label for a given typedObject in given language
      • getDescription

        public java.lang.String getDescription​(TypedObject object,
                                               java.lang.String languageIso)
        Description copied from interface: ObjectLabelProvider
        get text description for a given TypeObject
        Specified by:
        getDescription in interface ObjectLabelProvider
        languageIso - iso code of language that description should be display in
        Returns:
        description for a given typedObject in given language
      • getIconPath

        public java.lang.String getIconPath​(TypedObject object,
                                            java.lang.String languageIso)
        Description copied from interface: ObjectLabelProvider
        get icon path as a String for a given TypeObject
        Specified by:
        getIconPath in interface ObjectLabelProvider
        languageIso - iso code of language that icon should be related to
        Returns:
        path to a image connected with given typedObject for a given language