pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@googlemail.com>
Subject Re: Advice for a newbie
Date Thu, 24 Jun 2010 12:09:45 GMT
Take a look at this demo.  It sounds like it might be a useful starting


It shows a ListView with custom rendered items inside a ScrollPane.

By setting the ListView's data source to a Pivot List (as opposed to a
java.util.List), it will show updates automatically when the contents of the
List change.
The listener for your external application would simply need to manage the
data in the List.

If required you can set a Comparator for the List which will subsequently
maintain the ordering in the ListView.
Pivot also has a FilteredList class which can filter an underlying List (and
can have it own Comparator)
ListViews can also be supplied with a Filter to determine which items are
rendered as enabled or disabled.

If you need a more tabular format, then TableView may be more appropriate.
It also takes a Pivot List as its data source, so can be filtered etc as

With both of these components it is possible to get the bounds of a
particular item and programmatically scroll to ensure it is visible.



On Thu, Jun 24, 2010 at 4:58 PM, B.L. Zeebub <roger.varley@googlemail.com>wrote:

> Hi
> New to Pivot and GUI programming - I want to try out Pivot to provide a
> front-end gui to an existing Java application. Amongst other things, the
> application tracks it's progress by posting status messages to anything
> that
> is registered as a listener. So the first thing I want to do is set myself
> up as a listener and display the status messages as they appear. The
> pivot-app needs to be able to scroll backward and forward through the
> messages and update itself when new messages arrive. In effect what I want
> is some sort of console view.
> I've been through the tutorials but I'm not sure which set of components I
> should select to acheive the intent of the view. I would appreciate
> suggestions as to which components I should use.
> Regards
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/Advice-for-a-newbie-tp919140p919140.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message