org.apache.tapestry.contrib.palette
Class PaletteOption

java.lang.Object
  extended by org.apache.tapestry.contrib.palette.PaletteOption
All Implemented Interfaces:
IRender

public class PaletteOption
extends Object
implements IRender

Used to hold options editable by a Palette component, so that they may be sorted into an appropriate order.

Version:
$Id: PaletteOption.java 243835 2004-03-09 20:17:21Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
PaletteOption(String value, String label)
           
 
Method Summary
 String getLabel()
           
 String getValue()
           
 void render(IMarkupWriter writer, IRequestCycle cycle)
          The principal rendering/rewinding method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteOption

public PaletteOption(String value,
                     String label)
Method Detail

render

public void render(IMarkupWriter writer,
                   IRequestCycle cycle)
Description copied from interface: IRender
The principal rendering/rewinding method. This will cause the receiving component to render its top level elements (HTML text and components).

Renderring and rewinding are the exact same process. The same code that renders must be able to restore state by going through the exact same operations (even though the output is discarded).

Specified by:
render in interface IRender

getLabel

public String getLabel()

getValue

public String getValue()