Class ComponentLocalizationManager

java.lang.Object
ru.cg.webbpm.studio.subsystems.components.localization.ComponentLocalizationManager
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, Disposable, ProjectComponent

@Component public class ComponentLocalizationManager extends Object implements ProjectComponent
Author:
Renat Gilfanov
  • Constructor Details

    • ComponentLocalizationManager

      @Autowired public ComponentLocalizationManager(ProjectManager projectManager, FileManager fileManager)
  • Method Details

    • registerComponentMessageSource

      public static void registerComponentMessageSource(Component component, Path localizationPath)
    • getLocalizedName

      public static Optional<String> getLocalizedName(PageObject pageObject)
      Returns localized name of page object (taken from the prototype)
      Parameters:
      pageObject - page object
      Returns:
      localized name of the page object
    • getLocalizedName

      public static Optional<String> getLocalizedName(Component component)
      Returns localized name of the component (i.e. localized name of its root object)
      Parameters:
      component - component
      Returns:
      localized name of component's root object
    • getLocalizedDescription

      public static Optional<String> getLocalizedDescription(Component component)
      Returns description of the component
      Parameters:
      component - component
      Returns:
      description of the component stored in localization file
    • getEnumLocalizedValue

      public static Optional<String> getEnumLocalizedValue(String enumValueKey)
    • getScriptFieldLocalization

      public static Optional<String> getScriptFieldLocalization(String fieldKey)
    • getFieldLocalizedTooltip

      public static Optional<String> getFieldLocalizedTooltip(String tooltipKey)
    • getEventPropertyLocalizedName

      public static Optional<String> getEventPropertyLocalizedName(String eventPropertyKey)
    • getMethodLocalizedName

      public static Optional<String> getMethodLocalizedName(String methodKey)
    • getScriptLocalizedNameByClassRef

      public static Optional<String> getScriptLocalizedNameByClassRef(ClassRef classRef)
    • getScriptLocalizedTooltipByClassRef

      public static Optional<String> getScriptLocalizedTooltipByClassRef(ClassRef classRef)
    • projectOpened

      public void projectOpened()
      Description copied from interface: ProjectComponent
      вызывается после открытия проекта
      Specified by:
      projectOpened in interface ProjectComponent
    • projectClosed

      public void projectClosed(boolean applicationClosed)
      Description copied from interface: ProjectComponent
      вызывается после закрытия проекта
      Specified by:
      projectClosed in interface ProjectComponent
      Parameters:
      applicationClosed - Проект был закрыт при закрытии приложения