Class Button
A form button, when submited the callback methods will be invoked based on
the valid state of the form
-
picon\Component
implements
picon\InjectOnWakeup,
picon\Identifiable,
picon\Detachable
-
picon\MarkupContainer
-
picon\LabeledMarkupContainer
-
picon\FormComponent
-
picon\Button
implements
picon\FormSubmitListener,
picon\FormSubmitter
Namespace: picon
Package: web\markup\html\form
Author:
Martin Cassidy
Todo:
This currently needs to be a child of a Form - it should provide the option of
manually specifying the form to submit so the button may be placed elsewhere
Located at web/markup/html/form/Button.php
Methods summary
public
|
#
__construct( string $id, callback $onSubmit = null, callback $onError = null )
Parameters
- $id
string
- $onSubmit
callback Called when the form is valid
- $onError
callback Called when the form is not valid
Overrides
|
public
boolean
|
#
isStateless( )
Gets whether or not this component is stateless
Gets whether or not this component is stateless
Returns
boolean
Overrides
|
public
|
|
public
|
|
public
|
|
protected
|
#
convertInput( )
Convert the input from its raw format the that which is expected Sub classes
which need to handle this themselves should override this method and have
getType() throw UnsupportedOperationException
Convert the input from its raw format the that which is expected Sub classes
which need to handle this themselves should override this method and have
getType() throw UnsupportedOperationException
|
public
|
#
updateModel( )
Update the model object of the form component with the new object value.
Update the model object of the form component with the new object value.
This should only be called after the conponent has been validated. Do not
call this method unless you know what you are doing!
Overrides
|
protected
|
|
Methods inherited from picon\FormComponent
add(),
addValidator(),
beforeComponentRender(),
getConvertedInput(),
getForm(),
getLabel(),
getName(),
getRawInput(),
getRawInputArray(),
getValue(),
inputChanged(),
invalid(),
isEmptyInput(),
isMultiPart(),
isRequired(),
isValid(),
onComponentTag(),
processInput(),
setConvertedInput(),
setDisabled(),
setRequired(),
valid(),
validate(),
validateRequired()
|
Methods inherited from picon\MarkupContainer
addComponent(),
addOrReplace(),
afterPageRender(),
beforePageRender(),
childExists(),
detach(),
get(),
getChildren(),
getMarkupForChild(),
hasChildren(),
internalInitialize(),
loadAssociatedMarkup(),
onComponentAdded(),
onComponentTagBody(),
onRender(),
remove(),
visitChildren()
|
Methods inherited from picon\Component
addBehaviour(),
afterComponentRender(),
checkComponentTag(),
checkComponentTagAttribute(),
error(),
fatel(),
fireInitialize(),
generateUrlFor(),
getApplication(),
getBehaviourById(),
getBehaviours(),
getComponentKey(),
getComponentPath(),
getId(),
getIdentifier(),
getLocalizer(),
getMarkUpSource(),
getMarkup(),
getMarkupId(),
getModel(),
getModelObject(),
getModelObjectAsString(),
getPage(),
getParent(),
getRequest(),
getRequestCycle(),
getResponse(),
hasErrorMessage(),
hasMessage(),
info(),
internalRenderComponent(),
isAuto(),
isBeforePageRender(),
isInitialized(),
isRendered(),
newMarkupSource(),
onInitialize(),
render(),
renderAll(),
renderElement(),
renderHead(),
renderHeadContainer(),
setAfterComponentRenderCallback(),
setAfterPageRenderCallback(),
setBeforeComponentRenderCallback(),
setBeforePageRenderCallback(),
setMarkup(),
setMarkupId(),
setModel(),
setModelObject(),
setOnComponentTagBodyCallback(),
setOnComponentTagCallback(),
setOutputMarkupId(),
setPage(),
setParent(),
setRenderBodyOnly(),
setRenderHeadCallback(),
setVisible(),
success(),
urlForListener(),
urlForPage(),
urlForPageInstance(),
visitParents(),
warning()
|