Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3d2dd2e6139660c471bc1e7186a333a4f790b5f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*******************************************************************************
 * Copyright (c) 2001, 2008 Oracle Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Oracle Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsf.common.runtime.internal.model.behavioural;

import java.io.Serializable;
import java.util.List;

import org.eclipse.jst.jsf.common.runtime.internal.model.decorator.ActionListenerDecorator;

/**
 * A design time analog for the runtime ActionSource interface.
 * 
 * @author cbateman
 *
 */
public interface IActionSourceInfo extends Serializable
{
    /**
     * @return true if action listener associated with this action source
     * should be executed immediately after the apply request values phase.
     * Default is false.
     */
    boolean isImmediate();
    
    
    /**
     * Add the action listener to the list
     * 
     * @param actionListener
     */
    void addActionListener(ActionListenerDecorator  actionListener);
    
    /**
     * @return all action listeners registered.  List should be considered
     * immutable and may throw exceptions if modified.
     */
    List/*<ActionListenerDecorator>*/ getActionListeners();
    
    /**
     * <b> NOTE: this method is deprecated in the runtime spec and exists for
     * backward compatibility with JSF 1.1. You should avoid using it except in
     * conjunction with JSF 1.1 tooling support. This method will be deprecated
     * once the runtime spec removes the underlying API</b>

     * @return a method binding expression describing an action handler
     */
    String  getAction();
    
    /**
     * <b> NOTE: this method is deprecated in the runtime spec and exists for
     * backward compatibility with JSF 1.1. You should avoid using it except in
     * conjunction with JSF 1.1 tooling support. This method will be deprecated
     * once the runtime spec removes the underlying API</b>
     * 
     * @return a method binding expression describing an action listener
     */
    String  getActionListener();
}

Back to the top