Package org.apache.tapestry

Examples of org.apache.tapestry.IActionListener


            __CLOVER_136_0.S[3288]++;IBinding selectedBinding = getSelectedBinding();

            __CLOVER_136_0.S[3289]++;if ((((selectedBinding != null) && (++__CLOVER_136_0.CT[604] != 0)) || (++__CLOVER_136_0.CF[604] == 0))){
                __CLOVER_136_0.S[3290]++;selectedBinding.setObject(getTag());}

            __CLOVER_136_0.S[3291]++;IActionListener listener = getListener();

            __CLOVER_136_0.S[3292]++;if ((((listener != null) && (++__CLOVER_136_0.CT[605] != 0)) || (++__CLOVER_136_0.CF[605] == 0))){
                __CLOVER_136_0.S[3293]++;listener.actionTriggered(this, cycle);}

            __CLOVER_136_0.S[3294]++;return;
        }}

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


     *
     **/

    public void trigger(IRequestCycle cycle)
    {try { __CLOVER_176_0.M[894]++;
        __CLOVER_176_0.S[4265]++;IActionListener listener = getListener();
       
        __CLOVER_176_0.S[4266]++;if ((((listener == null) && (++__CLOVER_176_0.CT[789] != 0)) || (++__CLOVER_176_0.CF[789] == 0))){
          __CLOVER_176_0.S[4267]++;throw Tapestry.createRequiredParameterException(this, "listener");}

        __CLOVER_176_0.S[4268]++;listener.actionTriggered(this, cycle);
    } finally { }}
View Full Code Here

        // A listener is not always necessary ... it's easy to code
        // the synchronization as a side-effect of the accessor method.

        __CLOVER_132_0.S[3257]++;getValueBinding().setObject(value);

        __CLOVER_132_0.S[3258]++;IActionListener listener = getListener();

        __CLOVER_132_0.S[3259]++;if ((((listener != null) && (++__CLOVER_132_0.CT[597] != 0)) || (++__CLOVER_132_0.CF[597] == 0))){
            __CLOVER_132_0.S[3260]++;listener.actionTriggered(this, cycle);}
    } finally { }}
View Full Code Here

        __CLOVER_138_0.S[3365]++;int index = 0;

        __CLOVER_138_0.S[3366]++;IBinding indexBinding = getIndexBinding();
        __CLOVER_138_0.S[3367]++;IBinding valueBinding = getValueBinding();
        __CLOVER_138_0.S[3368]++;IActionListener listener = getListener();
        __CLOVER_138_0.S[3369]++;String element = getElement();

        __CLOVER_138_0.S[3370]++;while ((((i.hasNext()) && (++__CLOVER_138_0.CT[622] != 0)) || (++__CLOVER_138_0.CF[622] == 0))){
        {
            __CLOVER_138_0.S[3371]++;Object value = null;

            __CLOVER_138_0.S[3372]++;if ((((indexBinding != null) && (++__CLOVER_138_0.CT[623] != 0)) || (++__CLOVER_138_0.CF[623] == 0))){
                __CLOVER_138_0.S[3373]++;indexBinding.setInt(index++);}

            __CLOVER_138_0.S[3374]++;if ((((cycleRewinding) && (++__CLOVER_138_0.CT[624] != 0)) || (++__CLOVER_138_0.CF[624] == 0))){
                __CLOVER_138_0.S[3375]++;value = convertValue((String) i.next());}
            else{
            {
                __CLOVER_138_0.S[3376]++;value = i.next();
                __CLOVER_138_0.S[3377]++;writeValue(form, name, value);
            }}

            __CLOVER_138_0.S[3378]++;valueBinding.setObject(value);

            __CLOVER_138_0.S[3379]++;if ((((listener != null) && (++__CLOVER_138_0.CT[625] != 0)) || (++__CLOVER_138_0.CF[625] == 0))){
                __CLOVER_138_0.S[3380]++;listener.actionTriggered(this, cycle);}

            __CLOVER_138_0.S[3381]++;if ((((element != null) && (++__CLOVER_138_0.CT[626] != 0)) || (++__CLOVER_138_0.CF[626] == 0))){
            {
                __CLOVER_138_0.S[3382]++;writer.begin(element);
                __CLOVER_138_0.S[3383]++;renderInformalParameters(writer, cycle);
View Full Code Here

                        Integer.toString(expected - _allocatedIdIndex),
                        nextExpectedId),
                    this);
            }}

            __CLOVER_130_0.S[3112]++;IActionListener listener = getListener();

            __CLOVER_130_0.S[3113]++;if ((((listener != null) && (++__CLOVER_130_0.CT[566] != 0)) || (++__CLOVER_130_0.CF[566] == 0))){
                __CLOVER_130_0.S[3114]++;listener.actionTriggered(this, cycle);}

            // Abort the rewind render.

            __CLOVER_130_0.S[3115]++;throw new RenderRewoundException(this);
        }}
View Full Code Here

        {
            boolean current = isDescending();
            setDescending(!current);
        }

        IActionListener listener = getListener();
        if (listener == null)
            throw Tapestry.createRequiredParameterException(this, "listener");

        listener.actionTriggered(this, cycle);
    }
View Full Code Here

        return (IActionListener) newMock(IActionListener.class);
    }

    public void testFindCancelListener()
    {
        IActionListener cancel = newListener();
        IActionListener listener = newListener();

        replayControls();

        Form form = (Form) newInstance(Form.class, new Object[]
        { "listener", listener, "cancel", cancel });
View Full Code Here

        verifyControls();
    }

    public void testFindCancelDefaultListener()
    {
        IActionListener listener = newListener();

        replayControls();

        Form form = (Form) newInstance(Form.class, "listener", listener);
View Full Code Here

        verifyControls();
    }

    public void testFindRefreshListener()
    {
        IActionListener refresh = newListener();
        IActionListener listener = newListener();

        replayControls();

        Form form = (Form) newInstance(Form.class, new Object[]
        { "listener", listener, "refresh", refresh });
View Full Code Here

        verifyControls();
    }

    public void testFindRefreshListenerDefault()
    {
        IActionListener listener = newListener();

        replayControls();

        Form form = (Form) newInstance(Form.class, new Object[]
        { "listener", listener });
View Full Code Here

TOP

Related Classes of org.apache.tapestry.IActionListener

Copyright © 2018 www.massapicom. 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.