net.sf.doolin.gui.window.support
Interface IWindow

All Known Implementing Classes:
AbstractIWindow, DialogIWindow, FrameIWindow

public interface IWindow

This interface is a wrapper around either a JFrame or a JDialog.

Author:
Damien Coraboeuf

Method Summary
 void addWindowListener(WindowListener windowListener)
          Adds a window listener
 void dispose()
          Disposes of the window.
 Container getContentPane()
          Gets the content pane of the window
 int getHeight()
           
 JRootPane getRootPane()
          Deprecated. Uses direct accessors like setDefaultButton(JButton)
 int getWidth()
           
 boolean isModal()
          Returns true if the underlying implementation is modal (like if using a JDialog).
 void pack()
           
 void setDefaultButton(JButton button)
           
 void setIcon(Icon icon)
          Sets the window icon
 void setLocation()
          Sets the location of the window according to its parent
 void setSize(int width, int height)
          Sets the size of the window
 void setTitle(String value)
          Sets the title of the window
 void show()
          Shows the window
 

Method Detail

addWindowListener

void addWindowListener(WindowListener windowListener)
Adds a window listener

Parameters:
windowListener -

dispose

void dispose()
Disposes of the window.


getContentPane

Container getContentPane()
Gets the content pane of the window

Returns:
Content pane

getHeight

int getHeight()

getRootPane

@Deprecated
JRootPane getRootPane()
Deprecated. Uses direct accessors like setDefaultButton(JButton)

Gets the root pane of the underlying window.

Returns:
The root pane of the create window

getWidth

int getWidth()

isModal

boolean isModal()
Returns true if the underlying implementation is modal (like if using a JDialog).

Returns:
true if the window is modal

pack

void pack()

setDefaultButton

void setDefaultButton(JButton button)

setIcon

void setIcon(Icon icon)
Sets the window icon

Parameters:
icon - Icon to set

setLocation

void setLocation()
Sets the location of the window according to its parent


setSize

void setSize(int width,
             int height)
Sets the size of the window

Parameters:
width - Width in pixels
height - Height in pixels

setTitle

void setTitle(String value)
Sets the title of the window

Parameters:
value - Title to set

show

void show()
Shows the window



Copyright © 2011. All Rights Reserved.