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

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

public class DialogIWindow
extends AbstractIWindow<JDialog>

Window implementation based on a JDialog.

Author:
Damien Coraboeuf

Constructor Summary
DialogIWindow(ActionContext actionContext)
          Constructor.
 
Method Summary
protected  JDialog buildWindow()
          Creates a JDialog.
 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

DialogIWindow

public DialogIWindow(ActionContext actionContext)
Constructor.

Parameters:
actionContext - Action context
Method Detail

buildWindow

protected JDialog buildWindow()
Creates a JDialog.

Specified by:
buildWindow in class AbstractIWindow<JDialog>
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.