Class PrettyPrintTreeKt
-
- All Implemented Interfaces:
public final class PrettyPrintTreeKt
-
-
Field Summary
Fields Modifier and Type Field Description private static BooleanprettyPrintUseAsciiprivate static Function2<Component, LinkedList<String>, Unit>prettyStringHookprivate static Set<String>dontDumpAttributes
-
Method Summary
Modifier and Type Method Description BooleangetPrettyPrintUseAscii()If true, PrettyPrintTree will use \--instead of└──which tend to render on some terminals as???.voidsetPrettyPrintUseAscii(Boolean prettyPrintUseAscii)If true, PrettyPrintTree will use \--instead of└──which tend to render on some terminals as???.Function2<Component, LinkedList<String>, Unit>getPrettyStringHook()Invoked by toPrettyString to add additional properties for your custom component. voidsetPrettyStringHook(Function2<Component, LinkedList<String>, Unit> prettyStringHook)Invoked by toPrettyString to add additional properties for your custom component. Set<String>getDontDumpAttributes()Never dump these attributes in toPrettyString. voidsetDontDumpAttributes(Set<String> dontDumpAttributes)Never dump these attributes in toPrettyString. final static StringtoPrettyTree(Component $self)final static StringtoPrettyString(Component $self)Returns the most basic properties of the component, formatted as a concise string: The component class
The Component.getId
Whether the component is Component.isVisible
Whether it is a HasValue that is read-only
the styles
The Component.label and text
The HasValue.getValue
-
-
Method Detail
-
getPrettyPrintUseAscii
Boolean getPrettyPrintUseAscii()
If true, PrettyPrintTree will use
\--instead of└──which tend to render on some terminals as???.
-
setPrettyPrintUseAscii
void setPrettyPrintUseAscii(Boolean prettyPrintUseAscii)
If true, PrettyPrintTree will use
\--instead of└──which tend to render on some terminals as???.
-
getPrettyStringHook
Function2<Component, LinkedList<String>, Unit> getPrettyStringHook()
Invoked by toPrettyString to add additional properties for your custom component. Add additional properties to the
listprovided, e.g.list.add("icon='$icon'").By default does nothing.
-
setPrettyStringHook
void setPrettyStringHook(Function2<Component, LinkedList<String>, Unit> prettyStringHook)
Invoked by toPrettyString to add additional properties for your custom component. Add additional properties to the
listprovided, e.g.list.add("icon='$icon'").By default does nothing.
-
getDontDumpAttributes
Set<String> getDontDumpAttributes()
Never dump these attributes in toPrettyString. By default these attributes are ignored:
disabled- dumped separately as "DISABLED" string.id- dumped as Component.idhref- there's special processing for Anchor._href.
-
setDontDumpAttributes
void setDontDumpAttributes(Set<String> dontDumpAttributes)
Never dump these attributes in toPrettyString. By default these attributes are ignored:
disabled- dumped separately as "DISABLED" string.id- dumped as Component.idhref- there's special processing for Anchor._href.
-
toPrettyTree
final static String toPrettyTree(Component $self)
-
toPrettyString
final static String toPrettyString(Component $self)
Returns the most basic properties of the component, formatted as a concise string:
The component class
The Component.getId
Whether the component is Component.isVisible
Whether it is a HasValue that is read-only
the styles
The Component.label and text
The HasValue.getValue
-
-
-