public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<Parameter> parameters) { // This method is weird... Creating a dummy impl class seems stupid, yet I don't see any other way... if(context == null) { throw new NullPointerException("context argument must not be null"); } if(component == null) { throw new NullPointerException("component argument must not be null"); } if(eventName == null) { throw new NullPointerException("eventName argument must not be null"); } return new ClientBehaviorContextImpl(context,component,eventName,sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }
/** * <p class="changed_added_2_0">Creates a ClientBehaviorContext instance.</p> * * @param context the <code>FacesContext</code> for the current request. * @param component the component instance to which the * <code>ClientBehavior</code> is attached. * @param eventName the name of the behavior event to which the * <code>ClientBehavior</code> is attached. * @param sourceId the id to use as the ClientBehavior's "source". * @param parameters the collection of parameters for submitting * ClientBehaviors to include in the request. * @return a <code>ClientBehaviorContext</code> instance configured with the * provided values. * @throws NullPointerException if <code>context</code>, * <code>component</code> or <code>eventName</code> * is <code>null</code> * * @since 2.0 */ public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) { return new ClientBehaviorContextImpl(context, component, eventName, sourceId, parameters); }