net.sf.panoptes.view
Class MainWindow
java.lang.Object
|
+--org.eclipse.jface.window.Window
|
+--net.sf.panoptes.view.MainWindow
- public class MainWindow
- extends org.eclipse.jface.window.Window
MainWindow.java
This class is a bit monolithic and does not cleanly separate controller
from view at the moment. Currently this windows has all child views as components
directly on it. I believe that a more MDI-like interface could be better in the
future. Especially if we implement interval refresh, graphing etc.
- Version:
- 0.1
- Author:
- Dag Liodden
Fields inherited from class org.eclipse.jface.window.Window |
CANCEL, OK |
Methods inherited from class org.eclipse.jface.window.Window |
close, configureShell, constrainShellSize, create, createShell, getContents, getDefaultImage, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, open, setBlockOnOpen, setDefaultImage, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainWindow
public MainWindow(MainController controller,
RootNode rootNode)
- Constructor for MainWindow.
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createContents
in class org.eclipse.jface.window.Window
- See Also:
Window.createContents(org.eclipse.swt.widgets.Composite)
showError
public void showError(java.lang.String title,
java.lang.String message,
java.lang.Throwable cause)
- Helper method for displaying errors. All errors should be shown with this method so the display method is similar
for all parts of the application.
- Parameters:
title
- message
- cause
-
getResourceAsStream
protected java.io.InputStream getResourceAsStream(java.lang.String uri)
refresh
public void refresh(Node component)
getTabFolder
public org.eclipse.swt.widgets.TabFolder getTabFolder()
- Returns:
setTabFolder
public void setTabFolder(org.eclipse.swt.widgets.TabFolder folder)
- Parameters:
folder
-
getCurrentConfigurators
public java.util.Set getCurrentConfigurators()
- Returns:
Copyright © 2003 . All Rights Reserved.