Package org.gwtopenmaps.openlayers.client.util

Examples of org.gwtopenmaps.openlayers.client.util.JSObject


        getJSObject().setProperty("onModificationStart", callback);
    }

    public void onModification(OnModificationListener listener)
    {
        JSObject callback = ModifyFeatureImpl.createOnModificationCallback(listener);
        getJSObject().setProperty("onModification", callback);
    }
View Full Code Here


        getJSObject().setProperty("onModification", callback);
    }

    public void onModificationEnd(OnModificationEndListener listener)
    {
        JSObject callback = ModifyFeatureImpl.createOnModificationEndCallback(listener);
        getJSObject().setProperty("onModificationEnd", callback);
    }
View Full Code Here

        createAndSetCallback(listener, "onComplete");
    }

    /** Creates a JS callback for a event type */
    private void createAndSetCallback(DragFeatureListener listener, String name) {
        JSObject callback = DragFeatureImpl.createDragCallback(listener);
        getJSObject().setProperty(name, callback);
    }
View Full Code Here

        super(eventObject);
    }

    public VectorFeature getVectorFeature()
    {
        JSObject object = getJSObject().getProperty("feature");

        return (object != null) ? VectorFeature.narrowToVectorFeature(object) : null;
    }
View Full Code Here

        super(eventObject);
    }

    public Map getSource()
    {
        JSObject object = getSourceJSObject();

        return (object != null) ? Map.narrowToMap(object) : null;
    }
View Full Code Here

    /**
     * @return JSObject - source object that fired the event
     */
    public JSObject getSourceJSObject()
    {
        JSObject object = EventObjectImpl.getObject(getJSObject());

        return object;
    }
View Full Code Here

    protected GetFeatureEvent(JSObject eventObject) {
        super(eventObject);
    }

    public GetFeature getSource() {
        JSObject object = super.getSourceJSObject();

        return (object != null) ? GetFeature.narrowToGetFeature(object) : null;
    }
View Full Code Here

    /**
     * Set the stylemap to use.
     * @param styleMap The stylemap to use.
     */
    public void setStyleMap(StyleMap styleMap) {
        JSObject styleOption = JSObject.createJSObject();
        styleOption.setProperty("styleMap", styleMap.getJSObject());
        this.getJSObject().setProperty("layerOptions", styleOption);
    }
View Full Code Here

        super(eventObject);
    }

    public Marker getSource()
    {
        JSObject object = getSourceJSObject();

        return (object != null) ? Marker.narrowToMarker(object) : null;
    }
View Full Code Here

        super(eventObject);
    }

    public Control getSource()
    {
        JSObject object = getSourceJSObject();

        return (object != null) ? Control.narrowToControl(object) : null;
    }
View Full Code Here

TOP

Related Classes of org.gwtopenmaps.openlayers.client.util.JSObject

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.