Examples of ItsNatHTMLDocument


Examples of org.itsnat.core.html.ItsNatHTMLDocument

    public void handleEvent(Event evt)
    {
        // Evento "click"
        ItsNatDOMStdEvent itsNatEvent = (ItsNatDOMStdEvent)evt;
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)itsNatEvent.getItsNatDocument();
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputButton input = (ItsNatHTMLInputButton)componentMgr.findItsNatComponent((Node)evt.getCurrentTarget());
        HTMLDocument doc = (HTMLDocument)itsNatDoc.getDocument();

        outText("OK " + evt.getType() + " "); // Para que se vea

        String type = evt.getType();
        if (type.equals("click"))
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

    public NewItemError(ExtJSExampleDocument extJSDoc)
    {
        this.extJSDoc = extJSDoc;

        ItsNatHTMLDocument itsNatDoc = extJSDoc.getItsNatHTMLDocument();
        ItsNatComponentManager compMgr = itsNatDoc.getItsNatComponentManager();
        this.modalLayer = compMgr.createItsNatModalLayer(null,false,9010,(float)0.2,"black",null)// opacity is ignored because ExtJS HTML already includes a semitranparent layer
        unexpectedEventDetection();
       
        DocumentFragment frag = extJSDoc.loadDocumentFragment("extjsexample_error_new_item");
        this.modalWinElem = ItsNatTreeWalker.getFirstChildElement(frag);
        HTMLDocument doc = itsNatDoc.getHTMLDocument();
        Element body = doc.getBody();
        body.appendChild(modalWinElem);

        this.closeIconElem = doc.getElementById("ext-gen1006");
        ((EventTarget)closeIconElem).addEventListener("click",this,false);
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

        close();
    }

    public void close()
    {
        ItsNatHTMLDocument itsNatDoc = extJSDoc.getItsNatHTMLDocument();
        HTMLDocument doc = itsNatDoc.getHTMLDocument();

        ((EventTarget)closeIconElem).removeEventListener("click",this,false);
        ((EventTarget)okElem).removeEventListener("click",this,false);

        Element body = doc.getBody();
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

    {
    }

    public void processRequest(ItsNatServletRequest request, ItsNatServletResponse response)
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)request.getItsNatDocument();

        new TestIFrameHTMLDocument(itsNatDoc,request);
    }
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

    {
    }

    public void processRequest(ItsNatServletRequest request, ItsNatServletResponse response)
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)request.getItsNatDocument();

        new TestPrettyURLDocument(itsNatDoc);

        Shared.setRemoteControlLink(request,response);
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

        try{ inputComp.setValue(new Date()); } catch(PropertyVetoException ex) { throw new RuntimeException(ex); }
    }

    public static void LABELS()
    {
        ItsNatHTMLDocument itsNatDoc = null;
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

        ItsNatHTMLLabel label = (ItsNatHTMLLabel)componentMgr.createItsNatComponentById("labelId");
        try { label.setValue(new Integer(3))} // Initial value
        catch(PropertyVetoException ex) { throw new RuntimeException(ex); }
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

        label.addPropertyChangeListener("value",propListener);
    }

    public static void LABELS_CUSTOM_EDITOR()
    {
        ItsNatHTMLDocument itsNatDoc = null;
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

        ItsNatFreeLabel comp = (ItsNatFreeLabel)componentMgr.createItsNatComponentById("labelId","freeLabel",null);
        try { comp.setValue(new Person("Jose M.","Arranz")); }
        catch(PropertyVetoException ex) { throw new RuntimeException(ex); }
View Full Code Here

Examples of org.itsnat.core.html.ItsNatHTMLDocument

        comp.setItsNatLabelEditor(editor);
    }

    public static void LABELS_CUSTOM_RENDERER()
    {
    ItsNatHTMLDocument itsNatDoc = null;
    ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

    ItsNatFreeLabel comp = (ItsNatFreeLabel)componentMgr.createItsNatComponentById("labelId","freeLabel",null);

    ItsNatLabelRenderer renderer = new PersonCustomLabelRenderer();
    comp.setItsNatLabelRenderer(renderer);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.