📄 datascrollerlist.java
字号:
package com.jlobo.common;
import java.util.ArrayList;
import java.util.List;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import org.apache.myfaces.custom.datascroller.ScrollerActionEvent;
/**
* DOCUMENT ME!
* @author Thomas Spiegl (latest modification by $Author: lzket $)
* @version $Revision: 1.1 $ $Date: 2007/09/11 02:11:17 $
*/
public class DataScrollerList
{
private List _list = new ArrayList();
public DataScrollerList()
{
// for (int i = 1; i < 995; i++)
// {
// _list.add(new SimpleCar(i, "Car Type " + i, "blue"));
// }
}
public List getList()
{
return _list;
}
public void scrollerAction(ActionEvent event)
{
ScrollerActionEvent scrollerEvent = (ScrollerActionEvent) event;
FacesContext.getCurrentInstance().getExternalContext().log(
"scrollerAction: facet: "
+ scrollerEvent.getScrollerfacet()
+ ", pageindex: "
+ scrollerEvent.getPageIndex());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -