Class BaseActionComponent

java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.eclnt.jsfserver.elements.BaseComponent
org.eclnt.jsfserver.elements.BaseActionComponent
All Implemented Interfaces:
Serializable, EventListener, javax.faces.component.ActionSource, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, IBaseComponent, ICCComponentProperties, ICCServerConstants, CLogConstants
Direct Known Subclasses:
BaseHTMLActionComponent, BasePopupComponent, org.eclnt.jsfserver.elements.impl.ROWPAGEBEANINCLUDEComponent, StructureComponent

public abstract class BaseActionComponent extends BaseComponent implements javax.faces.component.ActionSource, CLogConstants
Is decoding "ID.action" and is invoking the Action accordingly.
See Also:
  • Field Details

    • m_actionListeners

      protected ArrayList<javax.faces.event.ActionListener> m_actionListeners
    • m_immediate

      protected boolean m_immediate
  • Constructor Details

    • BaseActionComponent

      public BaseActionComponent()
  • Method Details

    • saveState

      public Object saveState(javax.faces.context.FacesContext context)
      Specified by:
      saveState in interface javax.faces.component.StateHolder
      Overrides:
      saveState in class BaseComponent
    • restoreState

      public void restoreState(javax.faces.context.FacesContext context, Object state)
      Specified by:
      restoreState in interface javax.faces.component.StateHolder
      Overrides:
      restoreState in class BaseComponent
    • decode

      public void decode(javax.faces.context.FacesContext context)
      Overrides:
      decode in class BaseComponent
    • decode

      public void decode(javax.faces.context.FacesContext context, String clientId, String commandSuffix)
    • triggerActionEvent

      public BaseActionEvent triggerActionEvent(javax.faces.context.FacesContext context, String command, String value, boolean immediate)
      Parameters:
      immediate - false => normal execution in INVOKE-phase, true => execution in UPDATE-phase
    • processActionEventAfterCreation

      protected void processActionEventAfterCreation(BaseActionEvent actionEvent)
      This method is called in the event processing within the decode phase just after an event is created.
    • createBaseActionEvent

      protected BaseActionEvent createBaseActionEvent(String command, String value)
      Creates an faces event to be passed into the actionListener processing. This method can be overridden in case of adding own events that are not covered by the general processing.
    • broadcast

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

      public void clearActionListeners()
    • addActionListener

      public void addActionListener(javax.faces.event.ActionListener actionListener)
      Specified by:
      addActionListener in interface javax.faces.component.ActionSource
    • getFirstActionListener

      public javax.faces.event.ActionListener getFirstActionListener()
      Returns:
      Returns the action listener of this component. By definition this is the one defined via the actionListener statement.
    • getActionListenersAsList

      public List<javax.faces.event.ActionListener> getActionListenersAsList()
    • getActionListeners

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

      public boolean isImmediate()
      Specified by:
      isImmediate in interface javax.faces.component.ActionSource
    • removeActionListener

      public void removeActionListener(javax.faces.event.ActionListener actionListener)
      Specified by:
      removeActionListener in interface javax.faces.component.ActionSource
    • getAction

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

      public void setAction(javax.faces.el.MethodBinding methodBinding)
      Specified by:
      setAction in interface javax.faces.component.ActionSource
    • getActionListener

      @Deprecated public javax.faces.el.MethodBinding getActionListener()
      Deprecated.
      Specified by:
      getActionListener in interface javax.faces.component.ActionSource
    • setActionListener

      @Deprecated public void setActionListener(javax.faces.el.MethodBinding methodBinding)
      Deprecated.
      Specified by:
      setActionListener in interface javax.faces.component.ActionSource
    • setImmediate

      public void setImmediate(boolean arg0)
      Specified by:
      setImmediate in interface javax.faces.component.ActionSource