01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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 org.apache.myfaces.shared_impl.component;
17:
18: /**
19: * Behavioral interface.
20: * By default, displayValueOnly is false, and the components have the default behaviour.
21: * When displayValueOnly is true, the renderer should not render any input widget.
22: * Only the text corresponding to the component's value should be rendered instead.
23: *
24: * @author Sylvain Vieujot (latest modification by $Author: svieujot $)
25: * @author Martin Marinschek
26: *
27: * @version $Revision: 169739 $ $Date: 2005-05-12 02:45:14 +0200 (Thu, 12 May 2005) $
28: */
29: public interface DisplayValueOnlyCapable {
30: String DISPLAY_VALUE_ONLY_ATTR = "displayValueOnly";
31: String DISPLAY_VALUE_ONLY_STYLE_ATTR = "displayValueOnlyStyle";
32: String DISPLAY_VALUE_ONLY_STYLE_CLASS_ATTR = "displayValueOnlyStyleClass";
33:
34: boolean isSetDisplayValueOnly();
35:
36: boolean isDisplayValueOnly();
37:
38: void setDisplayValueOnly(boolean displayValueOnly);
39:
40: String getDisplayValueOnlyStyle();
41:
42: void setDisplayValueOnlyStyle(String style);
43:
44: String getDisplayValueOnlyStyleClass();
45:
46: void setDisplayValueOnlyStyleClass(String styleClass);
47: }
|