Package | Description |
---|---|
ca.odell.glazedlists | |
ca.odell.glazedlists.matchers |
Implementations and classes useful for creating implementations of
MatcherEditor /Matchers
for use with FilterLists . |
ca.odell.glazedlists.swing |
Modifier and Type | Interface and 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.
|
Modifier and Type | Method and Description |
---|---|
static <E,V> FunctionList.Function<E,V> |
GlazedLists.beanFunction(java.lang.Class<E> beanClass,
java.lang.String propertyName)
Get a
FunctionList.Function that extracts the property with the
given propertyName from objects of the given
beanClass . |
static <E,V> FunctionList.Function<E,V> |
GlazedLists.constantFunction(V value)
Get a
FunctionList.Function that always returns the given
value , regardless of its input. |
FunctionList.Function<S,E> |
FunctionList.getForwardFunction()
Returns the
FunctionList.Function which maps source elements to elements
stored within this FunctionList . |
FunctionList.Function<E,S> |
FunctionList.getReverseFunction()
Returns the
FunctionList.Function which maps elements stored within this
FunctionList back to elements within the source list or
null if no such FunctionList.Function was specified. |
static <E> FunctionList.Function<E,java.lang.String> |
GlazedLists.toStringFunction(java.lang.Class<E> beanClass,
java.lang.String propertyName)
Get a
FunctionList.Function that extracts the property with the
given propertyName from objects of the given
beanClass and then formats the return value as a String. |
Modifier and Type | Method and Description |
---|---|
void |
FunctionList.setForwardFunction(FunctionList.Function<S,E> forward)
Changes the
FunctionList.Function that evaluates source elements to produce
mapped elements. |
void |
FunctionList.setReverseFunction(FunctionList.Function<E,S> reverse)
Changes the
FunctionList.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 specified
EventList to a Map that is returned
from this method. |
static <K extends java.lang.Comparable,V> |
GlazedLists.syncEventListToMultiMap(EventList<V> source,
FunctionList.Function<V,? extends K> keyMaker)
Synchronize the specified
EventList 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 specified
EventList 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 a
TransformedList that maps each element of the source list to a target
element by use of a specified FunctionList.Function . |
Constructor and Description |
---|
FunctionList(EventList<S> source,
FunctionList.Function<S,E> forward)
Construct a
FunctionList which stores the result of transforming
each source element using the given forward FunctionList.Function . |
FunctionList(EventList<S> source,
FunctionList.Function<S,E> forward,
FunctionList.Function<E,S> reverse)
Construct a
FunctionList which stores the result of transforming
each source element using the given forward FunctionList.Function . |
FunctionList(EventList<S> source,
FunctionList.Function<S,E> forward,
FunctionList.Function<E,S> reverse)
Construct a
FunctionList which stores the result of transforming
each source element using the given forward FunctionList.Function . |
Constructor and Description |
---|
ThresholdMatcherEditor(T threshold,
ca.odell.glazedlists.matchers.ThresholdMatcherEditor.MatchOperation operation,
java.util.Comparator<T> comparator,
FunctionList.Function<E,T> function)
Construct an instance.
|
Modifier and Type | Method and 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 given
source . |
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by buildd at 2013-07-05 5:17