Package org.apache.tapestry.internal.event

Examples of org.apache.tapestry.internal.event.ComponentEventProperty.addListener()


    public void addEventListener(String componentId, String[] events,
            String methodName, String formId, boolean validateForm, boolean async)
    {
        ComponentEventProperty property = getComponentEvents(componentId);
       
        property.addListener(events, methodName, formId, validateForm, async);
    }
   
    /**
     * Adds a deferred event listener binding for the specified html element.
     *
 
View Full Code Here


    public void addElementEventListener(String elementId, String[] events,
            String methodName, String formId, boolean validateForm, boolean async)
    {
        ComponentEventProperty property = getElementEvents(elementId);
       
        property.addListener(events, methodName, formId, validateForm, async);
    }
   
    /**
     * Returns whether or not the specified component has any
     * connected events.
View Full Code Here

        if (property == null) {
            property = new ComponentEventProperty(componentId);
            _componentEvents.put(componentId, property);
        }

        property.addListener(events, methodName, formId, validateForm, async, focus, autoSubmit);
    }
   
    /**
     * {@inheritDoc}
     */
 
View Full Code Here

        if (property == null) {
            property = new ComponentEventProperty(elementId);
            _elementEvents.put(elementId, property);
        }

        property.addListener(events, methodName, formId, validateForm, async, focus, true);
    }

    public void connectAutoSubmitEvents(IComponent component, IForm form)
    {
        Defense.notNull(form, "form");
View Full Code Here

        IComponentSpecification spec = newMock(IComponentSpecification.class);
        IComponentEventInvoker invoker = newMock(IComponentEventInvoker.class);
        IComponent comp = newComponent(spec, "comp1", "path/");

        ComponentEventProperty p = new ComponentEventProperty("comp1");
        p.addListener(new String[] {"onClick"}, "testFoo", null, false, false, false, false);

        Map compEvents = new HashMap();
        compEvents.put("comp1", p);
       
        expect(spec.getComponentEvents()).andReturn(compEvents);
View Full Code Here

    public void addEventListener(String componentId, String[] events,
            String methodName, String formId, boolean validateForm, boolean async, boolean focus)
    {
        ComponentEventProperty property = getComponentEvents(componentId);
       
        property.addListener(events, methodName, formId, validateForm, async, focus);
    }
   
    /**
     * {@inheritDoc}
     */
 
View Full Code Here

    public void addElementEventListener(String elementId, String[] events,
            String methodName, String formId, boolean validateForm, boolean async, boolean focus)
    {
        ComponentEventProperty property = getElementEvents(elementId);
       
        property.addListener(events, methodName, formId, validateForm, async, focus);
    }
   
    /**
     * {@inheritDoc}
     */
 
View Full Code Here

        if (property == null) {
            property = new ComponentEventProperty(componentId);
            _componentEvents.put(componentId, property);
        }

        property.addListener(events, methodName, formId, validateForm, async, focus, autoSubmit);
    }
   
    /**
     * {@inheritDoc}
     */
 
View Full Code Here

        if (property == null) {
            property = new ComponentEventProperty(elementId);
            _elementEvents.put(elementId, property);
        }

        property.addListener(events, methodName, formId, validateForm, async, focus, true);
    }

    public void connectAutoSubmitEvents(IComponent component, IForm form)
    {
        Defense.notNull(form, "form");
View Full Code Here

        IComponentSpecification spec = newMock(IComponentSpecification.class);
        IComponentEventInvoker invoker = newMock(IComponentEventInvoker.class);
        IComponent comp = newComponent(spec, "comp1", "path/", "Home/");

        ComponentEventProperty p = new ComponentEventProperty("comp1");
        p.addListener(new String[] {"onClick"}, "testFoo", null, false, false, false, false);

        Map compEvents = new HashMap();
        compEvents.put("comp1", p);
       
        expect(spec.getComponentEvents()).andReturn(compEvents);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.