public abstract class Button extends AbstractFormComponent
This component is useful for attaching JavaScript onclick event handlers.
Constructor and Description |
---|
Button() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientId()
Returns the component's client-side element id.
|
java.lang.String |
getDisplayName()
May be implemented to return a user-presentable, localized name for the component, which is
used in labels or error messages.
|
abstract java.lang.String |
getLabel() |
boolean |
isDisabled()
Returns true if the component is disabled.
|
protected void |
renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle) |
protected void |
rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle) |
getAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, isRequired, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
public Button()
protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)
public java.lang.String getClientId()
IFormComponent
IRequestCycle.getUniqueId(String)
to ensure that it is unique.
The component is expected to write an id attribute (if it has a non null id). As with
IFormComponent.getName()
, if a component renders more than once (such as inside a loop) then on
each render it will have a different clientId.IFormComponent.getClientId()
public java.lang.String getDisplayName()
IFormComponent
IFormComponent.getDisplayName()
public boolean isDisabled()
IFormComponent
IFormComponent.isDisabled()
public abstract java.lang.String getLabel()