Package org.springframework.shell.style
Class StyleSettings
java.lang.Object
org.springframework.shell.style.StyleSettings
Base class defining a settings for styles.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Styling for something which is highlighted.static final String
Styling for something i.e.static final String
Styling for something i.e.static final String
Styling for something i.e.static final String
Styling for selector i.e.static final String
Styling for something i.e.static final String
Styling for some arbitrary content indicatingERROR
level.static final String
Styling for some arbitrary content indicatingINFO
level.static final String
Styling for some arbitrary content indicatingWARN
level.static final String
Styling for keys or names in a lists:- : list value1
- : list value2
static final String
Styling for keys or names in a lists: list key1 :-
list key2 :
static final String
Represents some arbitrarytitle
.static final String
Represents some arbitraryvalue
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StyleSettings
defaults()
Creates an instance of a default settings.static StyleSettings
dump()
listKey()
resolveTag
(String tag) Resolve a theme setting from a given tag.static String[]
tags()
Gets all tags.title()
value()
-
Field Details
-
TAG_TITLE
Represents some arbitrarytitle
.- See Also:
-
TAG_VALUE
Represents some arbitraryvalue
.- See Also:
-
TAG_LIST_KEY
Styling for keys or names in a lists:- : list value1
- : list value2
- See Also:
-
TAG_LIST_VALUE
Styling for keys or names in a lists: list key1 :-
list key2 :
- See Also:
-
TAG_LEVEL_INFO
Styling for some arbitrary content indicatingINFO
level.- See Also:
-
TAG_LEVEL_WARN
Styling for some arbitrary content indicatingWARN
level.- See Also:
-
TAG_LEVEL_ERROR
Styling for some arbitrary content indicatingERROR
level.- See Also:
-
TAG_ITEM_ENABLED
Styling for something i.e. in selectors when item is selectable.- See Also:
-
TAG_ITEM_DISABLED
Styling for something i.e. in selectors when item can't be selected.- See Also:
-
TAG_ITEM_SELECTED
Styling for something i.e. in selectors when item is selected.- See Also:
-
TAG_ITEM_UNSELECTED
Styling for something i.e. in selectors when item is not selected.- See Also:
-
TAG_ITEM_SELECTOR
Styling for selector i.e. arrow in selectors.- See Also:
-
TAG_HIGHLIGHT
Styling for something which is highlighted.- See Also:
-
-
Constructor Details
-
StyleSettings
public StyleSettings()
-
-
Method Details
-
title
-
value
-
listKey
-
listValue
-
listLevelInfo
-
listLevelWarn
-
listLevelError
-
itemEnabled
-
itemDisabled
-
itemSelected
-
itemUnselected
-
itemSelector
-
highlight
-
resolveTag
Resolve a theme setting from a given tag.- Parameters:
tag
- the tag- Returns:
- a theme setting
-
defaults
Creates an instance of a default settings.- Returns:
- a default theme settings
-
dump
-
tags
Gets all tags.- Returns:
- array of all tags
-