/*******************************************************************************
 * Copyright 2014, 2016 gwt-ol3
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package ol.interaction;

import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import ol.Collection;
import ol.Feature;

/**
 * Interaction for selecting vector features. By default, selected features are
 * styled differently, so this interaction can be used for visual highlighting,
 * as well as selecting features for other actions, such as modification or output.
 * There are three ways of controlling which features are selected:
 * 	using the browser event as defined by the condition and optionally the toggle, add/remove, and multi options;
 * 	a layers filter;
 * 	and a further feature filter using the filter option.
 *
 * Selected features are added to an internal unmanaged layer.
 *
 * @author Tino Desjardins
 *          19-05-2016.
 */
@JsType(isNative = true)
public class Select extends Interaction {

    public Select() {}
    
    public Select(SelectOptions selectOptions) {}
    
    @JsProperty
    public native void setOptions(SelectOptions options);

	public native Collection<Feature> getFeatures();
	
	/**
	 * Events emitted by {@link Select} instances are instances of this type.
	 * 
	 * @author Tino Desjardins
	 *
	 */
	@JsType(isNative = true)
	public interface Event extends ol.event.Event {

	    @JsProperty
	    public String getType();
	    
	}

}

@@ -770,16 +770,51 @@
 ction;%0A%0A
+import javax.annotation.Nullable;%0A%0A
 import j
@@ -923,16 +923,43 @@
 Feature;
+%0Aimport ol.MapBrowserEvent;
 %0A%0A/**%0A *
@@ -2060,16 +2060,36 @@
 Event %7B%0A
+%09    %0A%09    @Nullable
 %0A%09    @J
@@ -2114,31 +2114,187 @@
 lic 
-String getType();%0A%09    
+Feature%5B%5D getSelected();%0A%09    %0A%09    @Nullable%0A%09    @JsProperty%0A%09    public Feature%5B%5D getDeselected();%0A%09    %0A%09    @JsProperty%09    %0A%09    public MapBrowserEvent getMapBrowserEvent();
 %0A%09%7D%0A

Add missing properties to ol.interaction.Select.Event