Class FieldUtils
- java.lang.Object
-
- docking.widgets.fieldpanel.support.FieldUtils
-
public class FieldUtils extends java.lang.Object
A utility class for working with Field objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
trimString(java.lang.String string)
Trims "goofy" characters off of the given label, like spaces, '[',']', etc.static java.util.List<FieldElement>
wordWrapList(FieldElement fieldElement, int width)
Splits the given FieldElement into sub-elements by wrapping the element on whitespace.static FieldElement[]
wrap(FieldElement fieldElement, int width)
Splits the given FieldElement into sub-elements by wrapping the element on whitespace.static java.util.List<FieldElement>
wrap(java.util.List<FieldElement> fieldElements, int width)
-
-
-
Method Detail
-
wrap
public static java.util.List<FieldElement> wrap(java.util.List<FieldElement> fieldElements, int width)
-
wrap
public static FieldElement[] wrap(FieldElement fieldElement, int width)
Splits the given FieldElement into sub-elements by wrapping the element on whitespace.- Parameters:
fieldElement
- The element to wrapwidth
- The maximum width to allow before wrapping- Returns:
- The wrapped elements
-
wordWrapList
public static java.util.List<FieldElement> wordWrapList(FieldElement fieldElement, int width)
Splits the given FieldElement into sub-elements by wrapping the element on whitespace.- Parameters:
fieldElement
- The element to wrapwidth
- The maximum width to allow before wrapping- Returns:
- The wrapped elements
-
trimString
public static java.lang.String trimString(java.lang.String string)
Trims "goofy" characters off of the given label, like spaces, '[',']', etc.- Parameters:
string
- The string to be trimmed- Returns:
- The trimmed string.
-
-