Package org.apache.tapestry

Examples of org.apache.tapestry.IActionListener


        verifyControls();
    }

    public void testFindListenerSuccess()
    {
        IActionListener cancel = newListener();
        IActionListener refresh = newListener();
        IActionListener success = newListener();
        IActionListener listener = newListener();

        IValidationDelegate delegate = newDelegate(false);

        replayControls();
View Full Code Here


        verifyControls();
    }

    public void testFindListenerValidationErrors()
    {
        IActionListener cancel = newListener();
        IActionListener refresh = newListener();
        IActionListener success = newListener();
        IActionListener listener = newListener();

        IValidationDelegate delegate = newDelegate(true);

        replayControls();
View Full Code Here

    public abstract String getReceiveName();
    public abstract String getErrorName();
    public abstract boolean getDisableCaching();

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

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

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

            __CLOVER_148_0.S[3672]++;IBinding selectedBinding = getSelectedBinding();

            __CLOVER_148_0.S[3673]++;if ((((selectedBinding != null) && (++__CLOVER_148_0.CT[690] != 0)) || (++__CLOVER_148_0.CF[690] == 0))){
                __CLOVER_148_0.S[3674]++;selectedBinding.setObject(getTag());}

            __CLOVER_148_0.S[3675]++;IActionListener listener = getListener();

            __CLOVER_148_0.S[3676]++;if ((((listener != null) && (++__CLOVER_148_0.CT[691] != 0)) || (++__CLOVER_148_0.CF[691] == 0))){
                __CLOVER_148_0.S[3677]++;listener.actionTriggered(this, cycle);}

            __CLOVER_148_0.S[3678]++;return;
        }}

        __CLOVER_148_0.S[3679]++;writer.beginEmpty("input");
View Full Code Here

                __CLOVER_137_0.S[3335]++;if ((((value != null && value.equals(name)) && (++__CLOVER_137_0.CT[615] != 0)) || (++__CLOVER_137_0.CF[615] == 0))){
                {
                    __CLOVER_137_0.S[3336]++;IBinding selectedBinding = getSelectedBinding();
                    __CLOVER_137_0.S[3337]++;if ((((selectedBinding != null) && (++__CLOVER_137_0.CT[616] != 0)) || (++__CLOVER_137_0.CF[616] == 0))){
                        __CLOVER_137_0.S[3338]++;selectedBinding.setObject(getTag());}
                    __CLOVER_137_0.S[3339]++;IActionListener listener = getListener();
                    __CLOVER_137_0.S[3340]++;if ((((listener != null) && (++__CLOVER_137_0.CT[617] != 0)) || (++__CLOVER_137_0.CF[617] == 0))){
                        __CLOVER_137_0.S[3341]++;listener.actionTriggered(this, cycle);}
                }}
            }}

            __CLOVER_137_0.S[3342]++;writer.begin("a");
            __CLOVER_137_0.S[3343]++;writer.attribute(
View Full Code Here

        _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

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

            IActionListener listener = findListener(submitType);

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

            // Abort the rewind render.
View Full Code Here

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

    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

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

        final IActionListener listener = getListener();

        if (listener == null)
            return;

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

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

            IActionListener listener = findListener(submitType);

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

            // Abort the rewind render.
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.