org.apache.tapestry.contrib.services.impl
Class RoundedCornerService

java.lang.Object
  extended by org.apache.tapestry.contrib.services.impl.RoundedCornerService
All Implemented Interfaces:
IEngineService

public class RoundedCornerService
extends Object
implements IEngineService

Provides generated rounded corner images in a similar use / fashion as outlined here: google's own cornershop.


Field Summary
static String PARM_ANGLE
           
static String PARM_ARC_HEIGHT
           
static String PARM_ARC_WIDTH
           
static String PARM_BACKGROUND_COLOR
           
static String PARM_COLOR
           
static String PARM_HEIGHT
           
static String PARM_SHADOW_OPACITY
           
static String PARM_SHADOW_SIDE
           
static String PARM_SHADOW_WIDTH
           
static String PARM_WHOLE_SHADOW
           
static String PARM_WIDTH
           
static String SERVICE_NAME
           
 
Constructor Summary
RoundedCornerService()
           
 
Method Summary
 ILink getLink(boolean post, Object parameter)
          Builds a URL for a service.
 String getName()
          Returns the name of the service.
 void initialize()
           
 void service(IRequestCycle cycle)
          Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a result page.
 void setExceptionReporter(RequestExceptionReporter exceptionReporter)
           
 void setLinkFactory(LinkFactory linkFactory)
           
 void setLog(Log log)
           
 void setRequest(WebRequest request)
           
 void setResponse(WebResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values

PARM_COLOR

public static final String PARM_COLOR
See Also:
Constant Field Values

PARM_BACKGROUND_COLOR

public static final String PARM_BACKGROUND_COLOR
See Also:
Constant Field Values

PARM_WIDTH

public static final String PARM_WIDTH
See Also:
Constant Field Values

PARM_HEIGHT

public static final String PARM_HEIGHT
See Also:
Constant Field Values

PARM_ANGLE

public static final String PARM_ANGLE
See Also:
Constant Field Values

PARM_SHADOW_WIDTH

public static final String PARM_SHADOW_WIDTH
See Also:
Constant Field Values

PARM_SHADOW_OPACITY

public static final String PARM_SHADOW_OPACITY
See Also:
Constant Field Values

PARM_SHADOW_SIDE

public static final String PARM_SHADOW_SIDE
See Also:
Constant Field Values

PARM_WHOLE_SHADOW

public static final String PARM_WHOLE_SHADOW
See Also:
Constant Field Values

PARM_ARC_HEIGHT

public static final String PARM_ARC_HEIGHT
See Also:
Constant Field Values

PARM_ARC_WIDTH

public static final String PARM_ARC_WIDTH
See Also:
Constant Field Values
Constructor Detail

RoundedCornerService

public RoundedCornerService()
Method Detail

initialize

public void initialize()

getLink

public ILink getLink(boolean post,
                     Object parameter)
Description copied from interface: IEngineService
Builds a URL for a service. This is performed during the rendering phase of one request cycle and builds URLs that will invoke activity in a subsequent request cycle.

This method changed incompatibly between release 3.0 and release 4.0.

Specified by:
getLink in interface IEngineService
Parameters:
post - if true, then the link will be used for a post (not a get, i.e., for a HTML form); this may affect what information is encoded into the link
parameter - An object that provide any additional information needed by the service. Each service implementation will expect that an object of the proper type be passed in. In some cases, a simple String will do; in others, a specific object (possibly implementing an interface) will be required.
Returns:
The URL for the service. The URL will have to be encoded via HttpServletResponse.encodeURL(java.lang.String).

service

public void service(IRequestCycle cycle)
             throws IOException
Description copied from interface: IEngineService
Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a result page.

Specified by:
service in interface IEngineService
Parameters:
cycle - the incoming request
Throws:
IOException

getName

public String getName()
Description copied from interface: IEngineService
Returns the name of the service.

Specified by:
getName in interface IEngineService

setExceptionReporter

public void setExceptionReporter(RequestExceptionReporter exceptionReporter)

setLinkFactory

public void setLinkFactory(LinkFactory linkFactory)

setRequest

public void setRequest(WebRequest request)

setResponse

public void setResponse(WebResponse response)

setLog

public void setLog(Log log)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.