Class ComponentLocalizationManager
java.lang.Object
ru.cg.webbpm.studio.subsystems.components.localization.ComponentLocalizationManager
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,Disposable
,ProjectComponent
- Author:
- Renat Gilfanov
-
Constructor Summary
ConstructorsConstructorDescriptionComponentLocalizationManager
(ProjectManager projectManager, FileManager fileManager) -
Method Summary
Modifier and TypeMethodDescriptiongetEnumLocalizedValue
(String enumValueKey) getEventPropertyLocalizedName
(String eventPropertyKey) getFieldLocalizedTooltip
(String tooltipKey) getLocalizedDescription
(Component component) Returns description of the componentgetLocalizedName
(Component component) Returns localized name of the component (i.e. localized name of its root object)getLocalizedName
(PageObject pageObject) Returns localized name of page object (taken from the prototype)getMethodLocalizedName
(String methodKey) getScriptFieldLocalization
(String fieldKey) getScriptLocalizedNameByClassRef
(ClassRef classRef) getScriptLocalizedTooltipByClassRef
(ClassRef classRef) void
projectClosed
(boolean applicationClosed) вызывается после закрытия проектаvoid
вызывается после открытия проектаstatic void
registerComponentMessageSource
(Component component, Path localizationPath) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.core.api.components.Disposable
destroy, dispose
Methods inherited from interface ru.cg.webbpm.studio.core.api.components.ProjectComponent
canCloseProject, weight
-
Constructor Details
-
ComponentLocalizationManager
@Autowired public ComponentLocalizationManager(ProjectManager projectManager, FileManager fileManager)
-
-
Method Details
-
registerComponentMessageSource
-
getLocalizedName
Returns localized name of page object (taken from the prototype)- Parameters:
pageObject
- page object- Returns:
- localized name of the page object
-
getLocalizedName
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
Returns description of the component- Parameters:
component
- component- Returns:
- description of the component stored in localization file
-
getEnumLocalizedValue
-
getScriptFieldLocalization
-
getFieldLocalizedTooltip
-
getEventPropertyLocalizedName
-
getMethodLocalizedName
-
getScriptLocalizedNameByClassRef
-
getScriptLocalizedTooltipByClassRef
-
projectOpened
public void projectOpened()Description copied from interface:ProjectComponent
вызывается после открытия проекта- Specified by:
projectOpened
in interfaceProjectComponent
-
projectClosed
public void projectClosed(boolean applicationClosed) Description copied from interface:ProjectComponent
вызывается после закрытия проекта- Specified by:
projectClosed
in interfaceProjectComponent
- Parameters:
applicationClosed
- Проект был закрыт при закрытии приложения
-