Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.faces.component
Class UICommand  view UICommand download UICommand.java

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UICommand
All Implemented Interfaces:
ActionSource, StateHolder

public class UICommand
extends UIComponentBase
implements ActionSource

see Javadoc of JSF Specification

Version:
$Revision: 166994 $ $Date: 2004-07-01 18:12:40 -0400 (Thu, 01 Jul 2004) $

Field Summary
private  javax.faces.el.MethodBinding _action
           
private  javax.faces.el.MethodBinding _actionListener
           
private  java.lang.Boolean _immediate
           
private  java.lang.Object _value
           
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
private static boolean DEFAULT_IMMEDIATE
           
private static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponentBase
 
Constructor Summary
UICommand()
           
 
Method Summary
 void addActionListener(javax.faces.event.ActionListener listener)
           
 void broadcast(javax.faces.event.FacesEvent event)
           
 javax.faces.el.MethodBinding getAction()
           
 javax.faces.el.MethodBinding getActionListener()
           
 javax.faces.event.ActionListener[] getActionListeners()
           
 java.lang.String getFamily()
           
 java.lang.Object getValue()
           
 boolean isImmediate()
           
 void queueEvent(javax.faces.event.FacesEvent event)
           
 void removeActionListener(javax.faces.event.ActionListener listener)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setAction(javax.faces.el.MethodBinding action)
           
 void setActionListener(javax.faces.el.MethodBinding actionListener)
           
 void setImmediate(boolean immediate)
           
 void setValue(java.lang.Object value)
           
 
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, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_action

private javax.faces.el.MethodBinding _action

_actionListener

private javax.faces.el.MethodBinding _actionListener

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

private static final java.lang.String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values

DEFAULT_IMMEDIATE

private static final boolean DEFAULT_IMMEDIATE
See Also:
Constant Field Values

_immediate

private java.lang.Boolean _immediate

_value

private java.lang.Object _value
Constructor Detail

UICommand

public UICommand()
Method Detail

setAction

public void setAction(javax.faces.el.MethodBinding action)
Specified by:
setAction in interface ActionSource

getAction

public javax.faces.el.MethodBinding getAction()
Specified by:
getAction in interface ActionSource

setActionListener

public void setActionListener(javax.faces.el.MethodBinding actionListener)
Specified by:
setActionListener in interface ActionSource

getActionListener

public javax.faces.el.MethodBinding getActionListener()
Specified by:
getActionListener in interface ActionSource

addActionListener

public void addActionListener(javax.faces.event.ActionListener listener)
Specified by:
addActionListener in interface ActionSource

getActionListeners

public javax.faces.event.ActionListener[] getActionListeners()
Specified by:
getActionListeners in interface ActionSource

removeActionListener

public void removeActionListener(javax.faces.event.ActionListener listener)
Specified by:
removeActionListener in interface ActionSource

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class UIComponentBase

queueEvent

public void queueEvent(javax.faces.event.FacesEvent event)
Overrides:
queueEvent in class UIComponentBase

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class UIComponent

setImmediate

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

isImmediate

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

setValue

public void setValue(java.lang.Object value)

getValue

public java.lang.Object getValue()

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIComponentBase