Uses of Interface
ca.odell.glazedlists.FunctionList.Function
-
Packages that use FunctionList.Function Package Description ca.odell.glazedlists ca.odell.glazedlists.matchers Implementations and classes useful for creating implementations ofMatcherEditor
/Matchers
for use withFilterLists
.ca.odell.glazedlists.swing -
-
Uses of FunctionList.Function in ca.odell.glazedlists
Subinterfaces of FunctionList.Function in ca.odell.glazedlists Modifier and Type Interface Description static interface
FunctionList.AdvancedFunction<A,B>
An AdvancedFunction is an extension of the simple Function interface which provides more hooks in the lifecycle of the transformation of a source element.Methods in ca.odell.glazedlists that return FunctionList.Function Modifier and Type Method Description static <E,V>
FunctionList.Function<E,V>GlazedLists. beanFunction(java.lang.Class<E> beanClass, java.lang.String propertyName)
Get aFunctionList.Function
that extracts the property with the givenpropertyName
from objects of the givenbeanClass
.static <E,V>
FunctionList.Function<E,V>GlazedLists. constantFunction(V value)
Get aFunctionList.Function
that always returns the givenvalue
, regardless of its input.FunctionList.Function<S,E>
FunctionList. getForwardFunction()
Returns theFunctionList.Function
which maps source elements to elements stored within thisFunctionList
.FunctionList.Function<E,S>
FunctionList. getReverseFunction()
Returns theFunctionList.Function
which maps elements stored within thisFunctionList
back to elements within the source list ornull
if no suchFunctionList.Function
was specified.static <E> FunctionList.Function<E,java.lang.String>
GlazedLists. toStringFunction(java.lang.Class<E> beanClass, java.lang.String propertyName)
Get aFunctionList.Function
that extracts the property with the givenpropertyName
from objects of the givenbeanClass
and then formats the return value as a String.Methods in ca.odell.glazedlists with parameters of type FunctionList.Function Modifier and Type Method Description void
FunctionList. setForwardFunction(FunctionList.Function<S,E> forward)
Changes theFunctionList.Function
that evaluates source elements to produce mapped elements.void
FunctionList. setReverseFunction(FunctionList.Function<E,S> reverse)
Changes theFunctionList.Function
that evaluates FunctionList elements to produce the original source element with which it corresponds.static <K,V>
DisposableMap<K,V>GlazedLists. syncEventListToMap(EventList<V> source, FunctionList.Function<V,K> keyMaker)
Synchronize the specifiedEventList
to a Map that is returned from this method.static <K extends java.lang.Comparable,V>
DisposableMap<K,java.util.List<V>>GlazedLists. syncEventListToMultiMap(EventList<V> source, FunctionList.Function<V,? extends K> keyMaker)
Synchronize the specifiedEventList
to a MultiMap that is returned from this method.static <K,V>
DisposableMap<K,java.util.List<V>>GlazedLists. syncEventListToMultiMap(EventList<V> source, FunctionList.Function<V,? extends K> keyMaker, java.util.Comparator<? super K> keyGrouper)
Synchronize the specifiedEventList
to a MultiMap that is returned from this method.static <S,E>
TransformedList<S,E>GlazedLists. transformByFunction(EventList<S> source, FunctionList.Function<S,E> function)
Returns aTransformedList
that maps each element of the source list to a target element by use of a specifiedFunctionList.Function
.Constructors in ca.odell.glazedlists with parameters of type FunctionList.Function Constructor Description FunctionList(EventList<S> source, FunctionList.Function<S,E> forward)
Construct aFunctionList
which stores the result of transforming each source element using the given forwardFunctionList.Function
.FunctionList(EventList<S> source, FunctionList.Function<S,E> forward, FunctionList.Function<E,S> reverse)
Construct aFunctionList
which stores the result of transforming each source element using the given forwardFunctionList.Function
. -
Uses of FunctionList.Function in ca.odell.glazedlists.matchers
Constructors in ca.odell.glazedlists.matchers with parameters of type FunctionList.Function Constructor Description ThresholdMatcherEditor(T threshold, ca.odell.glazedlists.matchers.ThresholdMatcherEditor.MatchOperation operation, java.util.Comparator<T> comparator, FunctionList.Function<E,T> function)
Construct an instance. -
Uses of FunctionList.Function in ca.odell.glazedlists.swing
Methods in ca.odell.glazedlists.swing with parameters of type FunctionList.Function Modifier and Type Method Description static <E> UndoSupport
UndoSupport. install(javax.swing.undo.UndoManager undoManager, EventList<E> source, FunctionList.Function<UndoRedoSupport.Edit,javax.swing.undo.UndoableEdit> editAdapter)
Installs support for undoing/redoing edits on the givensource
.
-