Package | Description |
---|---|
ca.odell.glazedlists | |
ca.odell.glazedlists.event | |
ca.odell.glazedlists.io | |
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 | Class and Description |
---|---|
class |
AbstractEventList<E>
A convenience class that implements common functionality for all
EventList s. |
class |
BasicEventList<E>
|
class |
CollectionList<S,E>
A list that acts like a tree in that it contains child elements to nodes
contained in another list.
|
class |
CompositeList<E>
|
class |
DebugList<E>
DebugList is meant to be used as a drop-in replacement for
BasicEventList at the root of pipelines of EventList s during
development. |
class |
FilterList<E>
|
class |
FreezableList<E>
|
class |
FunctionList<S,E>
This List is meant to simplify the task of transforming each element of a
source list to an element stored at the same index in this FunctionList.
|
class |
GroupingList<E>
A grouping list contains elements which are themselves Lists.
|
class |
ObservableElementList<E>
A list that fires update events whenever elements are modified in place.
|
class |
PluggableList<E>
An
EventList which delegates all List methods to a given source
EventList that may be replaced at runtime using
PluggableList.setSource(EventList) . |
class |
PopularityList<E>
|
class |
RangeList<E>
|
class |
SeparatorList<E>
A list that adds separator objects before each group of elements.
|
class |
SequenceList<E>
A SequenceList contains values in adjacent indices which occur at predictable
intervals from each other.
|
class |
SortedList<E>
|
class |
ThresholdList<E>
|
class |
TransactionList<E>
A list transformation that presents traditional transaction semantics.
|
class |
TransformedList<S,E>
|
class |
UniqueList<E>
|
Modifier and Type | Field and Description |
---|---|
protected EventList<S> |
TransformedList.source
the event list to transform
|
Modifier and Type | Method and Description |
---|---|
<E> EventList<E> |
CompositeList.createMemberList()
Creates a new
EventList that shares its ReadWriteLock and
ListEventPublisher with this CompositeList . |
EventList<E> |
PluggableList.createSourceList()
Creates a new
EventList that shares its
ReadWriteLock and
ListEventPublisher with this
PluggableList . |
static <E> EventList<E> |
GlazedLists.eventList(java.util.Collection<? extends E> contents)
Creates a new
EventList which contains the contents of the specified
Collection . |
static <E> EventList<E> |
GlazedLists.eventList(ListEventPublisher publisher,
ReadWriteLock lock,
java.util.Collection<? extends E> contents)
Creates a new
EventList with the given ListEventPublisher and
ReadWriteLock which contains the contents of the specified
Collection . |
static <E> EventList<E> |
GlazedLists.eventListOf(E... contents)
Creates a new
EventList which contains the given elements. |
static <E> EventList<E> |
GlazedLists.eventListOf(ListEventPublisher publisher,
ReadWriteLock lock,
E... contents)
Creates a new
EventList with the given ListEventPublisher and
ReadWriteLock which contains the given elements. |
EventList<E> |
ListSelection.getDeselected()
Gets an
EventList that contains only deselected values add
modifies the source list on mutation. |
EventList<E> |
ListSelection.getSelected()
Gets an
EventList that contains only selected values and modifies
the source list on mutation. |
EventList<E> |
ListSelection.getSource()
Get the
EventList that selection is being managed for. |
EventList<E> |
ListSelection.getTogglingDeselected()
Gets an
EventList that contains only deselected values and
modifies the selection state on mutation. |
EventList<E> |
ListSelection.getTogglingSelected()
Gets an
EventList that contains only selected values and modifies
the selection state on mutation. |
Modifier and Type | Method and Description |
---|---|
void |
CompositeList.addMemberList(EventList<E> member)
Adds the specified
EventList as a source to this CompositeList . |
static <E extends java.lang.Comparable<? super E>> |
UniqueList.create(EventList<E> source)
Creates a
UniqueList that determines uniqueness via the
Comparable interface. |
static <E extends java.lang.Comparable<? super E>> |
PopularityList.create(EventList<E> source)
Creates a new
PopularityList that provides frequency-ranking
for the specified EventList . |
static <E extends java.lang.Comparable<? super E>> |
SortedList.create(EventList<E> source)
Creates a
SortedList that sorts the specified EventList . |
static <E extends java.lang.Comparable<? super E>> |
GroupingList.create(EventList<E> source)
Creates a
GroupingList that determines groupings via the
Comparable interface which all elements of the source
are assumed to implement. |
static <E> UndoRedoSupport |
UndoRedoSupport.install(EventList<E> source)
Installs support for undoing and redoing changes to the given
source . |
static <E> TransformedList<E,E> |
GlazedLists.readOnlyList(EventList<? extends E> source)
Wraps the source in an
EventList that does not allow writing operations. |
void |
CompositeList.removeMemberList(EventList<E> list)
|
static <E> void |
GlazedLists.replaceAll(EventList<E> target,
java.util.List<E> source,
boolean updates)
|
static <E> void |
GlazedLists.replaceAll(EventList<E> target,
java.util.List<E> source,
boolean updates,
java.util.Comparator<E> comparator)
Overloaded version of
GlazedLists.replaceAll(EventList,List,boolean) that uses
a Comparator to determine equality rather than
equals() . |
static <E> void |
GlazedLists.replaceAllSorted(EventList<E> target,
java.util.Collection<E> source,
boolean updates,
java.util.Comparator<E> comparator)
Replace the complete contents of the target
EventList with the complete
contents of the source Collection while making as few list changes
as possible. |
void |
PluggableList.setSource(EventList<E> source)
Sets the source EventList to which this PluggableList will delegate all
calls.
|
static <E> ListEventListener<E> |
GlazedLists.syncEventListToList(EventList<E> source,
java.util.List<E> target)
Synchronize the specified
EventList to the specified List . |
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 <E> TransformedList<E,E> |
GlazedLists.threadSafeList(EventList<? extends E> source)
Wraps the source in an
EventList that obtains a
ReadWritLock for all
operations. |
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 . |
static <E> ListEventListener<E> |
GlazedLists.typeSafetyListener(EventList<E> source,
java.util.Set<java.lang.Class> types)
Check list elements for type safety after they are added to an EventList
using a
ListEventListener . |
static <E> ListEventListener<E> |
GlazedLists.weakReferenceProxy(EventList<E> source,
ListEventListener<E> target)
Provides a proxy to another ListEventListener that may go out of scope
without explicitly removing itself from the source list's set of
listeners.
|
Constructor and Description |
---|
CollectionList(EventList<S> source,
CollectionList.Model<S,E> model)
Create a
CollectionList with its contents being the children of
the elements in the specified source EventList . |
FilterList(EventList<E> source)
Creates a
FilterList that includes a subset of the specified
source EventList . |
FilterList(EventList<E> source,
Matcher<? super E> matcher)
Convenience constructor for creating a
FilterList and setting its
Matcher . |
FilterList(EventList<E> source,
MatcherEditor<? super E> matcherEditor)
Convenience constructor for creating a
FilterList and setting its
MatcherEditor . |
FreezableList(EventList<E> source)
Creates a
FreezableList that can freeze the view of the specified
source EventList . |
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 . |
GroupingList(EventList<E> source)
Creates a
GroupingList that determines groupings via the
Comparable interface which all elements of the source
are assumed to implement. |
GroupingList(EventList<E> source,
java.util.Comparator<? super E> comparator)
Creates a
GroupingList that determines groups using the specified
Comparator . |
ListSelection(EventList<E> source)
Creates a new ListSelection that listens to changes on the given source.
|
ListSelection(EventList<E> source,
int[] initialSelection)
Creates a new ListSelection that listens to changes on the given source
and initializes selection with the given array of indices.
|
ObservableElementList(EventList<E> source,
ObservableElementList.Connector<? super E> elementConnector)
Constructs an
ObservableElementList which wraps the given
source and uses the given elementConnector to
register/unregister change listeners on elements of the
source . |
PluggableList(EventList<E> source)
Constructs a PluggableList which delegates all List methods to the given
source . |
PopularityList(EventList<E> source)
Creates a new
PopularityList that provides frequency-ranking
for the specified EventList . |
PopularityList(EventList<E> source,
java.util.Comparator<E> uniqueComparator)
Creates a new
PopularityList that provides frequency-ranking
for the specified EventList . |
RangeList(EventList<E> source)
|
SeparatorList(EventList<E> source,
java.util.Comparator<? super E> comparator,
int minimumSizeForSeparator,
int defaultLimit)
Construct a SeparatorList overtop of the
source list by
using the given comparator to compute groups of similar
source items. |
SequenceList(EventList<E> source,
SequenceList.Sequencer<E> sequencer)
Constructs a SequenceList containing a sequence of values produced by
the
sequencer which cover the range of values contained
within the source . |
SequenceList(EventList<E> source,
SequenceList.Sequencer<E> sequencer,
java.util.Comparator<? super E> comparator)
Constructs a SequenceList containing a sequence of values produced by
the
sequencer which cover the range of values contained
within the source . |
SortedList(EventList<E> source)
Creates a
SortedList that sorts the specified EventList . |
SortedList(EventList<E> source,
java.util.Comparator<? super E> comparator)
Creates a
SortedList that sorts the specified EventList
using the specified Comparator to determine sort order. |
ThresholdList(EventList<E> source,
java.lang.String propertyName)
Creates a
ThresholdList that provides range-filtering based on the
specified EventList based on the specified integer JavaBean property. |
ThresholdList(EventList<E> source,
ThresholdList.Evaluator<E> evaluator)
Creates a
ThresholdList that provides range-filtering on the
specified EventList using the specified ThresholdList.Evaluator . |
TransactionList(EventList<E> source)
Constructs a
TransactionList that provides traditional
transaction semantics over the given source . |
TransformedList(EventList<S> source)
Creates a
TransformedList to transform the specified EventList . |
UniqueList(EventList<E> source)
Creates a
UniqueList that determines uniqueness via the
Comparable interface. |
UniqueList(EventList<E> source,
java.util.Comparator<? super E> comparator)
Creates a
UniqueList that determines uniqueness using the
specified Comparator . |
Modifier and Type | Field and Description |
---|---|
protected EventList<E> |
ListEvent.sourceList
the list that has changed
|
protected EventList<E> |
ListEventAssembler.sourceList
the list that this tracks changes for
|
Modifier and Type | Method and Description |
---|---|
EventList<E> |
ListEvent.getSourceList()
Gets the List where this event originally occured.
|
Modifier and Type | Method and Description |
---|---|
void |
ListEventPublisher.addDependency(EventList dependency,
ListEventListener listener)
Deprecated.
replaced with
ListEventPublisher.setRelatedSubject(java.lang.Object, java.lang.Object) , which has different
semantics and takes different arguments, but accomplishes the same goal |
void |
ListEventPublisher.removeDependency(EventList dependency,
ListEventListener listener)
Deprecated.
replaced with
ListEventPublisher.clearRelatedSubject(java.lang.Object) , which has different
semantics and takes different arguments, but accomplishes the same goal |
Constructor and Description |
---|
ListEventAssembler(EventList<E> sourceList,
ListEventPublisher publisher)
Creates a new ListEventAssembler that tracks changes for the specified list.
|
Modifier and Type | Class and Description |
---|---|
class |
CachingList
|
class |
FileList
An
EventList that is persisted to disk. |
class |
NetworkList<E>
An
EventList that is either published to the network or subscribed from
the network. |
Modifier and Type | Method and Description |
---|---|
<E> NetworkList<E> |
ListPeer.publish(EventList<E> source,
java.lang.String path,
ByteCoder byteCoder)
Publish the specified EventList with the specified name.
|
Constructor and Description |
---|
CachingList(EventList source,
int maxSize)
Creates a
CachingList that caches elements from the specified source
EventList . |
Modifier and Type | Method and Description |
---|---|
EventList<MatcherEditor<E>> |
CompositeMatcherEditor.getMatcherEditors()
|
Constructor and Description |
---|
CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
Create a
CompositeMatcherEditor that creates Matchers from the union
of the specified EventList of MatcherEditor s. |
Modifier and Type | Field and Description |
---|---|
protected EventList<E> |
DefaultEventTableModel.source
the source of data for this TableModel, which may or may not be
#swingThreadSource |
protected EventList<E> |
DefaultEventListModel.source
the source EventList
|
Modifier and Type | Method and Description |
---|---|
EventList<E> |
AdvancedListSelectionModel.getDeselected()
Gets an
EventList that contains only deselected values and
modifies the source list on mutation. |
EventList<E> |
DefaultEventSelectionModel.getDeselected()
Gets an
EventList that contains only deselected values and
modifies the source list on mutation. |
EventList<E> |
EventSelectionModel.getDeselected()
Deprecated.
Gets an
EventList that contains only deselected values and
modifies the source list on mutation. |
EventList<E> |
EventSelectionModel.getEventList()
Deprecated.
As of 2005/02/18, the naming of this method became
ambiguous. Please use
EventSelectionModel.getSelected() . |
EventList<E> |
AutoCompleteSupport.getItemList()
Returns the filtered
EventList of items which backs the
ComboBoxModel of the autocompleting JComboBox . |
EventList<E> |
AdvancedListSelectionModel.getSelected()
Gets an
EventList that contains only selected
values and modifies the source list on mutation. |
EventList<E> |
DefaultEventSelectionModel.getSelected()
Gets an
EventList that contains only selected
values and modifies the source list on mutation. |
EventList<E> |
EventSelectionModel.getSelected()
Deprecated.
Gets an
EventList that contains only selected
values and modifies the source list on mutation. |
EventList<E> |
AdvancedListSelectionModel.getTogglingDeselected()
Gets an
EventList that contains only deselected values and
modifies the selection state on mutation. |
EventList<E> |
DefaultEventSelectionModel.getTogglingDeselected()
Gets an
EventList that contains only deselected values and
modifies the selection state on mutation. |
EventList<E> |
EventSelectionModel.getTogglingDeselected()
Deprecated.
Gets an
EventList that contains only deselected values and
modifies the selection state on mutation. |
EventList<E> |
AdvancedListSelectionModel.getTogglingSelected()
Gets an
EventList that contains only selected
values and modifies the selection state on mutation. |
EventList<E> |
DefaultEventSelectionModel.getTogglingSelected()
Gets an
EventList that contains only selected
values and modifies the selection state on mutation. |
EventList<E> |
EventSelectionModel.getTogglingSelected()
Deprecated.
Gets an
EventList that contains only selected
values and modifies the selection state on mutation. |
Modifier and Type | Method and Description |
---|---|
protected TransformedList<E,E> |
EventTableModel.createSwingThreadProxyList(EventList<E> source)
Deprecated.
This method exists as a hook for subclasses that may have custom
threading needs within their EventTableModels.
|
static <E> AutoCompleteSupport.AutoCompleteCellEditor<E> |
AutoCompleteSupport.createTableCellEditor(java.util.Comparator uniqueComparator,
TableFormat<E> tableFormat,
EventList<E> tableData,
int columnIndex)
This factory method creates and returns a
AutoCompleteSupport.AutoCompleteCellEditor
which adapts an autocompleting JComboBox for use as a Table
Cell Editor. |
static <E> AutoCompleteSupport.AutoCompleteCellEditor<E> |
AutoCompleteSupport.createTableCellEditor(EventList<E> source)
This factory method creates and returns a
AutoCompleteSupport.AutoCompleteCellEditor
which adapts an autocompleting JComboBox for use as a Table
Cell Editor. |
static <E> AutoCompleteSupport.AutoCompleteCellEditor<E> |
AutoCompleteSupport.createTableCellEditor(TableFormat<E> tableFormat,
EventList<E> tableData,
int columnIndex)
This factory method creates and returns a
AutoCompleteSupport.AutoCompleteCellEditor
which adapts an autocompleting JComboBox for use as a Table
Cell Editor. |
static <E> DefaultEventComboBoxModel<E> |
GlazedListsSwing.eventComboBoxModel(EventList<E> source)
Creates a new combobox model that contains all objects located in the given
source and reacts to any changes in the given source . |
static <E> DefaultEventComboBoxModel<E> |
GlazedListsSwing.eventComboBoxModelWithThreadProxyList(EventList<E> source)
Creates a new combobox model that contains all objects located in the given
source and reacts to any changes in the given source . |
static <E> DefaultEventListModel<E> |
GlazedListsSwing.eventListModel(EventList<E> source)
Creates a new list model that contains all objects located in the given
source and reacts to any changes in the given source . |
static <E> DefaultEventListModel<E> |
GlazedListsSwing.eventListModelWithThreadProxyList(EventList<E> source)
Creates a new list model that contains all objects located in the given
source and reacts to any changes in the given source . |
static <E> AdvancedListSelectionModel<E> |
GlazedListsSwing.eventSelectionModel(EventList<E> source)
Creates a new selection model that also presents a list of the selection.
|
static <E> AdvancedListSelectionModel<E> |
GlazedListsSwing.eventSelectionModelWithThreadProxyList(EventList<E> source)
Creates a new selection model that also presents a list of the selection.
|
static <E> AdvancedTableModel<E> |
GlazedListsSwing.eventTableModel(EventList<E> source,
java.lang.String[] propertyNames,
java.lang.String[] columnLabels,
boolean[] writable)
Creates a new table model that renders the specified list with an automatically
generated
TableFormat . |
static <E> AdvancedTableModel<E> |
GlazedListsSwing.eventTableModel(EventList<E> source,
TableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source using the the given tableFormat . |
static <E> AdvancedTableModel<E> |
GlazedListsSwing.eventTableModelWithThreadProxyList(EventList<E> source,
java.lang.String[] propertyNames,
java.lang.String[] columnLabels,
boolean[] writable)
Creates a new table model that renders the specified list with an automatically
generated
TableFormat . |
static <E> AdvancedTableModel<E> |
GlazedListsSwing.eventTableModelWithThreadProxyList(EventList<E> source,
TableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source
using the the given tableFormat . |
static <E> AutoCompleteSupport<E> |
AutoCompleteSupport.install(javax.swing.JComboBox comboBox,
EventList<E> items)
Installs support for autocompletion into the
comboBox and
returns the support object that is actually providing those facilities. |
static <E> AutoCompleteSupport<E> |
AutoCompleteSupport.install(javax.swing.JComboBox comboBox,
EventList<E> items,
TextFilterator<? super E> filterator)
Installs support for autocompletion into the
comboBox and
returns the support object that is actually providing those facilities. |
static <E> AutoCompleteSupport<E> |
AutoCompleteSupport.install(javax.swing.JComboBox comboBox,
EventList<E> items,
TextFilterator<? super E> filterator,
java.text.Format format)
Installs support for autocompletion into the
comboBox and
returns the support object that is actually providing those facilities. |
static <E> UndoSupport |
UndoSupport.install(javax.swing.undo.UndoManager undoManager,
EventList<E> source)
Installs support for undoing/redoing edits on the given
source . |
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 . |
static boolean |
GlazedListsSwing.isSwingThreadProxyList(EventList list)
Returns true iff
list is an EventList that fires
all of its update events from the Swing event dispatch thread. |
static <E> TransformedList<E,E> |
GlazedListsSwing.swingThreadProxyList(EventList<E> source)
Wraps the source in an
EventList that fires all of its update
events from the Swing event dispatch thread. |
Constructor and Description |
---|
DefaultEventComboBoxModel(EventList<E> source)
Creates a new combo box model that contains the elements of the given
source and tracks further changes made to it. |
DefaultEventComboBoxModel(EventList<E> source,
boolean disposeSource)
Creates a new combo box model that contains the elements of the given
source and tracks further changes made to it. |
DefaultEventListModel(EventList<E> source)
Creates a new model that contains all objects located in the given
source and reacts to any changes in the given
source . |
DefaultEventListModel(EventList<E> source,
boolean disposeSource)
Creates a new model that contains all objects located in the given
source and reacts to any changes in the given
source . |
DefaultEventSelectionModel(EventList<E> source)
Creates a new selection model that also presents a list of the selection.
|
DefaultEventSelectionModel(EventList<E> source,
boolean disposeSource)
Creates a new selection model that also presents a list of the selection.
|
DefaultEventTableModel(EventList<E> source,
boolean disposeSource,
TableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source using the the given tableFormat . |
DefaultEventTableModel(EventList<E> source,
TableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source using the the given tableFormat . |
EventComboBoxModel(EventList<E> source)
Deprecated.
Creates a new combo box model that contains the elements of the given
source and tracks further changes made to it. |
EventListModel(EventList<E> source)
Deprecated.
Creates a new model that contains all objects located in the given
source and reacts to any changes in the given
source . |
EventSelectionModel(EventList<E> source)
Deprecated.
Creates a new selection model that also presents a list of the selection.
|
EventTableColumnModel(EventList<T> source)
Creates a new model that contains the
TableColumn objects from
the given source . |
EventTableModel(EventList<E> source,
java.lang.String[] propertyNames,
java.lang.String[] columnLabels,
boolean[] writable)
Deprecated.
Use
GlazedListsSwing#createEventTableModel(EventList, String[], String[], boolean[])
and GlazedListsSwing.swingThreadProxyList(EventList) instead |
EventTableModel(EventList<E> source,
TableFormat<? super E> tableFormat)
Deprecated.
|
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2016-02-14 0:54