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();
...