public final class TreeUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeUtils.FilteredTreeModel<E>
Subclass of
AbstractTreeModel that can be used as a filter. |
static interface |
TreeUtils.FilterStringResolver<E>
Used by
TreeUtils.FilteredTreeModel to determine the string representation of a treenode that should be used for
filtering. |
static class |
TreeUtils.MatchMode |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matchCamelCase(String value,
String searchString)
Camelcase string matching.
|
static boolean |
matchFilterString(Object data,
String filterString,
boolean camelCase)
The call is equal to calling
matchFilterString(Object, String, boolean, MatchMode) with match mode set to
TreeUtils.MatchMode.CONTAINS. |
static boolean |
matchFilterString(Object data,
String filterString,
boolean camelCase,
TreeUtils.MatchMode mode)
Checks, if argument data can be represented by argument filterString, i.e.
|
static boolean |
matchFilterStringSimple(String value,
String filterString)
The call is equal to calling
matchFilterStringSimple(String, String, MatchMode) with match mode set to
TreeUtils.MatchMode.CONTAINS. |
static boolean |
matchFilterStringSimple(String value,
String filterString,
TreeUtils.MatchMode mode)
Checks, if argument value starts (case-insensitive) with argument filterString.
|
public static boolean matchCamelCase(String value, String searchString)
value - the string that should be checked.searchString - the "camel-cased" search string.public static boolean matchFilterString(Object data, String filterString, boolean camelCase)
matchFilterString(Object, String, boolean, MatchMode) with match mode set to
TreeUtils.MatchMode.CONTAINS.public static boolean matchFilterString(Object data, String filterString, boolean camelCase, TreeUtils.MatchMode mode)
String, then invokes matchFilterString(Object, String, boolean) and optionally invokes
matchCamelCase(String, String), depending on argument camelCase.public static boolean matchFilterStringSimple(String value, String filterString)
matchFilterStringSimple(String, String, MatchMode) with match mode set to
TreeUtils.MatchMode.CONTAINS.public static boolean matchFilterStringSimple(String value, String filterString, TreeUtils.MatchMode mode)
Copyright © 2018. All rights reserved.