com.vaadin.polymer.paper.element.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.element.event;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
/**
* 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.
*/
@JsType
public interface PaperSelectEvent extends Event {
static final String NAME = "paper-select";
@Override
@JsProperty
Detail getDetail();
@JsType
interface Detail extends Event.Detail {
/**
*
*/
@JsProperty JavaScriptObject getDetail();
/**
*
*/
@JsProperty boolean getIsSelected();
/**
* isSelected: True for selection and false for deselection.
item: The panel that the event refers to.
*/
@JsProperty JavaScriptObject getItem();
}
public abstract class Listener implements EventListener {
protected abstract void handleEvent(PaperSelectEvent event);
@Override
public void handleEvent(Event event) {
handleEvent((PaperSelectEvent) event);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy