/*
ItsNat Java Web Application Framework
Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
Author: Jose Maria Arranz Santamaria
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. See the GNU Affero General Public
License for more details. See the copy of the GNU Affero General Public License
included in this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.itsnat.impl.comp.html.ui;
import org.itsnat.comp.html.ItsNatHTMLAnchor;
import org.itsnat.core.ItsNatException;
import org.itsnat.impl.comp.html.ItsNatHTMLAnchorImpl;
import org.itsnat.impl.comp.ui.ItsNatButtonNormalBasedUIImpl;
import org.w3c.dom.html.HTMLAnchorElement;
/**
*
* @author jmarranz
*/
public class ItsNatHTMLAnchorUIImpl extends ItsNatButtonNormalBasedUIImpl
{
/**
* Creates a new instance of ItsNatHTMLAnchorUIImpl
*/
public ItsNatHTMLAnchorUIImpl(ItsNatHTMLAnchorImpl parentComp)
{
super(parentComp);
}
public ItsNatHTMLAnchor getItsNatHTMLAnchor()
{
return (ItsNatHTMLAnchor)parentComp;
}
public HTMLAnchorElement getHTMLAnchorElement()
{
return getItsNatHTMLAnchor().getHTMLAnchorElement();
}
public void setDOMElementDisabled(boolean b)
{
// Un link no se puede activar/desactivar
throw new ItsNatException("Internal error");
}
public boolean isDOMElementDisabled()
{
// Un link no se puede activar/desactivar
throw new ItsNatException("Internal error");
}
public boolean domElementCanBeDisabled()
{
return false;
}
}
|