org.chenillekit.tapestry.core.components
Class ColorPicker
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractField
org.apache.tapestry5.corelib.base.AbstractTextField
org.chenillekit.tapestry.core.components.ColorPicker
- All Implemented Interfaces:
- ClientElement, Field
@Import(stylesheet="colorpicker/colorpicker.css",
library={"colorpicker/colorpicker.js","../prototype-base-extensions.js"})
public class ColorPicker- extends AbstractTextField
A simple color picker component. Supports saving custom colors to the palette via cookies. To open the palette,
click the color box at the right side of the input box.
- Version:
- $Id: ColorPicker.java 674 2010-07-29 12:47:25Z homburgs $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorPicker
public ColorPicker()
writeFieldTag
protected void writeFieldTag(MarkupWriter writer,
String value)
- Invoked from
AbstractTextField.begin(org.apache.tapestry5.MarkupWriter) to write out the element and attributes (typically, <input>). The
controlName and clientId
properties will already have been set or updated.
Generally, the subclass will invoke MarkupWriter.element(String, Object[]), and will be responsible for
including an AfterRender phase method to invoke MarkupWriter.end().
- Specified by:
writeFieldTag in class AbstractTextField
- Parameters:
writer - markup write to send output tovalue - the value (either obtained and translated from the value parameter, or obtained from the tracker)
Copyright © 2008-2010 ChenilleKit. All Rights Reserved.