com.nordija.tapestry.bayeux.form
Class Html4Button

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.form.AbstractFormComponent
              extended by com.nordija.tapestry.bayeux.form.Html4Button
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.form.IFormComponent, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.IRender

public abstract class Html4Button
extends org.apache.tapestry.form.AbstractFormComponent

Component which renders a HTML4 button element (<button type="...">Create</button>).

The implementation of this component has been heavily inspired by the standard Tapestry Button and Submit components.

Version:
$Id: Html4Button.java 90 2007-05-18 13:53:39Z jeyben $
Author:
Per Olesen, www.nordija.com

Field Summary
static java.lang.String BUTTON_SUBMIT_VALUE
          the value of hidden button control element which is set when button is clicked (workaround on an IE bug)
 
Constructor Summary
Html4Button()
           
 
Method Summary
abstract  java.lang.String getLabel()
           
abstract  org.apache.tapestry.IActionListener getListener()
           
abstract  java.lang.String getOnclickEventHandler()
           
abstract  org.apache.tapestry.IBinding getSelectedBinding()
           
abstract  java.lang.Object getTag()
           
abstract  java.lang.String getType()
           
abstract  boolean isDisabled()
           
protected  void renderFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
protected  void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
 
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent
generateClientId, getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, isRequired, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getClientId, getDisplayName
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

BUTTON_SUBMIT_VALUE

public static final java.lang.String BUTTON_SUBMIT_VALUE
the value of hidden button control element which is set when button is clicked (workaround on an IE bug)

See Also:
Constant Field Values
Constructor Detail

Html4Button

public Html4Button()
Method Detail

getLabel

public abstract java.lang.String getLabel()

getType

public abstract java.lang.String getType()

getSelectedBinding

public abstract org.apache.tapestry.IBinding getSelectedBinding()

isDisabled

public abstract boolean isDisabled()

getOnclickEventHandler

public abstract java.lang.String getOnclickEventHandler()

getListener

public abstract org.apache.tapestry.IActionListener getListener()

getTag

public abstract java.lang.Object getTag()

renderFormComponent

protected void renderFormComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)
Specified by:
renderFormComponent in class org.apache.tapestry.form.AbstractFormComponent

rewindFormComponent

protected void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)
Specified by:
rewindFormComponent in class org.apache.tapestry.form.AbstractFormComponent


Copyright © 2004-2007 Nordija A/S. All Rights Reserved.