|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.window.support.AbstractIWindow<W>
W - Type of Window to holdpublic abstract class AbstractIWindow<W extends Window>
Abstract IWindow implementation that holds the concrete
implementation of a Window.
| Constructor Summary | |
|---|---|
AbstractIWindow(ActionContext actionContext)
Constructor |
|
| Method Summary | |
|---|---|
void |
addWindowListener(WindowListener windowListener)
Adds a window listener |
protected abstract W |
buildWindow()
Actually builds the window instance |
void |
dispose()
Disposes of the window. |
protected ActionContext |
getActionContext()
Gets the associated action context |
int |
getHeight()
|
int |
getWidth()
|
protected W |
getWindow()
Gets the actual window instance |
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 |
show()
Shows the window |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.window.support.IWindow |
|---|
getContentPane, getRootPane, isModal, pack, setDefaultButton, setTitle |
| Constructor Detail |
|---|
public AbstractIWindow(ActionContext actionContext)
actionContext - | Method Detail |
|---|
public void addWindowListener(WindowListener windowListener)
IWindow
addWindowListener in interface IWindowWindow.addWindowListener(WindowListener)protected abstract W buildWindow()
public void dispose()
IWindow
dispose in interface IWindowWindow.dispose()protected ActionContext getActionContext()
public int getHeight()
getHeight in interface IWindowpublic int getWidth()
getWidth in interface IWindowprotected W getWindow()
public void setIcon(Icon icon)
IWindow
setIcon in interface IWindowicon - Icon to setWindow.setIconImage(java.awt.Image),
SwingUtils.toImage(Icon)public void setLocation()
IWindow
setLocation in interface IWindowWindow.setLocationRelativeTo(java.awt.Component),
Window.getOwner()
public void setSize(int width,
int height)
IWindow
setSize in interface IWindowwidth - Width in pixelsheight - Height in pixelsWindow.setSize(int, int)public void show()
IWindow
show in interface IWindowWindow.setVisible(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||