Interface ActionSource
- 
- All Known Subinterfaces:
- ActionSource2
 - All Known Implementing Classes:
- HtmlCommandButton,- HtmlCommandLink,- HtmlCommandScript,- UICommand,- UIViewAction
 
 public interface ActionSourceActionSource is an interface that may be implemented by any concrete UIComponentthat wishes to be a source ofActionEvents, including the ability to invoke application actions via the defaultActionListenermechanism.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddActionListener(ActionListener listener)Add a newActionListenerto the set of listeners interested in being notified whenActionEvents occur.ActionListener[]getActionListeners()Return the set of registeredActionListeners for thisActionSourceinstance.booleanisImmediate()Return a flag indicating that the defaultActionListenerprovided by the Jakarta 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.voidremoveActionListener(ActionListener listener)Remove an existingActionListener(if any) from the set of listeners interested in being notified whenActionEvents occur.voidsetImmediate(boolean immediate)Set the "immediate execution" flag for thisUIComponent.
 
- 
- 
- 
Method Detail- 
isImmediateboolean isImmediate() Return a flag indicating that the default ActionListenerprovided by the Jakarta 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 befalse.- Returns:
- trueif immediate,- falseotherwise.
 
 - 
setImmediatevoid setImmediate(boolean immediate) Set the "immediate execution" flag for this UIComponent.- Parameters:
- immediate- The new immediate execution flag
 
 - 
addActionListenervoid addActionListener(ActionListener listener) Add a new ActionListenerto the set of listeners interested in being notified whenActionEvents occur.- Parameters:
- listener- The- ActionListenerto be added
- Throws:
- NullPointerException- if- listeneris- null
 
 - 
getActionListenersActionListener[] getActionListeners() Return the set of registered ActionListeners for thisActionSourceinstance. If there are no registered listeners, a zero-length array is returned.- Returns:
- the action listeners, or a zero-length array.
 
 - 
removeActionListenervoid removeActionListener(ActionListener listener) Remove an existing ActionListener(if any) from the set of listeners interested in being notified whenActionEvents occur.- Parameters:
- listener- The- ActionListenerto be removed
- Throws:
- NullPointerException- if- listeneris- null
 
 
- 
 
-