All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.event.PreviewEvent Maven / Gradle / Ivy

/*
 * Ext GWT - Ext for GWT
 * Copyright(c) 2007-2009, Ext JS, LLC.
 * [email protected]
 * 
 * http://extjs.com/license
 */
package com.extjs.gxt.ui.client.event;

import com.extjs.gxt.ui.client.util.BaseEventPreview;
import com.google.gwt.user.client.Event.NativePreviewEvent;

/**
 * BaseEventPreview event type.
 * 
 * 

* Note: For a given event, only the fields which are appropriate will be filled * in. The appropriate fields for each event are documented by the event source. * * @see BaseEventPreview */ public class PreviewEvent extends DomEvent { private BaseEventPreview preview; public PreviewEvent(BaseEventPreview preview, NativePreviewEvent event) { super(event); this.preview = preview; } /** * Returns the native preview event. * * @return the native preview preview */ public NativePreviewEvent getNativePreviewEvent() { return (NativePreviewEvent) getSource(); } /** * Returns the source event preview. * * @return the event preview */ public BaseEventPreview getPreview() { return preview; } /** * Sets the source event preview. * * @param preview the source event preview */ public void setPreview(BaseEventPreview preview) { this.preview = preview; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy