Package com.tonic.vellum.widget
Class ScrollSection
- java.lang.Object
-
- com.tonic.vellum.Section
-
- com.tonic.vellum.widget.ScrollSection
-
- Direct Known Subclasses:
LogSection
public class ScrollSection extends Section
-
-
Constructor Summary
Constructors Constructor Description ScrollSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScrollSectionfollowTail(boolean follow)intlineCount()ScrollSectionmaxLines(int max)intscrollTop()ScrollSectionsetLines(java.util.List<java.lang.String> newLines)ScrollSectionsetLines(java.util.List<java.lang.String> newLines, java.util.List<Style> newStyles)Replaces all lines, styling each with the style at the same index; a null style uses the section style.ScrollSectionstyle(Style style)ScrollSectionwrap(boolean wrap)
-
-
-
Method Detail
-
maxLines
public ScrollSection maxLines(int max)
-
followTail
public ScrollSection followTail(boolean follow)
-
wrap
public ScrollSection wrap(boolean wrap)
-
style
public ScrollSection style(Style style)
-
setLines
public ScrollSection setLines(java.util.List<java.lang.String> newLines)
-
setLines
public ScrollSection setLines(java.util.List<java.lang.String> newLines, java.util.List<Style> newStyles)
Replaces all lines, styling each with the style at the same index; a null style uses the section style.- Parameters:
newLines- the lines to shownewStyles- one style per line, or null entries for the default- Returns:
- this section
- Throws:
java.lang.IllegalArgumentException- if the lists differ in size
-
lineCount
public int lineCount()
-
scrollTop
public int scrollTop()
-
-