KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > web > ui > repo > tag > LockIconTag


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.web.ui.repo.tag;
18
19 import javax.faces.component.UIComponent;
20
21 import org.alfresco.web.ui.common.tag.HtmlComponentTag;
22
23 /**
24  * @author Kevin Roast
25  */

26 public class LockIconTag extends HtmlComponentTag
27 {
28    /**
29     * @see javax.faces.webapp.UIComponentTag#getComponentType()
30     */

31    public String JavaDoc getComponentType()
32    {
33       return "org.alfresco.faces.LockIcon";
34    }
35
36    /**
37     * @see javax.faces.webapp.UIComponentTag#getRendererType()
38     */

39    public String JavaDoc getRendererType()
40    {
41       return null;
42    }
43    
44    /**
45     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
46     */

47    protected void setProperties(UIComponent component)
48    {
49       super.setProperties(component);
50       setStringProperty(component, "lockImage", this.lockImage);
51       setStringProperty(component, "lockOwnerImage", this.lockOwnerImage);
52       setStringProperty(component, "align", this.align);
53       setIntProperty(component, "width", this.width);
54       setIntProperty(component, "height", this.height);
55       setStringProperty(component, "lockedOwnerTooltip", this.lockedOwnerTooltip);
56       setStringProperty(component, "lockedUserTooltip", this.lockedUserTooltip);
57       setStringBindingProperty(component, "value", this.value);
58    }
59    
60    /**
61     * @see org.alfresco.web.ui.common.tag.HtmlComponentTag#release()
62     */

63    public void release()
64    {
65       super.release();
66       this.lockImage = null;
67       this.lockOwnerImage = null;
68       this.align = null;
69       this.width = null;
70       this.height = null;
71       this.lockedOwnerTooltip = null;
72       this.lockedUserTooltip = null;
73       this.value = null;
74    }
75    
76    /**
77     * Set the lockImage
78     *
79     * @param lockImage the lockImage
80     */

81    public void setLockImage(String JavaDoc lockImage)
82    {
83       this.lockImage = lockImage;
84    }
85
86    /**
87     * Set the lockOwnerImage
88     *
89     * @param lockOwnerImage the lockOwnerImage
90     */

91    public void setLockOwnerImage(String JavaDoc lockOwnerImage)
92    {
93       this.lockOwnerImage = lockOwnerImage;
94    }
95
96    /**
97     * Set the align
98     *
99     * @param align the align
100     */

101    public void setAlign(String JavaDoc align)
102    {
103       this.align = align;
104    }
105
106    /**
107     * Set the width
108     *
109     * @param width the width
110     */

111    public void setWidth(String JavaDoc width)
112    {
113       this.width = width;
114    }
115
116    /**
117     * Set the height
118     *
119     * @param height the height
120     */

121    public void setHeight(String JavaDoc height)
122    {
123       this.height = height;
124    }
125
126    /**
127     * Set the value
128     *
129     * @param value the value
130     */

131    public void setValue(String JavaDoc value)
132    {
133       this.value = value;
134    }
135    
136    /**
137     * Set the lockedOwnerTooltip
138     *
139     * @param lockedOwnerTooltip the lockedOwnerTooltip
140     */

141    public void setLockedOwnerTooltip(String JavaDoc lockedOwnerTooltip)
142    {
143       this.lockedOwnerTooltip = lockedOwnerTooltip;
144    }
145
146    /**
147     * Set the lockedUserTooltip
148     *
149     * @param lockedUserTooltip the lockedUserTooltip
150     */

151    public void setLockedUserTooltip(String JavaDoc lockedUserTooltip)
152    {
153       this.lockedUserTooltip = lockedUserTooltip;
154    }
155
156
157    /** the lockedOwnerTooltip */
158    private String JavaDoc lockedOwnerTooltip;
159
160    /** the lockedUserTooltip */
161    private String JavaDoc lockedUserTooltip;
162    
163    /** the lockImage */
164    private String JavaDoc lockImage;
165
166    /** the lockOwnerImage */
167    private String JavaDoc lockOwnerImage;
168
169    /** the align */
170    private String JavaDoc align;
171
172    /** the width */
173    private String JavaDoc width;
174
175    /** the height */
176    private String JavaDoc height;
177
178    /** the value */
179    private String JavaDoc value;
180 }
181
Popular Tags