| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuic.widgets.AbstractWindow
uic.widgets.MainWindow
MainWindow is the application window for any application you will create. In the Single Document Interface (which surpasses the Mutiple Document Interface) way of working every MainWindow equals one document. To create a new application you can instanciate a new MainWindow class and put your content in it followed by a call to show() Details like window positioning and size can be ignored, the MainWindow takes care of that.
Notice that closing (the last) main window will exit java automatically.
| Nested Class Summary | |
| static class | MainWindow.GlassPaneListenerClass that stops all events to the window when we are in 'help' mode to show a whatIs message. | 
| static class | MainWindow.RootPaneClass that is a rootpane on the MainWindow in order to have the statusBar be correctly placed. | 
| Field Summary | |
| protected static int | mainWindowCount | 
| protected static MetalTheme | myThemeA UICompiler theme (most of the time) that is created for this window | 
| Fields inherited from class uic.widgets.AbstractWindow | 
| internalWindow | 
| Constructor Summary | |
| MainWindow()Empty constructor to create a new window without a specific name. | |
| MainWindow(String title)Create a new window with title. | |
| Method Summary | |
|  void | cancelHelpMode()Cancels the mode started with goToHelpMode. | 
|  void | closeWindowSlot() | 
| protected  Window | createInternalWindow(Dialog owner,
                     String title,
                     boolean modal) | 
| protected  Window | createInternalWindow(Frame owner,
                     String title,
                     boolean modal) | 
| protected  MetalTheme | createLookAndFeel()Called from constructor to set a look and feel on the new Frame. | 
| protected  StatusBar | createStatusBar()Override this method to provide your own StatusBar implementation. | 
|  JFrame | getFrame()return the top level JFrame which shows the visual MainWindow | 
|  JMenuBar | getMenuBar()Return the menuBar. | 
|  StatusBar | getStatusBar()return the statusBar. | 
|  JToolBar | getToolbar()Returns the toolbar. | 
|  JToolBar | getToolBar(String name)Returns the toolbar with the specified name. | 
|  void | goToHelpMode()Go to a mode where the cursor changes to a question mark and clicking on a widget will then trigger a popup with information about the widget. | 
| protected  boolean | queryClose()Called before the window is closed, either by the user or indirectly by the session manager. | 
|  void | setBusy(boolean busy)Set an hourglass cursor on this window when true. | 
|  void | setCaption(String name)Set the name that is displaed in the window manager | 
|  int | show(Point location,
     Dimension size)Overloaded, see AbstractWindow for details. | 
|  void | shutdown()Called when the application exits. | 
|  TranslationInterface | translate() | 
| static void | useUICTheme(boolean enabled)To automatically set the UICTheme to the newly created window this should be set to true before instanciating the first mainWindow. | 
| Methods inherited from class uic.widgets.AbstractWindow | 
| getBounds, getDialogSizePanel, getLocation, getRPContainer, getSize, positionDialog, positionDialog, setComponent, show, show | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected static int mainWindowCount
protected static MetalTheme myTheme
| Constructor Detail | 
public MainWindow()
public MainWindow(String title)
| Method Detail | 
protected Window createInternalWindow(Frame owner,
                                      String title,
                                      boolean modal)
createInternalWindow in class AbstractWindow
protected Window createInternalWindow(Dialog owner,
                                      String title,
                                      boolean modal)
createInternalWindow in class AbstractWindowpublic static void useUICTheme(boolean enabled)
enabled - set UICTheme to new created MainWinow instances.protected MetalTheme createLookAndFeel()
public JFrame getFrame()
public int show(Point location,
                Dimension size)
show in class AbstractWindowlocation - the x and y coordinates on the screen where the dialog should appear, can be null to use parents position.size - a size hint for the dialog, can be null to use default based on the preferredSize.
public JToolBar getToolbar()
public JToolBar getToolBar(String name)
public JMenuBar getMenuBar()
public StatusBar getStatusBar()
protected StatusBar createStatusBar()
public void setBusy(boolean busy)
public void setCaption(String name)
public void closeWindowSlot()
protected boolean queryClose()
public void shutdown()
public void goToHelpMode()
public void cancelHelpMode()
goToHelpMode()public TranslationInterface translate()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||