diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.common.runtime/src/org/eclipse/jst/jsf/common/runtime/internal/model/behavioural/IActionSourceInfo.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.common.runtime/src/org/eclipse/jst/jsf/common/runtime/internal/model/behavioural/IActionSourceInfo.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common.runtime/src/org/eclipse/jst/jsf/common/runtime/internal/model/behavioural/IActionSourceInfo.java b/jsf/plugins/org.eclipse.jst.jsf.common.runtime/src/org/eclipse/jst/jsf/common/runtime/internal/model/behavioural/IActionSourceInfo.java new file mode 100644 index 000000000..4de338baf --- /dev/null +++ b/jsf/plugins/org.eclipse.jst.jsf.common.runtime/src/org/eclipse/jst/jsf/common/runtime/internal/model/behavioural/IActionSourceInfo.java @@ -0,0 +1,56 @@ +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(); +} |