java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UICommand
All Implemented Interfaces:
ActionSource2, PartialStateHolder, ComponentSystemEventListener, SystemEventListenerHolder
Direct Known Subclasses:
HtmlCommandButton, HtmlCommandLink
UICommand is a UIComponent that represents a user interface component which, when activated by the user, triggers an application specific "command" or "action". Such a component is typically rendered as a push button, a menu item, or a hyperlink.
When the decode()
method of this UICommand , or
its corresponding Renderer , detects that this control has been
activated, it will queue an ActionEvent .
Later on, the broadcast()
method will ensure that this
event is broadcast to all interested listeners.
Listeners will be invoked in the following order:
MethodBinding
).
By default, the rendererType
property must be set to
"javax.faces.Button
". This value can be changed by calling the
setRendererType()
method.
Nested Class Summary: | ||
---|---|---|
enum class | UICommand.PropertyKeys | Properties that are tracked by state saving. |
Field Summary | ||
---|---|---|
public static final String | COMPONENT_TYPE | The standard component type for this component. |
public static final String | COMPONENT_FAMILY | The standard component family for this component. |
Constructor: |
---|
Create a new UICommand instance with default property values. |
Method from javax.faces.component.UICommand Summary: |
---|
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getFamily, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.faces.component.UICommand Detail: |
---|
|
In addition to to the default UIComponent#broadcast
processing, pass the ActionEvent being broadcast to the
method referenced by |
Deprecated! This - has been replaced by #getActionExpression .
|
|
Deprecated! Use - #getActionListeners instead.
|
|
|
Returns the |
The immediate flag. |
Intercept |
|
Deprecated! This - has been replaced by #setActionExpression(javax.el.MethodExpression) .
|
|
Deprecated! This - has been replaced by #addActionListener(javax.faces.event.ActionListener) .
|
|
Sets the |