public final class XsltHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
split(String text,
int maxChars,
int line,
boolean isLastLine)
Splits a string into several lines, depending on the maximum allowed characters per line and returns the desired
line.
|
public static String split(String text, int maxChars, int line, boolean isLastLine)
text - Text to split upmaxChars - maximum allowed characters per lineline - line number to return (starting by 1)isLastLine - whether this is the last line used to represent the string. If so, the string will be abbreviated using
ellipsis in case the text cannot be represented by the given number of linesCopyright © 2009–2020 Opencast Project. All rights reserved.