wicket.markup.html.form
Class Button

java.lang.Object
  extended bywicket.Component
      extended bywicket.MarkupContainer
          extended bywicket.markup.html.WebMarkupContainer
              extended bywicket.markup.html.form.FormComponent
                  extended bywicket.markup.html.form.Button
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ImageButton

public class Button
extends FormComponent

A form button.

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wicket.markup.html.form.FormComponent
FormComponent.IVisitor
 
Nested classes inherited from class wicket.Component
Component.ComponentModelChange, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.markup.html.form.FormComponent
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, NO_INVALID_INPUT
 
Fields inherited from class wicket.Component
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4
 
Constructor Summary
Button(java.lang.String id)
           
 
Method Summary
protected  java.lang.String getOnClickScript()
           
protected  IModel initModel()
          Called when a null model is about to be retrieved in order to allow a subclass to provide an initial model.
protected  void onComponentTag(ComponentTag tag)
          Processes the component tag.
protected  void onSubmit()
          Override this method to provide special submit handling in a multi-button form
protected  void updateModel()
          Implemented by form component subclass to update the form component's model.
 
Methods inherited from class wicket.markup.html.form.FormComponent
add, getForm, getInput, getModelValue, getValidationType, getValidators, getValue, inputAsInt, inputAsInt, inputAsIntArray, inputAsStringArray, invalid, isPersistent, isValid, isValidated, onInvalid, onModelChanged, onValid, setModelValue, setPersistent, supportsPersistence, valid, validate
 
Methods inherited from class wicket.markup.html.WebMarkupContainer
getMarkupType, onRender
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, onComponentTagBody, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, debug, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getId, getLocale, getLocalizer, getModel, getModelObject, getModelObjectAsString, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResource, getResponse, getSession, getString, getString, getString, getStyle, hasErrorMessage, hasFeedbackMessage, info, internalOnBeginRequest, internalOnEndRequest, internalOnModelChanged, internalOnModelChanging, isAncestorOf, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onBeginRequest, onEndRequest, onModelChanging, onSessionAttach, redirectTo, remove, render, renderComponent, renderComponentTag, rendered, replaceComponentTagBody, sameRootModel, sameRootModel, setFlag, setModelObject, setRedirect, setRenderBodyOnly, setResponsePage, setShouldEscapeModelStrings, setVersioned, setVisible, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Button

public Button(java.lang.String id)
See Also:
Component.Component(String)
Method Detail

getOnClickScript

protected java.lang.String getOnClickScript()
Returns:
Any onClick JavaScript that should be used

initModel

protected IModel initModel()
Description copied from class: Component
Called when a null model is about to be retrieved in order to allow a subclass to provide an initial model. This gives FormComponent, for example, an opportunity to instantiate a model on the fly using the containing Form's model.

Overrides:
initModel in class Component
Returns:
The model
See Also:
Component.initModel()

onComponentTag

protected void onComponentTag(ComponentTag tag)
Processes the component tag.

Overrides:
onComponentTag in class FormComponent
Parameters:
tag - Tag to modify
See Also:
Component.onComponentTag(ComponentTag)

onSubmit

protected void onSubmit()
Override this method to provide special submit handling in a multi-button form


updateModel

protected void updateModel()
Description copied from class: FormComponent
Implemented by form component subclass to update the form component's model.

Specified by:
updateModel in class FormComponent
See Also:
FormComponent.updateModel()


Copyright © 2004-2005 Wicket developers. All Rights Reserved.