Class StyleSettings

java.lang.Object
org.springframework.shell.style.StyleSettings

public abstract class StyleSettings extends Object
Base class defining a settings for styles.
  • Field Details

    • TAG_TITLE

      public static final String TAG_TITLE
      Represents some arbitrary title.
      See Also:
    • TAG_VALUE

      public static final String TAG_VALUE
      Represents some arbitrary value.
      See Also:
    • TAG_LIST_KEY

      public static final String TAG_LIST_KEY
      Styling for keys or names in a lists: : list value1 : list value2
      See Also:
    • TAG_LIST_VALUE

      public static final String TAG_LIST_VALUE
      Styling for keys or names in a lists: list key1 : list key2 :
      See Also:
    • TAG_LEVEL_INFO

      public static final String TAG_LEVEL_INFO
      Styling for some arbitrary content indicating INFO level.
      See Also:
    • TAG_LEVEL_WARN

      public static final String TAG_LEVEL_WARN
      Styling for some arbitrary content indicating WARN level.
      See Also:
    • TAG_LEVEL_ERROR

      public static final String TAG_LEVEL_ERROR
      Styling for some arbitrary content indicating ERROR level.
      See Also:
    • TAG_ITEM_ENABLED

      public static final String TAG_ITEM_ENABLED
      Styling for something i.e. in selectors when item is selectable.
      See Also:
    • TAG_ITEM_DISABLED

      public static final String TAG_ITEM_DISABLED
      Styling for something i.e. in selectors when item can't be selected.
      See Also:
    • TAG_ITEM_SELECTED

      public static final String TAG_ITEM_SELECTED
      Styling for something i.e. in selectors when item is selected.
      See Also:
    • TAG_ITEM_UNSELECTED

      public static final String TAG_ITEM_UNSELECTED
      Styling for something i.e. in selectors when item is not selected.
      See Also:
    • TAG_ITEM_SELECTOR

      public static final String TAG_ITEM_SELECTOR
      Styling for selector i.e. arrow in selectors.
      See Also:
    • TAG_HIGHLIGHT

      public static final String TAG_HIGHLIGHT
      Styling for something which is highlighted.
      See Also:
  • Constructor Details

    • StyleSettings

      public StyleSettings()
  • Method Details

    • title

      public String title()
    • value

      public String value()
    • listKey

      public String listKey()
    • listValue

      public String listValue()
    • listLevelInfo

      public String listLevelInfo()
    • listLevelWarn

      public String listLevelWarn()
    • listLevelError

      public String listLevelError()
    • itemEnabled

      public String itemEnabled()
    • itemDisabled

      public String itemDisabled()
    • itemSelected

      public String itemSelected()
    • itemUnselected

      public String itemUnselected()
    • itemSelector

      public String itemSelector()
    • highlight

      public String highlight()
    • resolveTag

      public String resolveTag(String tag)
      Resolve a theme setting from a given tag.
      Parameters:
      tag - the tag
      Returns:
      a theme setting
    • defaults

      public static StyleSettings defaults()
      Creates an instance of a default settings.
      Returns:
      a default theme settings
    • dump

      public static StyleSettings dump()
    • tags

      public static String[] tags()
      Gets all tags.
      Returns:
      array of all tags