gmapMarker.xml 6.24 KB
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN"
        "http://labs.jboss.com/jbossrichfaces/component-config.dtd" >
<components>
    <component>
        <name>org.richfaces.GmapMarker</name>
        <family>org.richfaces.GmapMarker</family>
        <classname>org.richfaces.component.html.HtmlGmapMarker</classname>
        <superclass>org.richfaces.component.UIGmapMarker</superclass>
        <description>
            <![CDATA[
                    Renders Google Map marker. This component must be nested inside <rich:gmap/>.
             ]]>
        </description>
        <renderer generate="true" override="false">
            <name>org.richfaces.GmapMarkerRenderer</name>
            <classname>org.richfaces.renderkit.html.GmapMarkerRenderer</classname>
        </renderer>
        <tag>
            <name>gmapMarker</name>
            <classname>org.richfaces.taglib.GmapMarkerTag</classname>
            <superclass>
                org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
            </superclass>
            <test>
                <classname>org.richfaces.taglib.HtmlGmapMarkerTagTest</classname>
                <superclassname>org.ajax4jsf.tests.AbstractJspTestCase</superclassname>
            </test>

        </tag>
        &ui_component_attributes;
        <property required="true">
            <name>latitude</name>
            <classname>java.lang.Double</classname>
            <description>
                The latitude coordinate in degrees, as a number between -90 and +90.
            </description>
        </property>
        <property required="true">
            <name>longitude</name>
            <classname>java.lang.Double</classname>
            <description>
                The longitude coordinate in degrees, as a number between -180 and +180.
            </description>
        </property>
        <property>
            <name>autoPan</name>
            <classname>boolean</classname>
            <description>
                Auto-pan the map as you drag the marker near the edge.
            </description>
            <defaultvalue>true</defaultvalue>
        </property>
        <property>
            <name>bouncy</name>
            <classname>boolean</classname>
            <description>
                Toggles whether or not the marker should bounce up and down after it finishes dragging.
            </description>
            <defaultvalue>false</defaultvalue>
        </property>
        <property>
            <name>bounceGravity</name>
            <classname>java.lang.Double</classname>
            <description>
                When finishing dragging, this number is used to define the acceleration rate of the marker during the
                bounce down to earth.
            </description>
            <defaultvalue>1d</defaultvalue>
        </property>
        <property>
            <name>clickable</name>
            <classname>boolean</classname>
            <description>
                Toggles whether or not the marker is clickable. Markers that are not clickable or draggable are inert,
                consume less resources and do not respond to any events.
            </description>
            <defaultvalue>false</defaultvalue>
        </property>
        <property>
            <name>draggable</name>
            <classname>boolean</classname>
            <description>
                Toggles whether or not the marker will be draggable by users. Markers set up to be dragged require more
                resources to set up than markers that are clickable. Any marker that is draggable is also clickable,
                bouncy and auto-pan enabled by default.
            </description>
            <defaultvalue>false</defaultvalue>
        </property>
        <property>
            <name>dragCrossMove</name>
            <classname>boolean</classname>
            <description>
                When dragging markers normally, the marker floats up and away from the cursor. Setting this value to
                true keeps the marker underneath the cursor, and moves the cross downwards instead.
            </description>
            <defaultvalue>false</defaultvalue>
        </property>
        <property>
            <name>hide</name>
            <classname>boolean</classname>
            <description>
                When true, indicates that the map should not initially display the GMarker. To turn on the overlay, call
                GMarker.show().
            </description>
            <defaultvalue>false</defaultvalue>
        </property>
        <property>
            <name>icon</name>
            <classname>java.lang.String</classname>
            <description>
                Chooses the Icon for this class. If not specified, G_DEFAULT_ICON is used.
            </description>
            <defaultvalue>null</defaultvalue>
        </property>
        <property>
            <name>iconHeight</name>
            <classname>java.lang.Integer</classname>
            <description>
                The height of the icon.
            </description>
            <defaultvalue>null</defaultvalue>
        </property>
        <property>
            <name>iconWidth</name>
            <classname>java.lang.Integer</classname>
            <description>
                The width of the icon.
            </description>
            <defaultvalue>null</defaultvalue>
        </property>
        <property>
            <name>title</name>
            <classname>java.lang.String</classname>
            <description>
                This string will appear as tooltip on the marker, i.e. it will work just as the title attribute on HTML
                elements.
            </description>
            <defaultvalue>null</defaultvalue>
        </property>
        <property>
            <name>onclick</name>
            <classname>java.lang.String</classname>
            <description>
                This event is fired when the marker icon was clicked, passing in the current coordinate of the marker
                within its latlng argument. Notice that
                this event will also fire for the map, with the marker passed as the first argument to the event handler
                there.
            </description>
            <defaultvalue>null</defaultvalue>
        </property>
    </component>
</components>