Examples of MapLocationMarkersAttributes


Examples of com.volantis.mcs.protocols.widgets.attributes.MapLocationMarkersAttributes

        // Initialise superclass.
        super(WidgetElements.MAP_LOCATION_MARKERS, context);

        // Create an instance of MapLocationMarkers attributes.
        // It'll be initialised later in initialiseAttributes() method.
        protocolAttributes = new MapLocationMarkersAttributes();
    }   
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.MapLocationMarkersAttributes

        if (mapId == null) {
            throw new ProtocolException("widget:map-location-markers element "
                    + "placed outside widget:map element");
        }
       
        MapLocationMarkersAttributes mapLocationMarkersAttributes
                = (MapLocationMarkersAttributes)attributes;
       
        // retrive list of attributes of <map-location-marker> element which are
        // within the <w:map-location-markers> element.
        List mapLocationMarkerAttributes = mapLocationMarkersAttributes.getContentAttributes();
       
        // create ClockContentHandler to merge contents
        MapLocationMarkerContextHandler mapLocationMarkerHandler
                = new MapLocationMarkerContextHandler();
       
        mapLocationMarkerHandler.mergeMapLocationMarkerAttributes(mapLocationMarkerAttributes);
       
        List markersList = mapLocationMarkerHandler.getMarkersList();
        String markers = getMarkersIds(markersList);
       
        StringBuffer textBuffer = new StringBuffer();
       
        textBuffer.append(
                createJavaScriptWidgetRegistrationOpening(
                        mapLocationMarkersAttributes.getId()))
                .append("new Widget.MapLocationMarkers(")
                .append(createJavaScriptString(mapLocationMarkersAttributes.getId()))
                .append(", {")
                .append("mapId: ").append(createJavaScriptString(mapId))
                .append(", markers: [").append(markers).append("]")
                .append("})")
                .append(createJavaScriptWidgetRegistrationClosure());
       
        addCreatedWidgetId(mapLocationMarkersAttributes.getId());
        addUsedWidgetIds(markersList);
        addUsedWidgetId(mapId);
       
        writeJavaScript(textBuffer.toString());
    }
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.