com.vaadin.polymer.paper.widget.event.PaperSelectEvent Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from paper-drawer-panel project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.paper.widget.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Fired when the selected panel changes.
* Listening for this event is an alternative to observing changes in the selected
attribute.
This event is fired both when a panel is selected and deselected.
The isSelected
detail property contains the selection state.
*/
public class PaperSelectEvent extends GwtEvent {
public static Type TYPE = new Type();
private com.vaadin.polymer.paper.element.event.PaperSelectEvent nativeEvent;
public PaperSelectEvent(com.vaadin.polymer.paper.element.event.PaperSelectEvent nativeEvent) {
this.nativeEvent = nativeEvent;
}
public Type getAssociatedType() {
return TYPE;
}
protected void dispatch(PaperSelectEventHandler handler) {
handler.onPaperSelect(this);
}
public com.vaadin.polymer.paper.element.event.PaperSelectEvent getNativeEvent() {
return nativeEvent;
}
/**
*
*/
public JavaScriptObject getDetail() {
return getNativeEvent().getDetail().getDetail();
}
/**
*
*/
public boolean getIsSelected() {
return getNativeEvent().getDetail().getIsSelected();
}
/**
* isSelected: True for selection and false for deselection.
item: The panel that the event refers to.
*/
public JavaScriptObject getItem() {
return getNativeEvent().getDetail().getItem();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy