Interface UISettings
- All Known Implementing Classes:
UISettingsBean
public interface UISettings
Provides access to the user interface settings of the Structure Widget. These settings govern various aspects of Structure Widget configuration and behavior.
There's a global default settings collection and they can be tweaked per-user and
possibly per-project. See StructureConfiguration.setUISettings(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.project.Project, com.almworks.jira.structure.api.settings.UISettings)
for mode detail.
A null value is treated as "not set". In most cases when an instance of UISettings
is retrieved from StructureConfiguration, all possible settings will have a value.
"Not set" makes more sense when updating settings, where only the specified settings will be updated.
- Author:
- Igor Sereda
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns true if Structure panel on the issue page should automatically collapse/minimize when the displayed issue is not present in the initially selected structure.Returns auto-switch strategy for the specified page.Returns true if the structure selection should be kept when the user clicks on an issue in the Structure widget.booleanUtility method that is used to check whether this instance does not have any settings set at all.
-
Method Details
-
getAutoSwitchStrategy
Returns auto-switch strategy for the specified page. Auto-switch strategy defines which structure to load at the initial page load.- Parameters:
page- structure page that is being loaded, currently onlyStructurePage.ISSUE_VIEW,StructurePage.PROJECT_TAB,StructurePage.COMPONENT_TABandStructurePage.VERSION_TABmake sense.- Returns:
- auto-switch strategy for the specified page, or
nullif not set
-
getAutoCollapseStructurePanel
Returns true if Structure panel on the issue page should automatically collapse/minimize when the displayed issue is not present in the initially selected structure.- Returns:
- true if structure panel auto-collapse is enabled, or
nullif the settings is unknown
-
isAnythingSet
boolean isAnythingSet()Utility method that is used to check whether this instance does not have any settings set at all.- Returns:
- true if at least one setting is defined
-