javax.faces.component

Class UICommand

Implemented Interfaces:
ActionSource, StateHolder
Known Direct Subclasses:
HtmlCommandButton, HtmlCommandLink

public class UICommand
extends UIComponentBase
implements ActionSource

see Javadoc of JSF Specification
Version:
$Revision: 166994 $ $Date: 2004-07-02 00:12:40 +0200 (Fri, 02 Jul 2004) $
Author:
Manfred Geiler (latest modification by $Author: mwessendorf $)

Field Summary

static String
COMPONENT_FAMILY
static String
COMPONENT_TYPE

Constructor Summary

UICommand()

Method Summary

void
addActionListener(ActionListener listener)
void
broadcast(FacesEvent event)
MethodBinding
getAction()
MethodBinding
getActionListener()
ActionListener[]
getActionListeners()
String
getFamily()
Object
getValue()
boolean
isImmediate()
void
queueEvent(FacesEvent event)
void
removeActionListener(ActionListener listener)
void
restoreState(FacesContext context, Object state)
Object
saveState(FacesContext context)
void
setAction(MethodBinding action)
void
setActionListener(MethodBinding actionListener)
void
setImmediate(boolean immediate)
void
setValue(Object value)

Methods inherited from class javax.faces.component.UIComponentBase

addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding

Methods inherited from class javax.faces.component.UIComponent

addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getFamily, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, setId, setParent, setRendered, setRendererType, setValueBinding

Field Details

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY

COMPONENT_TYPE

public static final String COMPONENT_TYPE

Constructor Details

UICommand

public UICommand()

Method Details

addActionListener

public void addActionListener(ActionListener listener)
Specified by:
addActionListener in interface ActionSource

broadcast

public void broadcast(FacesEvent event)
            throws AbortProcessingException
Overrides:
broadcast in interface UIComponentBase

getAction

public MethodBinding getAction()
Specified by:
getAction in interface ActionSource

getActionListener

public MethodBinding getActionListener()
Specified by:
getActionListener in interface ActionSource

getActionListeners

public ActionListener[] getActionListeners()
Specified by:
getActionListeners in interface ActionSource

getFamily

public String getFamily()
Overrides:
getFamily in interface UIComponent

getValue

public Object getValue()

isImmediate

public boolean isImmediate()
Specified by:
isImmediate in interface ActionSource

queueEvent

public void queueEvent(FacesEvent event)
Overrides:
queueEvent in interface UIComponentBase

removeActionListener

public void removeActionListener(ActionListener listener)
Specified by:
removeActionListener in interface ActionSource

restoreState

public void restoreState(FacesContext context,
                         Object state)
Overrides:
restoreState in interface UIComponentBase

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in interface UIComponentBase

setAction

public void setAction(MethodBinding action)
Specified by:
setAction in interface ActionSource

setActionListener

public void setActionListener(MethodBinding actionListener)
Specified by:
setActionListener in interface ActionSource

setImmediate

public void setImmediate(boolean immediate)
Specified by:
setImmediate in interface ActionSource

setValue

public void setValue(Object value)