Examples of IActionListener


Examples of org.apache.tapestry.IActionListener

            IBinding selectedBinding = getSelectedBinding();

            if (selectedBinding != null)
                selectedBinding.setObject(getTag());

            IActionListener listener = getListener();

            if (listener != null)
                listener.actionTriggered(this, cycle);

            return;
        }

        // Not rewinding, do the real render
View Full Code Here

Examples of org.apache.tapestry.IActionListener

        String name = form.getElementId(this);

        boolean condition = getCondition(cycle, form, name);

        // call listener
        IActionListener listener = getListener();
        if (listener != null)
            listener.actionTriggered(this, cycle);

        // render the component body only if the condition is true
        if (condition) {
            String element = getElement();
           
View Full Code Here

Examples of org.apache.tapestry.IActionListener

    void handleClick(final IRequestCycle cycle, IForm form)
    {
        if (isParameterBound("selected"))
            setSelected(getTag());

        final IActionListener listener = getListener();
        final IActionListener action = getAction();

        if (listener == null && action == null)
            return;

        final ListenerInvoker listenerInvoker = getListenerInvoker();
View Full Code Here

Examples of org.apache.tapestry.IActionListener

        _rendering = true;

        try
        {
            // call listener
            IActionListener listener = getListener();
            if (listener != null)
                listener.actionTriggered(this, cycle);

            // now render if condition is true
            if (_conditionValue)
            {
                String element = getElement();
View Full Code Here

Examples of org.apache.tapestry.IActionListener

       
        if (isRewinding())
        {
            String submitType = _formSupport.rewind();

            IActionListener listener = findListener(submitType);

            getListenerInvoker().invokeListener(listener, this, cycle);

            // Abort the rewind render.
View Full Code Here

Examples of org.apache.tapestry.IActionListener

        _formSupport.render(getMethod(), _renderInformalParameters, link, getScheme(), getPort());
    }

    IActionListener findListener(String mode)
    {
        IActionListener result = null;

        if (mode.equals(FormConstants.SUBMIT_CANCEL))
            result = getCancel();
        else if (mode.equals(FormConstants.SUBMIT_REFRESH))
            result = getRefresh();
View Full Code Here

Examples of org.apache.tapestry.IActionListener

     *             if the component is stateful, and the session is new.
     */

    public void trigger(IRequestCycle cycle)
    {
        IActionListener listener = getListener();

        if (listener == null)
            throw Tapestry.createRequiredParameterException(this, "listener");
       
        getListenerInvoker().invokeListener(listener, this, cycle);
View Full Code Here

Examples of org.apache.tapestry.IActionListener

        return _invokers.containsKey(name);
    }

    public synchronized IActionListener getListener(String name)
    {
        IActionListener result = (IActionListener) _listeners.get(name);

        if (result == null)
        {
            result = createListener(name);
            _listeners.put(name, result);
View Full Code Here

Examples of org.apache.tapestry.IActionListener

           
            IComponent container = component.getContainer();
            if (container == null) // only IPage has no container
                container = component;
           
            IActionListener listener =
                container.getListeners().getListener(eventListener.getMethodName());
            _invoker.invokeListener(listener, container, cycle);
        }
    }
View Full Code Here

Examples of org.apache.tapestry.IActionListener

            EventBoundListener eventListener = (EventBoundListener)listeners.get(i);
           
            final IComponent container =
                (component.getContainer() == null) ? component : component.getContainer();
           
            final IActionListener listener =
                container.getListeners().getListener(eventListener.getMethodName());
           
            // defer execution until after form is done rewinding
            component.addDeferredRunnable(new Runnable()
            {
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.