Files
Brainstorm/Foundation SWT/src/com/foundation/view/swt/SwtWrapperWindow.java
2014-05-30 10:31:51 -07:00

39 lines
1.3 KiB
Java

/*
* Copyright (c) 2006,2009 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.foundation.view.swt;
import org.eclipse.swt.widgets.Shell;
import com.foundation.view.IViewContext;
public class SwtWrapperWindow extends Window {
private IViewContext viewContext = null;
/**
* SwtWrapperWindow constructor.
* @param parent The parent shell. This is optional.
* @param style The style for the new shell.
* @param viewContext The window's view context.
*/
public SwtWrapperWindow(Shell parent, int style, IViewContext viewContext) {
super();
this.viewContext = viewContext;
setSwtWidget(new Shell(parent, style));
isInitialized(true);
}//SwtWrapperWindow()//
/* (non-Javadoc)
* @see com.foundation.view.swt.AbstractComponent#initializeControl(int)
*/
protected void initializeControl(int style, Object data) {
}//initializeControl()//
/* (non-Javadoc)
* @see com.foundation.view.swt.AbstractComponent#internalGetViewContext()
*/
protected IViewContext internalGetViewContext() {
return viewContext;
}//internalGetViewContext()//
}//SwtWrapperWindow//