public class HtmlCommandButton extends UICommand
Type | Phases | Description |
---|---|---|
javax.faces.event.ActionEvent |
Invoke Application Apply Request Values |
Event delivered when the "action" of the component has been invoked; for example, by clicking on a button. The action may result in page navigation. |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
bindings
Constructor and Description |
---|
HtmlCommandButton()
Construct an instance of the HtmlCommandButton.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccesskey()
Gets Sets the access key for this element.
|
String |
getAlt()
Gets Specifies alternative text that can be used by a browser that can't show this element.
|
String |
getDir()
Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
|
String |
getFamily() |
String |
getImage()
Gets Absolute or relative URL of the image
|
String |
getLabel()
Gets A diplay name for this component.
|
String |
getLang()
Gets The base language of this document.
|
String |
getOnblur()
Gets Specifies a script to be invoked when the element loses focus.
|
String |
getOnchange()
Gets Specifies a script to be invoked when the element is modified.
|
String |
getOnclick()
Gets Script to be invoked when the element is clicked.
|
String |
getOndblclick()
Gets Script to be invoked when the element is double-clicked.
|
String |
getOnfocus()
Gets Specifies a script to be invoked when the element receives focus.
|
String |
getOnkeydown()
Gets Script to be invoked when a key is pressed down over this element.
|
String |
getOnkeypress()
Gets Script to be invoked when a key is pressed over this element.
|
String |
getOnkeyup()
Gets Script to be invoked when a key is released over this element.
|
String |
getOnmousedown()
Gets Script to be invoked when the pointing device is pressed over this element.
|
String |
getOnmousemove()
Gets Script to be invoked when the pointing device is moved while it is in this element.
|
String |
getOnmouseout()
Gets Script to be invoked when the pointing device is moves out of this element.
|
String |
getOnmouseover()
Gets Script to be invoked when the pointing device is moved into this element.
|
String |
getOnmouseup()
Gets Script to be invoked when the pointing device is released over this element.
|
String |
getOnselect()
Gets Specifies a script to be invoked when the element is selected.
|
String |
getStyle()
Gets CSS styling instructions.
|
String |
getStyleClass()
Gets The CSS class for this element.
|
String |
getTabindex()
Gets Specifies the position of this element within the tab order of the document.
|
String |
getTitle()
Gets An advisory title for this element.
|
String |
getType()
Gets A hint to the user agent about the content type of the linked resource.
|
boolean |
isDisabled()
Gets When true, this element cannot receive focus.
|
boolean |
isReadonly()
Gets When true, indicates that this component cannot be modified by the user.
|
void |
restoreState(FacesContext facesContext,
Object state)
Invoked in the "restore view" phase, this initialises this
object's members from the values saved previously into the
provided state object.
|
Object |
saveState(FacesContext facesContext)
Invoked after the render phase has completed, this method
returns an object which can be passed to the restoreState
of some other instance of UIComponentBase to reset that
object's state to the same values as this object currently
has.
|
void |
setAccesskey(String accesskey)
Sets Sets the access key for this element.
|
void |
setAlt(String alt)
Sets Specifies alternative text that can be used by a browser that can't show this element.
|
void |
setDir(String dir)
Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
|
void |
setDisabled(boolean disabled)
Sets When true, this element cannot receive focus.
|
void |
setImage(String image)
Sets Absolute or relative URL of the image
|
void |
setLabel(String label)
Sets A diplay name for this component.
|
void |
setLang(String lang)
Sets The base language of this document.
|
void |
setOnblur(String onblur)
Sets Specifies a script to be invoked when the element loses focus.
|
void |
setOnchange(String onchange)
Sets Specifies a script to be invoked when the element is modified.
|
void |
setOnclick(String onclick)
Sets Script to be invoked when the element is clicked.
|
void |
setOndblclick(String ondblclick)
Sets Script to be invoked when the element is double-clicked.
|
void |
setOnfocus(String onfocus)
Sets Specifies a script to be invoked when the element receives focus.
|
void |
setOnkeydown(String onkeydown)
Sets Script to be invoked when a key is pressed down over this element.
|
void |
setOnkeypress(String onkeypress)
Sets Script to be invoked when a key is pressed over this element.
|
void |
setOnkeyup(String onkeyup)
Sets Script to be invoked when a key is released over this element.
|
void |
setOnmousedown(String onmousedown)
Sets Script to be invoked when the pointing device is pressed over this element.
|
void |
setOnmousemove(String onmousemove)
Sets Script to be invoked when the pointing device is moved while it is in this element.
|
void |
setOnmouseout(String onmouseout)
Sets Script to be invoked when the pointing device is moves out of this element.
|
void |
setOnmouseover(String onmouseover)
Sets Script to be invoked when the pointing device is moved into this element.
|
void |
setOnmouseup(String onmouseup)
Sets Script to be invoked when the pointing device is released over this element.
|
void |
setOnselect(String onselect)
Sets Specifies a script to be invoked when the element is selected.
|
void |
setReadonly(boolean readonly)
Sets When true, indicates that this component cannot be modified by the user.
|
void |
setStyle(String style)
Sets CSS styling instructions.
|
void |
setStyleClass(String styleClass)
Sets The CSS class for this element.
|
void |
setTabindex(String tabindex)
Sets Specifies the position of this element within the tab order of the document.
|
void |
setTitle(String title)
Sets An advisory title for this element.
|
void |
setType(String type)
Sets A hint to the user agent about the content type of the linked resource.
|
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
encodeAll, getContainerClientId, getValueExpression, setValueExpression
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public HtmlCommandButton()
public String getStyle()
public void setStyle(String style)
style
- the new style valuepublic String getStyleClass()
public void setStyleClass(String styleClass)
styleClass
- the new styleClass valuepublic String getDir()
public void setDir(String dir)
dir
- the new dir valuepublic String getLang()
public void setLang(String lang)
lang
- the new lang valuepublic String getTitle()
public void setTitle(String title)
title
- the new title valuepublic String getOnclick()
public void setOnclick(String onclick)
onclick
- the new onclick valuepublic String getOndblclick()
public void setOndblclick(String ondblclick)
ondblclick
- the new ondblclick valuepublic String getOnmousedown()
public void setOnmousedown(String onmousedown)
onmousedown
- the new onmousedown valuepublic String getOnmouseup()
public void setOnmouseup(String onmouseup)
onmouseup
- the new onmouseup valuepublic String getOnmouseover()
public void setOnmouseover(String onmouseover)
onmouseover
- the new onmouseover valuepublic String getOnmousemove()
public void setOnmousemove(String onmousemove)
onmousemove
- the new onmousemove valuepublic String getOnmouseout()
public void setOnmouseout(String onmouseout)
onmouseout
- the new onmouseout valuepublic String getOnkeypress()
public void setOnkeypress(String onkeypress)
onkeypress
- the new onkeypress valuepublic String getOnkeydown()
public void setOnkeydown(String onkeydown)
onkeydown
- the new onkeydown valuepublic String getOnkeyup()
public void setOnkeyup(String onkeyup)
onkeyup
- the new onkeyup valuepublic String getOnblur()
public void setOnblur(String onblur)
onblur
- the new onblur valuepublic String getOnfocus()
public void setOnfocus(String onfocus)
onfocus
- the new onfocus valuepublic String getOnchange()
public void setOnchange(String onchange)
onchange
- the new onchange valuepublic String getOnselect()
public void setOnselect(String onselect)
onselect
- the new onselect valuepublic String getAccesskey()
public void setAccesskey(String accesskey)
accesskey
- the new accesskey valuepublic String getTabindex()
public void setTabindex(String tabindex)
tabindex
- the new tabindex valuepublic boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- the new disabled valuepublic boolean isReadonly()
public void setReadonly(boolean readonly)
readonly
- the new readonly valuepublic String getLabel()
public void setLabel(String label)
label
- the new label valuepublic String getImage()
public void setImage(String image)
image
- the new image valuepublic String getAlt()
public void setAlt(String alt)
alt
- the new alt valuepublic String getType()
public void setType(String type)
type
- the new type valuepublic Object saveState(FacesContext facesContext)
UIComponentBase
saveState
in interface StateHolder
saveState
in class UICommand
public void restoreState(FacesContext facesContext, Object state)
UIComponentBase
restoreState
in interface StateHolder
restoreState
in class UICommand
state
- is an object previously returned by
the saveState method of this class.Copyright © 2013 Apache Software Foundation. All Rights Reserved.