blob: 2f0a3496a547a582c697ec0f40843d42fe526644 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2010 Soyatec (http://www.soyatec.com) 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:
* Soyatec - initial API and implementation
*******************************************************************************/
package org.eclipse.xwt.javabean.metadata;
import org.eclipse.xwt.metadata.IEvent;
/**
* @author jliu
*/
public class TypedEvent implements IEvent {
private String name;
private int eventType;
/**
* SWT event type.
*/
public TypedEvent(String name, int eventType) {
this.name = name;
this.eventType = eventType;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.xwt.core.metadata.IBehavior#getName()
*/
public String getName() {
return name;
}
public int getEventType() {
return eventType;
}
public void setName(String name) {
this.name = name;
}
}