Package org.jboss.hal.core.finder
Class FinderPath
- java.lang.Object
-
- org.jboss.hal.core.finder.FinderPath
-
- All Implemented Interfaces:
Iterable<FinderSegment<?>>
public class FinderPath extends Object implements Iterable<FinderSegment<?>>
The finder path holds the current selection in the finder. It's a collection of segments with each segment holding four values:columnIdThe column id. Used to lookup columns from the column registryitemIdThe selected item idcolumnTitleThe title of the column used in the UI. If not specified defaults tocolumnIditemTitleThe title of the selected item used in the UI. If not specified defaults toitemId
-
-
Constructor Summary
Constructors Constructor Description FinderPath()FinderPath(List<FinderSegment<?>> segments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FinderPathappend(String columnId, String itemId)FinderPathappend(String columnId, String itemId, String columnTitle, String itemTitle)<T> FinderPathappend(FinderColumn<T> finderColumn)voidclear()FinderPathcopy()FinderSegment<?>findColumn(String columnId)FinderSegment<?>findColumn(Predicate<String> condition)FinderSegment<?>findItem(String itemId)FinderSegment<?>findItem(Predicate<String> condition)static FinderPathfrom(String path)booleanisEmpty()Iterator<FinderSegment<?>>iterator()intsize()StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
FinderPath
public FinderPath()
-
FinderPath
public FinderPath(List<FinderSegment<?>> segments)
-
-
Method Detail
-
from
public static FinderPath from(String path)
-
append
public FinderPath append(String columnId, String itemId)
-
append
public FinderPath append(String columnId, String itemId, String columnTitle, String itemTitle)
-
append
public <T> FinderPath append(FinderColumn<T> finderColumn)
-
iterator
public Iterator<FinderSegment<?>> iterator()
- Specified by:
iteratorin interfaceIterable<FinderSegment<?>>
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
clear
public void clear()
-
copy
public FinderPath copy()
-
findColumn
public FinderSegment<?> findColumn(String columnId)
-
findColumn
public FinderSegment<?> findColumn(Predicate<String> condition)
-
findItem
public FinderSegment<?> findItem(String itemId)
-
findItem
public FinderSegment<?> findItem(Predicate<String> condition)
-
-