Package org.itsnat.core.event

Examples of org.itsnat.core.event.CustomParamTransport


    public ParamTransport[] getInternalParamTransports(String type,ClientDocumentImpl clientDoc)
    {
        if (changeBasedDelegate.isChangeEvent(type,clientDoc))
        {
            CustomParamTransport selectedIndex = new CustomParamTransport("selectedIndex","event.getCurrentTarget().selectedIndex");
            return new ParamTransport[]{selectedIndex};
        }
        else
            return null;
    }
View Full Code Here


        if (changeBasedDelegate.isChangeEvent(type,clientDoc))
        {
            // En selecci�n m�ltiple el selectedIndex sirve de muy poco (o nada) por ejemplo
            // cuando se selecciona/deselecciona con la tecla CTRL o SHIFT pulsada
            // La mejor manera es traerse el estado de todos los elementos
            CustomParamTransport selectedIndexes = new CustomParamTransport("selectedIndexes","itsNatDoc.getSelectedHTMLSelect(event.getCurrentTarget())");
            return new ParamTransport[]{selectedIndexes};
        }
        else
            return null;
    }
View Full Code Here

    {
        Document doc = itsNatDoc.getDocument();

        this.svgElem = doc.getElementById("svgId");
        ParamTransport[] params = new ParamTransport[]
            { new CustomParamTransport("offsetX","event.getNativeEvent().offsetX"),
              new CustomParamTransport("offsetY","event.getNativeEvent().offsetY") };
        itsNatDoc.addEventListener(((EventTarget)svgElem),"click",this,false,params);

        ElementGroupManager egm = itsNatDoc.getElementGroupManager();
        Element circleListElem = doc.getElementById("circleListId");
        this.circleList = egm.createElementList(circleListElem,false);
View Full Code Here

        this.objectContainerElem = doc.getElementById("objectContainerId");
        this.svgContainerElem = doc.getElementById("svgContainerId");

        this.svgElem = doc.getElementById("svgId");
        ParamTransport[] params = new ParamTransport[]
            { new CustomParamTransport("offsetX","event.getNativeEvent().offsetX"),
              new CustomParamTransport("offsetY","event.getNativeEvent().offsetY") };
        itsNatDoc.addEventListener(((EventTarget)svgElem),"click",this,false,params);

        ElementGroupManager egm = itsNatDoc.getElementGroupManager();
        Element circleListElem = doc.getElementById("circleListId");
        this.circleList = egm.createElementList(circleListElem,false);
View Full Code Here

TOP

Related Classes of org.itsnat.core.event.CustomParamTransport

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.