org.chenillekit.tapestry.core.components.yui
Class StateButton

java.lang.Object
  extended by org.apache.tapestry5.corelib.base.AbstractField
      extended by org.chenillekit.tapestry.core.base.AbstractYuiField
          extended by org.chenillekit.tapestry.core.components.yui.StateButton
All Implemented Interfaces:
ClientElement, Field

@Import(stylesheet="${yahoo.yui}/button/assets/skins/sam/button.css",
        library={"${yahoo.yui}/button/button${yahoo.yui.mode}.js","../../Chenillekit.js","StateButton.js"})
public class StateButton
extends AbstractYuiField

Version:
$Id: StateButton.java 674 2010-07-29 12:47:25Z homburgs $

Constructor Summary
StateButton()
           
 
Method Summary
protected  void configure(JSONObject options)
          Invoked to allow subclasses to further configure the parameters passed to this mixin's javascript options.
protected  void processSubmission(String elementName)
          Method implemented by subclasses to actually do the work of processing the submission of the form.
 
Methods inherited from class org.apache.tapestry5.corelib.base.AbstractField
createDefaultParameterBinding, decorateInsideField, getClientId, getControlName, getLabel, isDisabled, isRequired, putPropertyNameIntoBeanValidationContext, removePropertyNameFromBeanValidationContext, setDecorator, setFormSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateButton

public StateButton()
Method Detail

configure

protected void configure(JSONObject options)
Invoked to allow subclasses to further configure the parameters passed to this mixin's javascript options. Subclasses may override this method to configure additional features of this mixin.

This implementation does nothing.

Parameters:
options - option object

processSubmission

protected void processSubmission(String elementName)
Method implemented by subclasses to actually do the work of processing the submission of the form. The element's elementName property will already have been set. This method is only invoked if the field is not disabled.

Specified by:
processSubmission in class AbstractField
Parameters:
elementName - the name of the element (used to find the correct parameter in the request)


Copyright © 2008-2011 ChenilleKit. All Rights Reserved.