public class BFrame extends WindowWidget
In addition to the event types generated by all Widgets, BFrames generate the following event types:
| Constructor and Description |
|---|
BFrame()
Create a new BFrame.
|
BFrame(java.lang.String title)
Create a new BFrame.
|
| Modifier and Type | Method and Description |
|---|---|
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.JFrame |
getComponent()
Get the java.awt.Component corresponding to this Widget.
|
static java.util.List<BFrame> |
getFrames()
Get a list of all BFrames that currently exist.
|
javax.swing.ImageIcon |
getIcon()
Get the image which should be used to represent this window when it is
iconified.
|
BMenuBar |
getMenuBar()
Get the BMenuBar for this window.
|
java.lang.String |
getTitle()
Get the title of the window.
|
boolean |
isIconified()
Determine whether this window has been iconified.
|
boolean |
isMaximized()
Determine whether this window has been maximized.
|
boolean |
isResizable()
Determine whether this window may be resized by the user.
|
void |
remove(Widget widget)
Remove a child Widget from this container.
|
void |
removeAll()
Remove all child Widgets from this container.
|
void |
setIcon(javax.swing.ImageIcon icon)
Set the image which should be used to represent this window when it is
iconified.
|
void |
setIconified(boolean iconified)
Set whether this window is iconified.
|
void |
setMaximized(boolean maximized)
Set whether this window is maximized.
|
void |
setMenuBar(BMenuBar menus)
Set the BMenuBar for this window.
|
void |
setResizable(boolean resizable)
Set whether this window may be resized by the user.
|
void |
setTitle(java.lang.String title)
Set the title of the window.
|
dispose, getContent, getDefaultButton, isVisible, layoutChildren, pack, setBounds, setContent, setDefaultButton, setVisible, toBack, toFrontisOpaque, setOpaqueaddEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setNameaddEventLink, addEventLink, removeEventLinkpublic BFrame()
public BFrame(java.lang.String title)
public javax.swing.JFrame getComponent()
WidgetgetComponent in class WindowWidgetpublic int getChildCount()
getChildCount in class WidgetContainerpublic java.util.Collection<Widget> getChildren()
getChildren in class WidgetContainerpublic BMenuBar getMenuBar()
public void setMenuBar(BMenuBar menus)
public void remove(Widget widget)
remove in class WidgetContainerpublic void removeAll()
removeAll in class WidgetContainerpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean isResizable()
public void setResizable(boolean resizable)
public boolean isIconified()
public void setIconified(boolean iconified)
public javax.swing.ImageIcon getIcon()
This may be null, in which case the platform-specific default image will be used.
public void setIcon(javax.swing.ImageIcon icon)
This may be null, in which case the platform-specific default image will be used.
public boolean isMaximized()
public void setMaximized(boolean maximized)
public static java.util.List<BFrame> getFrames()
Written by Peter Eastman.