com.vaadin.polymer.keys.widget.event.KeysPressedEvent Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-a11y-keys project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.keys.widget.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.core.client.JavaScriptObject;
/**
*
*/
public class KeysPressedEvent extends GwtEvent {
public static Type TYPE = new Type();
private com.vaadin.polymer.keys.element.event.KeysPressedEvent nativeEvent;
public KeysPressedEvent(com.vaadin.polymer.keys.element.event.KeysPressedEvent nativeEvent) {
this.nativeEvent = nativeEvent;
}
public Type getAssociatedType() {
return TYPE;
}
protected void dispatch(KeysPressedEventHandler handler) {
handler.onKeysPressed(this);
}
public com.vaadin.polymer.keys.element.event.KeysPressedEvent getNativeEvent() {
return nativeEvent;
}
/**
*
*/
public JavaScriptObject getDetail() {
return getNativeEvent().getDetail().getDetail();
}
/**
* true if shift key is pressed
*/
public boolean getShift() {
return getNativeEvent().getDetail().getShift();
}
/**
* true if ctrl key is pressed
*/
public boolean getCtrl() {
return getNativeEvent().getDetail().getCtrl();
}
/**
* true if meta key is pressed
*/
public boolean getMeta() {
return getNativeEvent().getDetail().getMeta();
}
/**
* true if alt key is pressed
*/
public boolean getAlt() {
return getNativeEvent().getDetail().getAlt();
}
/**
* the normalized key
*/
public String getKey() {
return getNativeEvent().getDetail().getKey();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy