javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/ercp/swt/mobile/ScreenEvent.java
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*******************************************************************************
       
     2  * Copyright (c) 2004 IBM Corp.
       
     3  * Portion Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     4  * All rights reserved. This program and the accompanying materials
       
     5  * are made available under the terms of the Eclipse Public License v1.0
       
     6  * which accompanies this distribution, and is available at
       
     7  * http://www.eclipse.org/legal/epl-v10.html
       
     8  *
       
     9  * Contributors:
       
    10  *    Mark Rogalski (IBM Corp.) - initial API specification
       
    11  *    Nokia Corporation - S60 implementation
       
    12  *    Nokia Corporation - Qt implementation
       
    13  *******************************************************************************/
       
    14 
       
    15 package org.eclipse.ercp.swt.mobile;
       
    16 
       
    17 import org.eclipse.swt.events.TypedEvent;
       
    18 
       
    19 /**
       
    20  * Instances of this class are sent as a result of screen configuration changes.
       
    21  * 
       
    22  * @see ScreenListener
       
    23  */
       
    24 
       
    25 public class ScreenEvent extends TypedEvent {
       
    26 
       
    27 	/**
       
    28 	 * whether screen is active or not
       
    29 	 */
       
    30 	public boolean isActive;
       
    31 
       
    32 	/**
       
    33 	 * orientation of screen
       
    34 	 */
       
    35 	public int orientation;
       
    36 
       
    37 	/**
       
    38 	 * Constructs a new instance of this class and associates it with the
       
    39 	 * given screen.
       
    40 	 * 
       
    41 	 * @param screen
       
    42 	 *            the screen object which is the source of this event
       
    43 	 * 
       
    44 	 * @see Screen
       
    45 	 */
       
    46 	public ScreenEvent(Screen screen) {
       
    47 		super(screen);
       
    48 	}
       
    49 
       
    50 }
       
    51