Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.draw2d;
12

    
13
/**
14
 * An event that occurs when an {@link org.eclipse.draw2d.IFigure} gains or
15
 * loses focus.
16
 */
17
public class FocusEvent {
18

    
19
	/** The figure losing focus */
20
	public IFigure loser;
21
	/** The figure gaining focus */
22
	public IFigure gainer;
23

    
24
	/**
25
	 * Constructs a new FocusEvent.
26
	 * 
27
	 * @param loser
28
	 *            the figure losing focus
29
	 * @param gainer
30
	 *            the figure gaining focus
31
	 */
32
	public FocusEvent(IFigure loser, IFigure gainer) {
33
		this.loser = loser;
34
		this.gainer = gainer;
35
	}
36

    
37
}
(66-66/171)