blob: 4ecbffbae4d41954cc2b1caf16c3f86ad6022c8e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.xwt.tests.swt;
import org.eclipse.swt.widgets.Composite;
public class MyElement extends Composite {
public static final int MY_STYLE = 0xF0000000;
protected boolean myStyle = false;
public MyElement(Composite parent, int style) {
super(parent, style);
if ((style & MY_STYLE) == MY_STYLE) {
myStyle = true;
}
}
public boolean isMyStyle() {
return myStyle;
}
public void setMyStyle(boolean myStyle) {
this.myStyle = myStyle;
}
}