KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > component > EditableValueHolder


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package javax.faces.component;
17
18 import javax.faces.el.MethodBinding;
19 import javax.faces.event.ValueChangeListener;
20 import javax.faces.validator.Validator;
21
22 /**
23  * @author Manfred Geiler (latest modification by $Author: mwessendorf $)
24  * @version $Revision: 1.3 $ $Date: 2004/07/01 22:00:50 $
25  */

26 public interface EditableValueHolder
27         extends ValueHolder
28 {
29     public Object JavaDoc getSubmittedValue();
30
31     public void setSubmittedValue(Object JavaDoc submittedValue);
32
33     public boolean isLocalValueSet();
34
35     public void setLocalValueSet(boolean localValueSet);
36
37     public boolean isValid();
38
39     public void setValid(boolean valid);
40
41     public boolean isRequired();
42
43     public void setRequired(boolean required);
44
45     public boolean isImmediate();
46
47     public void setImmediate(boolean immediate);
48
49     public MethodBinding getValidator();
50
51     public void setValidator(javax.faces.el.MethodBinding validatorBinding);
52
53     public MethodBinding getValueChangeListener();
54
55     public void setValueChangeListener(MethodBinding valueChangeMethod);
56
57     public void addValidator(Validator validator);
58
59     public Validator[] getValidators();
60
61     public void removeValidator(Validator validator);
62
63     public void addValueChangeListener(ValueChangeListener listener);
64
65     public ValueChangeListener[] getValueChangeListeners();
66
67     public void removeValueChangeListener(ValueChangeListener listener);
68 }
69
Popular Tags