org.shept.org.springframework.web.servlet.mvc.delegation.component
Class PagedListComponent

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.shept.org.springframework.web.servlet.mvc.delegation.component.AbstractComponent
                  extended by org.shept.org.springframework.web.servlet.mvc.delegation.component.PagedListComponent
All Implemented Interfaces:
WebComponent, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class PagedListComponent
extends AbstractComponent
implements WebComponent

Version:
$$Id: PagedListComponent.java 94 2010-12-22 15:12:29Z aha $$
Author:
Andi

Field Summary
 
Fields inherited from class org.shept.org.springframework.web.servlet.mvc.delegation.component.AbstractComponent
ANCHOR_PREFIX
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
PagedListComponent()
           
 
Method Summary
protected  org.springframework.web.servlet.ModelAndView doActionInternal(javax.servlet.http.HttpServletRequest request, ComponentToken token)
           
 org.springframework.web.servlet.ModelAndView excecuteAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ComponentToken token)
           
 Map<String,String> getDefaultMappings()
           
private  void resort(PageableList<?> pagedList, String columnName, boolean asc)
           
 boolean supports(Object commandObject)
           
 
Methods inherited from class org.shept.org.springframework.web.servlet.mvc.delegation.component.AbstractComponent
getAnchorPrefix, getMappings, getResources, hasErrorsInPath, initApplicationContext, isCopyResources, modelRedirect, modelRedirect, modelRedirectClip, modelUnhandled, modelWithErrors, setAnchorPrefix, setCopyResources, setMappings, setResources, supportedActions, supportsAction
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shept.org.springframework.web.servlet.mvc.delegation.component.WebComponent
getMappings, supportedActions, supportsAction
 

Constructor Detail

PagedListComponent

public PagedListComponent()
Method Detail

excecuteAction

public org.springframework.web.servlet.ModelAndView excecuteAction(javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response,
                                                                   ComponentToken token)
                                                            throws Exception
Specified by:
excecuteAction in interface WebComponent
Throws:
Exception

doActionInternal

protected org.springframework.web.servlet.ModelAndView doActionInternal(javax.servlet.http.HttpServletRequest request,
                                                                        ComponentToken token)
                                                                 throws Exception
Throws:
Exception

resort

private void resort(PageableList<?> pagedList,
                    String columnName,
                    boolean asc)

getDefaultMappings

public Map<String,String> getDefaultMappings()
Specified by:
getDefaultMappings in class AbstractComponent

supports

public boolean supports(Object commandObject)
Specified by:
supports in interface WebComponent


Copyright © 2011. All Rights Reserved.