KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > spec > ListenerBindingSpecification


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

15 package org.apache.tapestry.spec;
16
17 /**
18  * Special subclass of {@link org.apache.tapestry.spec.BindingSpecification} used
19  * to encapsulate the additional information
20  * specific to listener bindings. In a ListenerBindingSpecification, the
21  * value property is the actual script (and is aliased as property script),
22  * but an additional property,
23  * language, (which may be null) is needed. This is the language
24  * the script is written in.
25  *
26  * @author Howard Lewis Ship
27  * @since 3.0
28  *
29  **/

30
31 public class ListenerBindingSpecification extends BindingSpecification implements IListenerBindingSpecification
32 {
33     protected String JavaDoc _language;
34     
35     public ListenerBindingSpecification()
36     {
37         setType(BindingType.LISTENER);
38     }
39     
40     public String JavaDoc getLanguage()
41     {
42         return _language;
43     }
44     
45     public String JavaDoc getScript()
46     {
47         return getValue();
48     }
49     
50     public void setLanguage(String JavaDoc language)
51     {
52         _language = language;
53     }
54
55 }
56
Popular Tags