|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object buoy.event.EventSource buoy.widget.Widget buoy.widget.WidgetContainer buoy.widget.WindowWidget buoy.widget.BDialog
public class BDialog
A BDialog is a WidgetContainer corresponding to a dialog window. It may contain up to two child Widgets: a BMenuBar, and a single other Widget (usually a WidgetContainer of some sort) which fills the rest of the window.
In addition to the event types generated by all Widgets, BDialogs generate the following event types:
RepaintEvent
WindowActivatedEvent
WindowClosingEvent
WindowDeactivatedEvent
WindowDeiconifiedEvent
WindowIconifiedEvent
WindowResizedEvent
Constructor Summary | |
---|---|
BDialog()
Create a non-modal BDialog with no title or parent window. |
|
BDialog(java.lang.String title)
Create a non-modal BDialog with no parent window. |
|
BDialog(WindowWidget parent,
boolean modal)
Create a new BDialog with no title. |
|
BDialog(WindowWidget parent,
java.lang.String title,
boolean modal)
Create a new BDialog. |
Method Summary | |
---|---|
int |
getChildCount()
Get the number of children in this container. |
java.util.Collection<Widget> |
getChildren()
Get a Collection containing all child Widgets of this container. |
javax.swing.JDialog |
getComponent()
Get the java.awt.Component corresponding to this Widget. |
BMenuBar |
getMenuBar()
Get the BMenuBar for this window. |
java.lang.String |
getTitle()
Get the title of the dialog. |
boolean |
isModal()
Determine whether this dialog is modal. |
boolean |
isResizable()
Determine whether this dialog may be resized by the user. |
void |
pack()
Select an appropriate size for the dialog, based on the preferred size of its contents, then re-layout all of its contents. |
void |
remove(Widget widget)
Remove a child Widget from this container. |
void |
removeAll()
Remove all child Widgets from this container. |
void |
setMenuBar(BMenuBar menus)
Set the BMenuBar for this window. |
void |
setModal(boolean modal)
Set whether this dialog is modal. |
void |
setResizable(boolean resizable)
Set whether this dialog may be resized by the user. |
void |
setTitle(java.lang.String title)
Set the title of the dialog. |
Methods inherited from class buoy.widget.WindowWidget |
---|
dispose, getContent, getDefaultButton, isVisible, layoutChildren, setBounds, setContent, setDefaultButton, setVisible, toBack, toFront |
Methods inherited from class buoy.widget.WidgetContainer |
---|
isOpaque, setOpaque |
Methods inherited from class buoy.widget.Widget |
---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName |
Methods inherited from class buoy.event.EventSource |
---|
addEventLink, addEventLink, removeEventLink |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BDialog()
public BDialog(java.lang.String title)
title
- the title of the dialogpublic BDialog(WindowWidget parent, boolean modal)
parent
- the parent window (a BFrame or BDialog) for this dialogmodal
- specifies whether this is a modal dialogpublic BDialog(WindowWidget parent, java.lang.String title, boolean modal)
parent
- the parent window (a BFrame or BDialog) for this dialogtitle
- the title of the dialogmodal
- specifies whether this is a modal dialogMethod Detail |
---|
public javax.swing.JDialog getComponent()
Widget
getComponent
in class WindowWidget
public int getChildCount()
getChildCount
in class WidgetContainer
public java.util.Collection<Widget> getChildren()
getChildren
in class WidgetContainer
public BMenuBar getMenuBar()
public void setMenuBar(BMenuBar menus)
public void remove(Widget widget)
remove
in class WidgetContainer
public void removeAll()
removeAll
in class WidgetContainer
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setModal(boolean modal)
public boolean isModal()
public boolean isResizable()
public void setResizable(boolean resizable)
public void pack()
pack
in class WindowWidget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |