Package org.jline.style
Annotation Interface StyleBundle.StyleName
- Enclosing interface:
StyleBundle
Annotation that allows overriding the style name for a method in a StyleBundle interface.
By default, the style name used for a method is the method name itself.
This annotation allows specifying a different name to use when looking up
styles in a StyleSource
.
Example:
@StyleBundle.StyleGroup("mygroup") interface MyStyles extends StyleBundle { @StyleBundle.StyleName("error-style") @StyleBundle.DefaultStyle("bold,fg:red") AttributedString error(String message); }
In this example, the style name "error-style" will be used instead of "error" when looking up the style in the style source.
-
Required Element Summary
Required Elements
-
Element Details
-
value
String value
-