2011-09-15 96 views

回答

1

嘛easist方式,我現在看到的,是寫自己的簡單尋呼機和覆蓋「末頁」,「lastPageStart」,「下一頁」和「|上一頁「 功能。

在我的測試例子,我建立〜5min後它lookes這樣的:

public class Ui_mySimplePager extends SimplePager { 
public Ui_mySimplePager(TextLocation center, Resources pagerResources, 
     boolean b, int i, boolean c) { 
    super(center, pagerResources, b, i, c); 
} 

@Override 
public void lastPage() { 
    Window.alert("lastPage"); 
    super.lastPage(); 
} 

@Override 
public void lastPageStart() { 
    Window.alert("lastPageStart"); 
    super.lastPageStart(); 
} 

@Override 
public void nextPage() { 
    Window.alert("nextPage"); 
    super.nextPage(); 
} 

@Override 
public void previousPage() { 
    Window.alert("previousPage"); 
    super.previousPage(); 
} 
} 
相關問題