Package org.itsnat.impl.comp.mgr

Examples of org.itsnat.impl.comp.mgr.ItsNatStfulDocComponentManagerImpl


        HTMLFormElement formElem = getHTMLFormElement(); // puede ser null (el elemento puede no estar dentro de un <form>
        if (formElem == null)
            return null;
        if ((formComp == null)||(formComp.getHTMLFormElement() != formElem))
        {
            ItsNatStfulDocComponentManagerImpl componentMgr = getItsNatStfulDocComponentManager();
            this.formComp = componentMgr.getItsNatHTMLForm(formElem);
        }
        return formComp;
    }
View Full Code Here


    {
        // Si no es modo auto-build nos da igual lo que el diga el markup, es el caso de orden expl�cita de creaci�n de componente (si se puede)
        if (autoBuildMode && !mustBeCreatedAutoBuildMode(element))
            return null;

        ItsNatStfulDocComponentManagerImpl stfulCompMgr = (ItsNatStfulDocComponentManagerImpl)compMgr;
        return createItsNatHTMLComponent((HTMLElement)element,compType,artifacts,execCreateFilters,stfulCompMgr);
    }
View Full Code Here

    public ItsNatHTMLFormComponent getForComponent()
    {
        HTMLLabelElement element = getHTMLLabelElement();
        String compId = element.getHtmlFor();

        ItsNatStfulDocComponentManagerImpl compMgr = getItsNatStfulDocComponentManager();
        return (ItsNatHTMLFormComponent)compMgr.findItsNatComponentById(compId);
    }
View Full Code Here

            else // Ejemplo: futuros componentes XUL
                throw new ItsNatException("This component is not supported as editor: " + compEditor,compEditor);
        }
        else
        {
            ItsNatStfulDocComponentManagerImpl compMgr = parent.getItsNatStfulDocComponentManager();
            if (compMgr instanceof ItsNatHTMLDocComponentManagerImpl)
            {
                // Lo m�s normal es que el editor vaya a un elemento HTML
                return new DelegateHTMLInputTextEditorImpl(compMgr.createItsNatHTMLInputText(null,null));
            }
            else if (compMgr instanceof ItsNatXULDocComponentManagerImpl)
            {
                 // El futuro componente de texto XUL ir�a aqu�
                throw new ItsNatException("Cannot be created a default component editor for this type of document");
View Full Code Here

    @Override
    public void init()
    {
        super.init();

        ItsNatStfulDocComponentManagerImpl compMgr = getItsNatStfulDocComponentManager();
        LinkedList<ItsNatModalLayerImpl> layers = compMgr.getItsNatModalLayers();
        if (!layers.isEmpty())
            this.previous = layers.getLast();
        layers.add(this);

        if (!boundToTree)
View Full Code Here

        compClients = getAllItsNatModalLayerClientDoc();
        for(int i = 0; i < compClients.length; i++)
            compClients[i].postRemoveLayer();

        ItsNatStfulDocComponentManagerImpl compMgr = getItsNatStfulDocComponentManager();
        compMgr.getItsNatModalLayers().remove(this);
    }
View Full Code Here

    {
//        if (!cleanBelow) return;

        // Se llama una sola vez

        ItsNatStfulDocComponentManagerImpl compMgr = getItsNatStfulDocComponentManager();

        LinkedHashSet<Element> bodyElementsBefore = new LinkedHashSet<Element>();
        Element child = ItsNatTreeWalker.getFirstChildElement(getVisualRootElement());
        while(child != null)
        {
            bodyElementsBefore.add(child);
            child = ItsNatTreeWalker.getNextSiblingElement(child);
        }

        // Quitamos el layer actual reci�n insertado
        bodyElementsBefore.remove(getElement());

        LinkedList<ItsNatModalLayerImpl> layerList = compMgr.getItsNatModalLayers();
        for(ItsNatModalLayerImpl currLayer : layerList)
        {
            if (currLayer == this) break; // Hemos llegado al de ahora
            LinkedHashSet<Element> currSet = currLayer.getBodyElementsBefore();
            if (currSet != null) // Puede que no fuera un layer en modo cleanBelow
View Full Code Here

TOP

Related Classes of org.itsnat.impl.comp.mgr.ItsNatStfulDocComponentManagerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.