blob: 25443f13d369db119e5f09c02aa6bcf48a2cd90e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2012 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* EclipseSource - initial API and implementation
******************************************************************************/
package org.eclipse.swt.events;
import org.eclipse.rap.rwt.Adaptable;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
/**
* Instances of this class are sent as a result of
* a widget such as a menu item being armed.
*
* @see ArmListener
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*
* @since 1.3
*/
public final class ArmEvent extends TypedEvent {
private static final long serialVersionUID = 3258126964249212217L;
private static final int WIDGET_ARMED = SWT.Arm;
private static final int[] EVENT_TYPES = { WIDGET_ARMED };
/**
* Constructs a new instance of this class based on the
* information in the given untyped event.
*
* @param event the untyped event containing the information
*/
public ArmEvent( Event event ) {
super( event );
}
/**
* @since 2.0
* @deprecated not part of the API, do not use in application code
*/
@Deprecated
public static boolean hasListener( Adaptable adaptable ) {
return hasListener( adaptable, EVENT_TYPES );
}
}