net.sf.doolin.gui.window.support
Class FrameGUIWindow<B>

java.lang.Object
  extended by net.sf.doolin.gui.window.support.AbstractGUIWindow<B>
      extended by net.sf.doolin.gui.window.support.AbstractRootPaneGUIWindow<B>
          extended by net.sf.doolin.gui.window.support.FrameGUIWindow<B>
Type Parameters:
B - Type of the window data
All Implemented Interfaces:
PropertyContainer, GUIWindow<B>

public class FrameGUIWindow<B>
extends AbstractRootPaneGUIWindow<B>

Application window based on a JFrame.

Author:
Damien Coraboeuf

Field Summary
 
Fields inherited from class net.sf.doolin.gui.window.support.AbstractRootPaneGUIWindow
menuBarContextMap
 
Constructor Summary
FrameGUIWindow()
           
 
Method Summary
protected  void build()
          Builds the window.
 void close()
          Saves in preferences when the frame is closed Notifies the window descriptor.
 void display()
          Displays the window on the screen.
protected  void setSize(WindowSize size)
          Sets the size of the frame
 void setWindowIcon(Icon icon)
          Sets the icon for the window
 void setWindowTitle(String value)
          Sets the frame title.
 
Methods inherited from class net.sf.doolin.gui.window.support.AbstractRootPaneGUIWindow
getRootPanel, getWindowPanel, installMenuBar, installMenuBar, installToolBar, uninstallMenuBar, uninstallToolBar
 
Methods inherited from class net.sf.doolin.gui.window.support.AbstractGUIWindow
addGUIWindowListener, addView, build, canClose, getActionContext, getApplication, getId, getOpenViews, getProperty, getView, getWindowData, getWindowDescriptor, getWindowListeners, isClosed, onPostCreate, removeView, setProperty, showView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameGUIWindow

public FrameGUIWindow()
Method Detail

close

public void close()
Saves in preferences when the frame is closed Notifies the window descriptor. Closes the window.

Specified by:
close in interface GUIWindow<B>
Overrides:
close in class AbstractGUIWindow<B>

display

public void display()
Displays the window on the screen..


setWindowIcon

public void setWindowIcon(Icon icon)
Description copied from interface: GUIWindow
Sets the icon for the window

Parameters:
icon - Icon to set

setWindowTitle

public void setWindowTitle(String value)
Sets the frame title. Sets the window title.

Parameters:
value - Window title

build

protected void build()
Builds the window..

Overrides:
build in class AbstractRootPaneGUIWindow<B>
See Also:
AbstractGUIWindow.getApplication(), AbstractGUIWindow.getWindowData()

setSize

protected void setSize(WindowSize size)
Sets the size of the frame

Parameters:
size - Size specification


Copyright © 2011. All Rights Reserved.