|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ActionSource is an interface that may be implemented
by any concrete UIComponent
that wishes to be a source of
ActionEvent
s, including the ability to invoke application
actions via the default ActionListener
mechanism.
Method Summary | |
void |
addActionListener(javax.faces.event.ActionListener listener)
Add a new ActionListener to the set of listeners interested
in being notified when ActionEvent s occur. |
javax.faces.el.MethodBinding |
getAction()
Return the MethodBinding pointing at the application
action to be invoked, if this UIComponent is activated by
the user, during the Apply Request Values or Invoke
Application phase of the request processing lifecycle,
depending on the value of the immediate
property. |
javax.faces.el.MethodBinding |
getActionListener()
Return the MethodBinding pointing at an action
listener method to be invoked, if this UIComponent is
activated by the user, during the Apply Request Values
or Invoke Application phase of the request processing
lifecycle, depending upon the value of the immediate
property. |
javax.faces.event.ActionListener[] |
getActionListeners()
Return the set of registered ActionListener s for this
ActionSource instance. |
boolean |
isImmediate()
Return a flag indicating that the default ActionListener
provided by the JavaServer Faces implementation should be executed
immediately (that is, during Apply Request Values phase
of the request processing lifecycle), rather than waiting until the
Invoke Application phase. |
void |
removeActionListener(javax.faces.event.ActionListener listener)
Remove an existing ActionListener (if any) from the set of
listeners interested in being notified when ActionEvent s
occur. |
void |
setAction(javax.faces.el.MethodBinding action)
Set the MethodBinding pointing at the appication
action to be invoked, if this UIComponent is activated by
the user, during the Apply Request Values or Invoke
Application phase of the request processing lifecycle,
depending on the value of the immediate
property. |
void |
setActionListener(javax.faces.el.MethodBinding actionListener)
Set the MethodBinding pointing at an action listener
method to be invoked, if this UIComponent is activated by
the user, during the Apply Request Values or Invoke
Application phase of the request processing lifecycle,
depending upon the value of the immmediate
property. |
void |
setImmediate(boolean immediate)
Set the "immediate execution" flag for this UIComponent . |
Method Detail |
public javax.faces.el.MethodBinding getAction()
Return the MethodBinding
pointing at the application
action to be invoked, if this UIComponent
is activated by
the user, during the Apply Request Values or Invoke
Application phase of the request processing lifecycle,
depending on the value of the immediate
property.
public void setAction(javax.faces.el.MethodBinding action)
Set the MethodBinding
pointing at the appication
action to be invoked, if this UIComponent
is activated by
the user, during the Apply Request Values or Invoke
Application phase of the request processing lifecycle,
depending on the value of the immediate
property.
Any method referenced by such an expression must be public, with
a return type of String
, and accept no parameters.
action
- The new MethodBinding expressionpublic javax.faces.el.MethodBinding getActionListener()
Return the MethodBinding
pointing at an action
listener method to be invoked, if this UIComponent
is
activated by the user, during the Apply Request Values
or Invoke Application phase of the request processing
lifecycle, depending upon the value of the immediate
property.
public void setActionListener(javax.faces.el.MethodBinding actionListener)
Set the MethodBinding
pointing at an action listener
method to be invoked, if this UIComponent
is activated by
the user, during the Apply Request Values or Invoke
Application phase of the request processing lifecycle,
depending upon the value of the immmediate
property.
Any method referenced by such an expression must be public, with
a return type of void
, and accept a single parameter of
type ActionEvent
.
actionListener
- The new method binding expressionpublic boolean isImmediate()
Return a flag indicating that the default ActionListener
provided by the JavaServer Faces implementation should be executed
immediately (that is, during Apply Request Values phase
of the request processing lifecycle), rather than waiting until the
Invoke Application phase. The default value for this
property must be false
.
public void setImmediate(boolean immediate)
Set the "immediate execution" flag for this UIComponent
.
immediate
- The new immediate execution flagpublic void addActionListener(javax.faces.event.ActionListener listener)
Add a new ActionListener
to the set of listeners interested
in being notified when ActionEvent
s occur.
listener
- The ActionListener
to be added
java.lang.NullPointerException
- if listener
is null
public javax.faces.event.ActionListener[] getActionListeners()
Return the set of registered ActionListener
s for this
ActionSource
instance. If there are no registered listeners,
a zero-length array is returned.
public void removeActionListener(javax.faces.event.ActionListener listener)
Remove an existing ActionListener
(if any) from the set of
listeners interested in being notified when ActionEvent
s
occur.
listener
- The ActionListener
to be removed
java.lang.NullPointerException
- if listener
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |