java.lang.Object
org.autogui.base.mapping.GuiRepresentation.TreeStringComposite
- All Implemented Interfaces:
GuiRepresentation.TreeString
- Enclosing interface:
GuiRepresentation
public static class GuiRepresentation.TreeStringComposite
extends Object
implements GuiRepresentation.TreeString
a node impl. of
GuiRepresentation.TreeString
- Since:
- 1.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<GuiRepresentation.TreeString> sub-nodesprotected boolean
the flag for the sub-nodes has a node of lines=trueprotected boolean
the flag for joining children by new-lines: will happen only the top line of upper nodes -
Constructor Summary
ConstructorsConstructorDescriptionTreeStringComposite
(List<GuiRepresentation.TreeString> children, boolean lines) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.autogui.base.mapping.GuiRepresentation.TreeString
toColumns
-
Field Details
-
children
sub-nodes -
lines
protected boolean linesthe flag for joining children by new-lines: will happen only the top line of upper nodes -
hasLines
protected boolean hasLinesthe flag for the sub-nodes has a node of lines=true
-
-
Constructor Details
-
TreeStringComposite
-
-
Method Details
-
hasLine
public boolean hasLine()- Specified by:
hasLine
in interfaceGuiRepresentation.TreeString
- Returns:
- true if the tree contains a line-seaprated item
-
collect
- Specified by:
collect
in interfaceGuiRepresentation.TreeString
- Parameters:
cols
- the list for appending elements
-
toLines
- Specified by:
toLines
in interfaceGuiRepresentation.TreeString
- Parameters:
underLine
- if the upper call has a lines=true node- Returns:
- joins sub-items as lines
-
toString
-