
IAD_PageController.LinkHandler = IAD_Class.create("LinkHandler", IAD_PageController.ControlHandler,
{
    initialize: function($super, elt, pc)
    {
        $super(elt, pc);
        //pc.debug("LinkHandler, elt.id=" + elt.id);
        this.handleEvent = function(evt)
        {
            //pc.debug("LinkHandler, 10 elt.id=" + elt.id);
            switch(evt.type)
            {
            case "click" :
                //pc.debug("LinkHandler, elt.id=" + elt.id);
                if(this.isInactive())
                {
                    //alert("LinkHandler, "+elt.id+" is inactive");
                    evt.stop();
                    //evt.stop();
                    break;
                }
                this.clickHandleEvent(evt);
            break;
            default:
                $super_handleEvent(evt);
            break;
            }
        }
        this.clickHandleEvent = function(evt)
        {
            return this;
        }
        this.getValue = function(evt)
        {
            return elt.href;
        }
        this.setValue = function(params, evt)
        {
            elt.href = params;
        }
    }
});
