54 lines
1.7 KiB
Java
54 lines
1.7 KiB
Java
package egovframework.com.cmm;
|
|
|
|
import egovframework.rte.ptl.mvc.tags.ui.pagination.AbstractPaginationRenderer;
|
|
|
|
import javax.servlet.ServletContext;
|
|
|
|
import org.springframework.web.context.ServletContextAware;
|
|
/**
|
|
* ImagePaginationRenderer.java 클래스
|
|
*
|
|
* @author 서준식
|
|
* @since 2011. 9. 16.
|
|
* @version 1.0
|
|
* @see
|
|
*
|
|
* <pre>
|
|
* << 개정이력(Modification Information) >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ------- ------------- ----------------------
|
|
* 2011. 9. 16. 서준식 이미지 경로에 ContextPath추가
|
|
* 2016. 6. 17. 장동한 표준프레임워크 v3.6 리뉴얼
|
|
* </pre>
|
|
*/
|
|
public class ImagePaginationRenderer extends AbstractPaginationRenderer implements ServletContextAware{
|
|
|
|
private ServletContext servletContext;
|
|
|
|
public ImagePaginationRenderer() {
|
|
|
|
}
|
|
|
|
public void initVariables(){
|
|
|
|
firstPageLabel = "<li class=\"first\"><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">첫 페이지</a></li>";
|
|
previousPageLabel = "<li class=\"prev\"><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">이전 페이지</a></li>";
|
|
|
|
currentPageLabel = "<li class=\"current\"><a onClick=\"return false;\">{0}</a></li>";
|
|
otherPageLabel = "<li><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">{2}</a></li>";
|
|
|
|
nextPageLabel = "<li class=\"next\"><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">다음 페이지</a></li>";
|
|
lastPageLabel = "<li class=\"last\"><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">끝 페이지</a></li>";
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setServletContext(ServletContext servletContext) {
|
|
this.servletContext = servletContext;
|
|
initVariables();
|
|
}
|
|
|
|
}
|