emobtech / PullDownRefreshME

PullDownRefreshME is a LWUIT component that implements a pull down gesture to refresh data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PullDownRefreshME

PullDownRefreshME is a LWUIT component that implements a pull-down gesture to refresh data.

##Articles

##Sample Code

...
Form form = new Form("PullDownRefresh") {};
form.setLayout(new BorderLayout());
//
List list = new List(new String[] {...});
list.setRenderer(new DefaultListCellRenderer());
//
final PullDownRefresh refresher = new PullDownRefresh();
refresher.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
        new Thread() {
            public void run() {
                // Perform some process
                //
                refresher.endRefreshing();
            }
        }.start();
    }
});
//
form.addComponent(BorderLayout.NORTH, refresher);
form.addComponent(BorderLayout.CENTER, list);
//
form.show();
...

External Links

About

PullDownRefreshME is a LWUIT component that implements a pull down gesture to refresh data.

License:MIT License


Languages

Language:Java 100.0%