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.ItsNatElementComponent;
17: import org.itsnat.comp.html.ui.ItsNatHTMLElementComponentUI;
18: import org.itsnat.core.html.ItsNatHTMLDocument;
19: import org.w3c.dom.html.HTMLElement;
20:
21: /**
22: * Is the base interface which every HTML DOM Element based component implements.
23: *
24: * <p>Some HTML elements has a built-in ItsNat components as <input>,
25: * <a>,<select> etc. These components inherit from this interface.</p>
26: *
27: * @author Jose Maria Arranz Santamaria
28: */
29: public interface ItsNatHTMLElementComponent extends
30: ItsNatElementComponent {
31: /**
32: * Returns the associated DOM element to this component.
33: *
34: * @return the associated DOM element.
35: */
36: public HTMLElement getHTMLElement();
37:
38: /**
39: * Returns the ItsNat HTML document this document is associated to.
40: *
41: * @return the associated ItsNat HTML document.
42: */
43: public ItsNatHTMLDocument getItsNatHTMLDocument();
44:
45: /**
46: * Returns the user interface manager of this component.
47: *
48: * @return the user interface manager.
49: */
50: public ItsNatHTMLElementComponentUI getItsNatHTMLElementComponentUI();
51:
52: /**
53: * Returns the ItsNat HTML component manager parent of this component.
54: *
55: * @return the parent ItsNat HTML component manager.
56: */
57: public ItsNatHTMLComponentManager getItsNatHTMLComponentManager();
58: }
|