public class DefaultTreeFormat extends DefaultFormatBase<net.thevpc.nuts.NutsTreeFormat> implements net.thevpc.nuts.NutsTreeFormat
| Modifier and Type | Field and Description |
|---|---|
static net.thevpc.nuts.NutsTreeLinkFormat |
LINK_ASCII_FORMATTER |
static net.thevpc.nuts.NutsTreeLinkFormat |
LINK_SPACE_FORMATTER |
static net.thevpc.nuts.NutsTreeLinkFormat |
LINK_UNICODE_FORMATTER |
net.thevpc.nuts.NutsTreeNodeFormat |
TO_STRING_FORMATTER |
| Constructor and Description |
|---|
DefaultTreeFormat(net.thevpc.nuts.NutsWorkspace ws) |
DefaultTreeFormat(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsTreeModel tree) |
DefaultTreeFormat(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsTreeModel tree,
net.thevpc.nuts.NutsTreeNodeFormat formatter,
net.thevpc.nuts.NutsTreeLinkFormat linkFormatter) |
| Modifier and Type | Method and Description |
|---|---|
DefaultTreeFormat |
addMultilineProperty(String property,
String separator) |
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine) |
net.thevpc.nuts.NutsTreeLinkFormat |
getLinkFormat() |
net.thevpc.nuts.NutsTreeModel |
getModel() |
net.thevpc.nuts.NutsTreeNodeFormat |
getNodeFormat() |
Object |
getValue() |
boolean |
isEffectiveOmitRoot() |
boolean |
isOmitRoot() |
void |
print(net.thevpc.nuts.NutsPrintStream out) |
DefaultTreeFormat |
setLinkFormat(net.thevpc.nuts.NutsTreeLinkFormat linkFormatter) |
DefaultTreeFormat |
setNodeFormat(net.thevpc.nuts.NutsTreeNodeFormat formatter) |
void |
setOmitRoot(boolean hideRoot) |
DefaultTreeFormat |
setValue(Object value) |
String |
toString() |
format, getValidPrintStream, getValidPrintStream, print, print, print, print, print, print, println, println, println, println, println, println, printlncheckSession, configure, configure, getName, getSession, getWorkspace, isNtf, setNtf, setSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final net.thevpc.nuts.NutsTreeLinkFormat LINK_ASCII_FORMATTER
public static final net.thevpc.nuts.NutsTreeLinkFormat LINK_SPACE_FORMATTER
public static final net.thevpc.nuts.NutsTreeLinkFormat LINK_UNICODE_FORMATTER
public final net.thevpc.nuts.NutsTreeNodeFormat TO_STRING_FORMATTER
public DefaultTreeFormat(net.thevpc.nuts.NutsWorkspace ws)
public DefaultTreeFormat(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsTreeModel tree)
public DefaultTreeFormat(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsTreeModel tree,
net.thevpc.nuts.NutsTreeNodeFormat formatter,
net.thevpc.nuts.NutsTreeLinkFormat linkFormatter)
public net.thevpc.nuts.NutsTreeNodeFormat getNodeFormat()
getNodeFormat in interface net.thevpc.nuts.NutsTreeFormatpublic DefaultTreeFormat setNodeFormat(net.thevpc.nuts.NutsTreeNodeFormat formatter)
setNodeFormat in interface net.thevpc.nuts.NutsTreeFormatpublic net.thevpc.nuts.NutsTreeLinkFormat getLinkFormat()
getLinkFormat in interface net.thevpc.nuts.NutsTreeFormatpublic DefaultTreeFormat setLinkFormat(net.thevpc.nuts.NutsTreeLinkFormat linkFormatter)
setLinkFormat in interface net.thevpc.nuts.NutsTreeFormatpublic net.thevpc.nuts.NutsTreeModel getModel()
getModel in interface net.thevpc.nuts.NutsTreeFormatpublic DefaultTreeFormat setValue(Object value)
setValue in interface net.thevpc.nuts.NutsObjectFormatsetValue in interface net.thevpc.nuts.NutsTreeFormatpublic boolean isEffectiveOmitRoot()
public boolean isOmitRoot()
public void setOmitRoot(boolean hideRoot)
public String toString()
toString in interface net.thevpc.nuts.NutsFormattoString in class DefaultFormatBase<net.thevpc.nuts.NutsTreeFormat>public void print(net.thevpc.nuts.NutsPrintStream out)
print in interface net.thevpc.nuts.NutsFormatprint in class DefaultFormatBase<net.thevpc.nuts.NutsTreeFormat>public boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic Object getValue()
getValue in interface net.thevpc.nuts.NutsObjectFormatpublic DefaultTreeFormat addMultilineProperty(String property, String separator)
Copyright © 2021 vpc open source initiative. All rights reserved.