01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.comp.html;
15:
16: import org.itsnat.comp.ItsNatLabel;
17: import org.w3c.dom.html.HTMLLabelElement;
18:
19: /**
20: * Is the interface of HTML <label> based components.
21: *
22: * <p>ItsNat provides a default implementation of this interface.</p>
23: *
24: * <p>This component may be useful to forms with non-fixed labels (e.g. internationalized forms).</p>
25: *
26: * <p>By default the component has the default renderer but no editor.</p>
27: *
28: * @author Jose Maria Arranz Santamaria
29: * @see ItsNatHTMLComponentManager#createItsNatHTMLLabel(org.w3c.dom.html.HTMLLabelElement,org.itsnat.core.NameValue[])
30: */
31: public interface ItsNatHTMLLabel extends ItsNatHTMLElementComponent,
32: ItsNatLabel {
33: /**
34: * Returns the associated DOM element to this component.
35: *
36: * @return the associated DOM element.
37: */
38: public HTMLLabelElement getHTMLLabelElement();
39:
40: /**
41: * Returns the form based component pointed to by this label with the
42: * "for" attribute.
43: *
44: * @return the form based component. Null if the no "for" attribute is defined,
45: * the element id is invalid or no component is registered associated to that element.
46: */
47: public ItsNatHTMLFormComponent getForComponent();
48: }
|