Class LocalizedInstantEditorLabelProvider

    • Constructor Detail

      • LocalizedInstantEditorLabelProvider

        public LocalizedInstantEditorLabelProvider()
    • Method Detail

      • canHandle

        public boolean canHandle​(java.lang.String editorType)
        Description copied from interface: InstantEditorLabelProvider
        Method used to determine if label provider is able to convert the value of underlying editor. When deciding which label provider should be used, the first returning true from this method is choosen.
        Parameters:
        editorType - type of underlying editor as returned by Editor.getType()
        Returns:
        if this label provider is able to convert underlying editor's value
      • getLabel

        public java.lang.String getLabel​(java.lang.String editorType,
                                         java.lang.Object value)
        Description copied from interface: InstantEditorLabelProvider
        Method converting passed value to its string representation
        Parameters:
        editorType - type of underlying editor as returned by Editor.getType()
        value - underlying editor's value to convert
        Returns:
        string representation of value
      • extractValueForLocale

        protected java.lang.Object extractValueForLocale​(java.util.Map<java.util.Locale,​java.lang.Object> values,
                                                         java.util.Locale locale)
      • setCockpitLocaleService

        public void setCockpitLocaleService​(CockpitLocaleService cockpitLocaleService)
      • setInstantEditorLabelProviders

        @Autowired
        public void setInstantEditorLabelProviders​(java.util.List<InstantEditorLabelProvider> instantEditorLabelProviders)