Class PrettyPrintTreeKt

    • Constructor Detail

    • Method Detail

      • getPrettyStringHook

         Function2<Component, LinkedList<String>, Unit> getPrettyStringHook()

        Invoked by toPrettyString to add additional properties for your custom component. Add additional properties to the list provided, 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 list provided, 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.id

        • href - 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.id

        • href - there's special processing for Anchor._href.