Holger Brands | 27 Apr 17:05 2014

Glazed Lists moved to GitHub

Dear Glazed Lists users,

We are happy to announce that we have moved the source code from the java.net SVN repository to the new GitHub repo. Any new development will continue there.
The old SVN repo is now in read-only mode.

Pull requests are now the preferred way for contributions.
A non-trival contribution should be accompanied by appropriate unit tests and an issue in JIRA.

Happy forking,
Holger

Avenue Network Services | 15 Jan 03:54 2012
Picon

ObservableElementList not consistently updating in JTable

Hi guys,

                Could I please get some assistance in looking at something. My application is relatively complex but I’m more than happy to put a test case togther. I’m wondering if someone could point out to me what Im doing wrong.

My problem is that the display of a Bean in the JTable is not updated until I move the selection off the row containing the bean or do something else to trigger a repaint.

 

I have a chain of eventlists set up as follows:

 

protected static EventList<Invoice> unoballinvoices = GlazedLists.threadSafeList(new BasicEventList<Invoice>());

private static ObservableElementList.Connector<Invoice> InvoiceConnector = GlazedLists.beanConnector(Invoice.class);

private static EventList<Invoice> allinvoices = new ObservableElementList<Invoice>(unoballinvoices, InvoiceConnector);

private SortedList<Invoice> sortedInvoices = new SortedList<Invoice>(allinvoices, new InvoiceComparator());

private FilterList<Invoice> filteredInvoices = new FilterList(sortedInvoices, componenteditor);

 

My JTable looks pretty much like this.

EventTableModel invoicesTableModel = new EventTableModel(filteredInvoices, new AllInvoicesTableFormat());

JTable AllInvoicesTable = new JTable(invoicesTableModel);

invoiceEventSelectionModel = new EventSelectionModel(filteredInvoices);

AllInvoicesTable.setSelectionModel(invoiceEventSelectionModel);

 

Kind Regards

Ed Murray
--

www.avenuedesign.net

THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION AND IS INTENDED FOR THE ADDRESSED RECIPIENT(S) ONLY. IF YOU ARE NOT THE INTENDED RECIPIENT YOU ARE NOTIFIED THAT DISCLOSING, COPYING, DISTRIBUTING OR TAKING ANY ACTION IN RELIANCE ON THE CONTENTS OF THIS INFORMATION IS STRICTLY PROHIBITED.

 

amolle | 14 Dec 14:36 2011

Sorting a jtable using a hidden column

Hi all,

I would like to sort my JTable using a column wihich is not always visible..
(<=> not in the sortedlist given to my tableformat)
Has anyone tried to do this ?

a.m

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/Sorting-a-jtable-using-a-hidden-column-tp5074482p5074482.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.

sialivi | 3 Oct 01:47 2011
Picon

Making a list item bypass all filters?

I need some advice on how to tackle the following scenario:

I have a list pipeline with a bunch of filters. I want to be able to right
click on an item in my list and "pin" it, making it always show no matter
what the other filters do. Is there a clever way to make an item bypass all
the filters? Or do I have to change every single filter to take my pinned
boolean bean property into account?

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/Making-a-list-item-bypass-all-filters-tp4863423p4863423.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.

Bruce Alspaugh | 7 Oct 06:01 2011
Picon

Strategies to Navigate Large Lists

I have what I think is a rather common use case:  A large number of
records in an SQL table that I need to allow the user to edit in a Swing
client application.  The problem is that as the lists grow larger, the
time to download the records increases causing the application to become
less responsive.  The best solution I have come up with is to download
the records on a separate thread and append them to the list as they
come in.  The problem is that this causes the user's scroll position in
the list to keep changing as the records come in.

Glazed Lists assumes all the list elements fit in memory, and I don't
see a good way to page sections of a list in and out or do lazy loading.
Another problem with that approach is that other users could insert,
modify or delete records in the underlying table throwing the record
count off and causing the downloaded elements to become stale as the
user pages through the list.

Has anyone found a good solution for this problem?  

Bruce

Fabian Zeindl | 6 Sep 16:57 2011
Picon

FilterList wants a reverse function - Why?

Hi, 
 i have this little LogWindow, that shows me log4j-LoggingEvents. I wanted a
facility to filter by class and loglevel, but i ran into problems. 

This is my code: http://pastie.org/2491565

It shows correctly, when i select an item though, i get the following
stacktrace: 

http://pastie.org/2491572

Can you help me? 
Regards 
Fabian Zeindl

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/FilterList-wants-a-reverse-function-Why-tp4774694p4774694.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.

andzsinszan | 29 Aug 14:00 2011
Picon

SWT without JFace

Hi,

Is it possible to use glazedlist with SWT but *without* JFace? 
Previously I used glazedlist with Swing, now I'm working on a
standalone SWT project and preferably would leave out JFace from
dev/deployment.

It seems that
ca.odell.glazedlists.swt.EventTableViewer.createSwtThreadProxyList(Even
tTableViewer.java:186)
needs
org/eclipse/jface/viewers/ILabelProvider.

Is there a workaround using pure SWT?

Thanks in advance,

Gabor

sialivi | 24 Aug 06:41 2011
Picon

swingThreadProxyList headache

At the start of my pipeline I define the following lists:

EventList<DDIBean> ddiEventList = GlazedLists.threadSafeList(new
BasicEventList());
SortedList<DDIBean> sortedList = new SortedList(ddiEventList);

At a later point in the application I create a shortlived UniqueList to
populate a JComboBox:

UniqueList<DDIBean> uniqueList = new UniqueList(sortedList, new
BeanPropertyComparator(DDIBean.class, "Alignment",
GlazedLists.caseInsensitiveComparator()));

So far so good, but when I today introduced a SwingThreadProxyList to the
mix by changing the first line to:

EventList<DDIBean> ddiEventList =
GlazedListsSwing.swingThreadProxyList(GlazedLists.threadSafeList(new
BasicEventList()));

...the application now hangs when I create the UniqueList, with no visible
exception (probably hidden in a thread somewhere, which I'm terrible at
tracking down).

I know this isn't much to go on, but any ideas what I'm doing wrong?

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/swingThreadProxyList-headache-tp4729236p4729236.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.

Jason S | 16 Aug 16:15 2011
Picon

sorting a treelist

Could someone comment on this old thread:
http://glazedlists.1045722.n5.nabble.com/Sorting-TreeList-td3419834.html#none

I see what looks like some erroneous statements, namely that if you sort
upstream from a TreeList, the treelist will be sorted (doesn't seem to work
for me), and that the comparator in the TreeList.Format is used to group
items together (how can this be possible? you're comparing items, not
parents of items).

What are the requirements of the TreeList.Format comparator?

e.g. if these are my TreeList nodes

- A
-- A1
-- A2
- B
-- B1
-- B2
-- B3
--- B3a
--- B3b
- C

then:
- which nodes are going to be compared to each other? is it comparisons
within the sets (A,B,C) and (A1,A2) and (B1,B2,B3) and (B3a,B3b) or is it
all 10 nodes, or something else?
- what happens if I return null for a comparator? (bad things seem to happen
as some nodes seem to be duplicated in the output list)

Also is it possible to change the comparators at runtime, in the way that
TableComparatorChooser operates?

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/sorting-a-treelist-tp4704550p4704550.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.

pcafstockf | 12 Aug 23:15 2011

Pre-populate / initialize UniqueList without comparing?

Hi,

I've used GlazedLists for many projects, and my eyes are eternally grateful
not to have been gouged out !

My latest project requires very large UniqueLists.  The lists are initially
populated with large numbers of elements that are known to be both unique
and properly sorted.  However, new elements do need to be sorted and
filtered for uniqueness as they are added to the list.  Because the
comparator is rather complex and the initial size is very large, it can take
many minutes to initialize a single list.  

Is there a way to tell a UniqueList to 'trust' that it's initial contents
are unique and sorted?

SortedList.setMode looked promising, but when strict sorting is restored,
the comparator is again invoked for every element.

TIA,

pcafstockf

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/Pre-populate-initialize-UniqueList-without-comparing-tp4694655p4694655.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.

Jason S | 12 Aug 01:09 2011
Picon

help w/ transforming a list

I have a list "list1" of parent items. 

I want to make a one-way-transform this into a TreeList in the following
manner: 

Some of the parent items have child items, and I need to create an
intermediate list "list2" of items containing parent and child, so that I
can then create a TreeList from list2 (that I know how to do).

so for example, if list1 = {foo1, foo2, foo3, foo4, foo5} and foo2 is the
parent of foo2a and foo2b, and foo5 is the parent of foo5a, foo5b, and
foo5c, I need to somehow transform list1 into

list2 = {foo1, foo2, foo2a, foo2b, foo3, foo4, foo5, foo5a, foo5b, foo5c }.

How can I do this? I don't have much experience w/ transformed lists.

(Or can I just bypass it and turn a list of parent items into a TreeList?)

Please help, I'm having a brain cramp :/

--
View this message in context: http://glazedlists.1045722.n5.nabble.com/help-w-transforming-a-list-tp4691423p4691423.html
Sent from the GlazedLists - User mailing list archive at Nabble.com.


Gmane