net.sf.doolin.gui.window.support
Class FrameIWindow

java.lang.Object
  extended by net.sf.doolin.gui.window.support.AbstractIWindow<JFrame>
      extended by net.sf.doolin.gui.window.support.FrameIWindow
All Implemented Interfaces:
IWindow

public class FrameIWindow
extends AbstractIWindow<JFrame>

Window implementation based on a JFrame.

Author:
Damien Coraboeuf

Constructor Summary
FrameIWindow(ActionContext actionContext)
          Constructor
 
Method Summary
protected  JFrame buildWindow()
          Creates a JFrame.
 Container getContentPane()
          Gets the content pane of the window
 JRootPane getRootPane()
          Gets the root pane of the underlying window.
 boolean isModal()
          Returns true if the underlying implementation is modal (like if using a JDialog).
 void pack()
           
 void setDefaultButton(JButton button)
           
 void setTitle(String value)
          Sets the title of the window
 
Methods inherited from class net.sf.doolin.gui.window.support.AbstractIWindow
addWindowListener, dispose, getActionContext, getHeight, getWidth, getWindow, setIcon, setLocation, setSize, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameIWindow

public FrameIWindow(ActionContext actionContext)
Constructor

Parameters:
actionContext - Action context
Method Detail

buildWindow

protected JFrame buildWindow()
Creates a JFrame.

Specified by:
buildWindow in class AbstractIWindow<JFrame>
Returns:
Window
See Also:
SwingUtils.createWindow(Class, java.awt.Component)

getContentPane

public Container getContentPane()
Description copied from interface: IWindow
Gets the content pane of the window

Returns:
Content pane

getRootPane

public JRootPane getRootPane()
Description copied from interface: IWindow
Gets the root pane of the underlying window.

Returns:
The root pane of the create window

isModal

public boolean isModal()
Description copied from interface: IWindow
Returns true if the underlying implementation is modal (like if using a JDialog).

Returns:
true if the window is modal

pack

public void pack()

setDefaultButton

public void setDefaultButton(JButton button)

setTitle

public void setTitle(String value)
Description copied from interface: IWindow
Sets the title of the window

Parameters:
value - Title to set


Copyright © 2011. All Rights Reserved.