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.impl.comp.html.ui;
15:
16: import org.itsnat.comp.html.ItsNatHTMLAnchor;
17: import org.itsnat.core.ItsNatException;
18: import org.itsnat.impl.comp.html.ItsNatHTMLAnchorImpl;
19: import org.itsnat.impl.comp.ui.ItsNatButtonNormalBasedUIImpl;
20: import org.w3c.dom.html.HTMLAnchorElement;
21:
22: /**
23: *
24: * @author jmarranz
25: */
26: public class ItsNatHTMLAnchorUIImpl extends
27: ItsNatButtonNormalBasedUIImpl {
28: /**
29: * Creates a new instance of ItsNatHTMLAnchorUIImpl
30: */
31: public ItsNatHTMLAnchorUIImpl(ItsNatHTMLAnchorImpl parentComp) {
32: super (parentComp);
33: }
34:
35: public ItsNatHTMLAnchor getItsNatHTMLAnchor() {
36: return (ItsNatHTMLAnchor) parentComp;
37: }
38:
39: public HTMLAnchorElement getHTMLAnchorElement() {
40: return getItsNatHTMLAnchor().getHTMLAnchorElement();
41: }
42:
43: public void setDOMElementDisabled(boolean b) {
44: // Un link no se puede activar/desactivar
45: throw new ItsNatException("Internal error");
46: }
47:
48: public boolean isDOMElementDisabled() {
49: // Un link no se puede activar/desactivar
50: throw new ItsNatException("Internal error");
51: }
52:
53: public boolean domElementCanBeDisabled() {
54: return false;
55: }
56: }
|