com.sun.rave.web.ui.component
Class Button

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UICommand
              extended bycom.sun.rave.web.ui.component.ButtonBase
                  extended bycom.sun.rave.web.ui.component.Button
All Implemented Interfaces:
javax.faces.component.ActionSource, ComplexComponent, javax.faces.component.StateHolder

public class Button
extends ButtonBase
implements ComplexComponent

Component that represents a submit button.


Field Summary
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
Button()
           
 
Method Summary
 java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
          Implement this method so that it returns the DOM ID of the HTML element which should receive focus when the component receives focus, and to which a component label should apply.
 
Methods inherited from class com.sun.rave.web.ui.component.ButtonBase
getAction, getActionListener, getAlt, getFamily, getImageURL, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getStyle, getStyleClass, getTabIndex, getText, getToolTip, getValueBinding, isDisabled, isEscape, isMini, isNoTextPadding, isPrimary, isReset, isVisible, restoreState, saveState, setAction, setActionListener, setAlt, setDisabled, setEscape, setImageURL, setMini, setNoTextPadding, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setPrimary, setReset, setStyle, setStyleClass, setTabIndex, setText, setToolTip, setValueBinding, setVisible
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Button

public Button()
Method Detail

getPrimaryElementID

public java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
Description copied from interface: ComplexComponent
Implement this method so that it returns the DOM ID of the HTML element which should receive focus when the component receives focus, and to which a component label should apply. Usually, this is the first element that accepts input.

Specified by:
getPrimaryElementID in interface ComplexComponent
Parameters:
context - The FacesContext for the request
Returns:
The client id, also the JavaScript element id