com.vaadin.polymer.paper.widget.event.PaperResponsiveChangeEvent 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 narrow layout changes.
*/
public class PaperResponsiveChangeEvent extends GwtEvent {
public static Type TYPE = new Type();
private com.vaadin.polymer.paper.element.event.PaperResponsiveChangeEvent nativeEvent;
public PaperResponsiveChangeEvent(com.vaadin.polymer.paper.element.event.PaperResponsiveChangeEvent nativeEvent) {
this.nativeEvent = nativeEvent;
}
public Type getAssociatedType() {
return TYPE;
}
protected void dispatch(PaperResponsiveChangeEventHandler handler) {
handler.onPaperResponsiveChange(this);
}
public com.vaadin.polymer.paper.element.event.PaperResponsiveChangeEvent getNativeEvent() {
return nativeEvent;
}
/**
*
*/
public JavaScriptObject getDetail() {
return getNativeEvent().getDetail().getDetail();
}
/**
* narrow: true if the panel is in narrow layout.
*/
public boolean getNarrow() {
return getNativeEvent().getDetail().getNarrow();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy