48 lines
2.2 KiB
Java
48 lines
2.2 KiB
Java
package itn.com.cmm;
|
|
|
|
import javax.servlet.ServletContext;
|
|
|
|
import org.springframework.web.context.ServletContextAware;
|
|
|
|
import egovframework.rte.ptl.mvc.tags.ui.pagination.AbstractPaginationRenderer;
|
|
/**
|
|
* ImagePaginationRenderer.java 클래스
|
|
*
|
|
* @author 서준식
|
|
* @since 2011. 9. 16.
|
|
* @version 1.0
|
|
* @see
|
|
*
|
|
* <pre>
|
|
* << 개정이력(Modification Information) >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ------- ------------- ----------------------
|
|
* 2011. 9. 16. 서준식 이미지 경로에 ContextPath추가
|
|
* </pre>
|
|
*/
|
|
public class ImagePaginationRendererWeb extends AbstractPaginationRenderer implements ServletContextAware{
|
|
|
|
private ServletContext servletContext;
|
|
|
|
public ImagePaginationRendererWeb() {
|
|
// no-op
|
|
}
|
|
|
|
public void initVariables(){
|
|
firstPageLabel = "<li class=\"page_first\"><a href='#' title='첫페이지' onclick=\"{0}({1});return false;\"><button type=\"button\"><img src=\"/publish/images/content/page_first.png\" alt=\"첫페이지\"></button></a></li>";
|
|
previousPageLabel = "<li class=\"page_prev\"><a href='#' title='이전10페이지' onclick=\"{0}({1});return false;\"><button type=\"button\"><img src=\"/publish/images/content/page_prev.png\" alt=\"이전10페이지\"></button></a></li>";
|
|
currentPageLabel = "<li class=\"on\"><button type=\"button\"><a href='#' title='현재페이지'>{0}</a></button></li>";
|
|
otherPageLabel = "<li><button type=\"button\" onclick=\"{0}({1});return false;\"><a href='#' title={2}페이지 >{2}</a></button></li>";
|
|
nextPageLabel = "<li class=\"page_next\"><a href='#' title='다음10페이지' onclick=\"{0}({1});return false;\"><button type=\"button\"><img src=\"/publish/images/content/page_next.png\" alt=\"다음10페이지\"></button></a></li>";
|
|
lastPageLabel = "<li class=\"page_last\"><a href='#' title='마지막페이지' onclick=\"{0}({1});return false;\"><button type=\"button\"><img src=\"/publish/images/content/page_last.png\" alt=\"마지막페이지\"></button></a></li>";
|
|
}
|
|
|
|
@Override
|
|
public void setServletContext(ServletContext servletContext) {
|
|
this.servletContext = servletContext;
|
|
initVariables();
|
|
}
|
|
|
|
}
|