to.etc.domui.parts
Class ButtonPart

java.lang.Object
  extended by to.etc.domui.parts.ButtonPart
All Implemented Interfaces:
IBufferedPartFactory, IPartFactory

Deprecated.

@Deprecated
public class ButtonPart
extends java.lang.Object
implements IBufferedPartFactory

This creates a button part from an input URL. The input url has as parameter the image name, the button text and the like.

Created on January 23, 2006

Author:
Frits Jalvingh

Constructor Summary
ButtonPart()
          Deprecated.  
 
Method Summary
 java.lang.Object decodeKey(java.lang.String rurl, IExtendedParameterInfo info)
          Deprecated. Decode the input and create a KEY for the request.
 void generate(PartResponse pr, DomApplication da, java.lang.Object key, IResourceDependencyList rdl)
          Deprecated. This must generate the output for the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonPart

public ButtonPart()
Deprecated. 
Method Detail

decodeKey

public java.lang.Object decodeKey(java.lang.String rurl,
                                  IExtendedParameterInfo info)
                           throws java.lang.Exception
Deprecated. 
Description copied from interface: IBufferedPartFactory
Decode the input and create a KEY for the request. This key must be hashable, and forms the key for the cache to retrieve an already generated copy.

Specified by:
decodeKey in interface IBufferedPartFactory
Returns:
Throws:
java.lang.Exception

generate

public void generate(@Nonnull
                     PartResponse pr,
                     @Nonnull
                     DomApplication da,
                     @Nonnull
                     java.lang.Object key,
                     @Nonnull
                     IResourceDependencyList rdl)
              throws java.lang.Exception
Deprecated. 
Description copied from interface: IBufferedPartFactory
This must generate the output for the resource. That output will be put into the cache and re-rendered when the same resource is used without calling this method again.

Specified by:
generate in interface IBufferedPartFactory
da - The Application on behalf of which this resource is generated.
key - The key, as specified by decodeKey.
rdl - When running in development mode, each file resource used should be added to this list. The buffer code will use that list to check whether a source for this thing has changed; if so it will be re-generated. This causes runtime editability for parameter files of any buffered thingydoo.
Throws:
java.lang.Exception