|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.WindowWidget
buoy.widget.BFrame
public class BFrame
A BFrame is a WidgetContainer corresponding to a main 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, BFrames generate the following event types:
RepaintEvent
WindowActivatedEvent
WindowClosingEvent
WindowDeactivatedEvent
WindowDeiconifiedEvent
WindowIconifiedEvent
WindowResizedEvent
Constructor Summary | |
---|---|
BFrame()
Create a new BFrame. |
|
BFrame(java.lang.String title)
Create a new BFrame. |
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.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. |
Methods inherited from class buoy.widget.WindowWidget |
---|
dispose, getContent, getDefaultButton, isVisible, layoutChildren, pack, 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 BFrame()
public BFrame(java.lang.String title)
Method Detail |
---|
public javax.swing.JFrame 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 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |