Class DialogWindow
java.lang.Object
bibliothek.gui.dock.common.action.panel.AbstractPanelPopupWindow
bibliothek.gui.dock.common.action.panel.DialogWindow
- All Implemented Interfaces:
PanelPopupWindow
A
PanelPopupWindow managing a JDialog.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Makes this window invisibleprotected JDialogcreateDialog(Component owner) Creates a new dialog with the ancestor window ofowneras owner.booleanisOpen()Tells whether this window is visible or not.voidopen(int x, int y) Shows the dialog at the given screen location.voidOpens the dialog relative torelativeTo.voidsetContent(Component content) Sets the contents of the dialog.voidsetUndecorated(boolean undecorated) Sets whether the dialog has a decoration or not.Methods inherited from class bibliothek.gui.dock.common.action.panel.AbstractPanelPopupWindow
addListener, fireClosed, listeners, removeListener, validateBounds
-
Constructor Details
-
DialogWindow
Creates a new window.- Parameters:
owner- the parent of the dialogpanel- the owner of the dialog
-
-
Method Details
-
setUndecorated
public void setUndecorated(boolean undecorated) Sets whether the dialog has a decoration or not.- Parameters:
undecorated- whether to decorate or not- See Also:
-
setContent
Sets the contents of the dialog.- Parameters:
content- the contents, may benull
-
open
public void open(int x, int y) Shows the dialog at the given screen location.- Parameters:
x- the dialogs locationy- the dialogs location
-
open
Opens the dialog relative torelativeTo.- Parameters:
relativeTo- some component
-
isOpen
public boolean isOpen()Description copied from interface:PanelPopupWindowTells whether this window is visible or not.- Returns:
trueif visible
-
close
public void close()Description copied from interface:PanelPopupWindowMakes this window invisible -
createDialog
Creates a new dialog with the ancestor window ofowneras owner.- Parameters:
owner- some component- Returns:
- the new dialog
-