borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
DecoratedFrame component
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----java.awt.Window
+----java.awt.Frame
+----borland.jbcl.control.DecoratedFrame
About the DecoratedFrame component
Variables Constructors Properties Methods Event Listeners
Implements MenuContainer, ImageObserver, Serializable
Creates a top-level window with a title. Uses BorderLayout. The center is the client, and the borders are decorations.
DecoratedFrame variables
Variables implemented in this class
DecoratedFrame constructors
DecoratedFrame properties
*Read-only properties **Write-only properties
Properties implemented in this class
DecoratedFrame methods
Methods implemented in this class
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- contains(int, int)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processFocusEvent(java.awt.event.FocusEvent)
- processKeyEvent(java.awt.event.KeyEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- repaint(long, int, int, int, int)
- requestFocus()
- reshape(int, int, int, int)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show(boolean)
- size()
- toString()
- transferFocus()
- update(java.awt.Graphics)
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paint(java.awt.Graphics)
- paintComponents(java.awt.Graphics)
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- removeNotify()
- validate()
- validateTree()
DecoratedFrame event listeners
DecoratedFrame variables
client
protected Component client
exitOnClose
protected boolean exitOnClose
imageName
protected String imageName
url
protected URL url
DecoratedFrame constructors
DecoratedFrame()
public DecoratedFrame()
Constructs a DecoratedFrame. The center is the client, and the borders are decorations.
DecoratedFrame properties
client
public Component getClient()
public void setClient(java.awt.Component client)
The center component of the DecoratedFrame.
exitOnClose
public boolean isExitOnClose()
public void setExitOnClose(boolean eoc)
The exitOnClose property controls what this window does when it receives a WindowEvent.WINDOW_CLOSING event. true allows it to cause the application to exit.
iconImage
public void setIconImage(java.awt.Image image)
The iconImage property stores the image to display when the DecoratedFrame is iconized.
If the path is non-null, calls setupImage(Image, String).
iconImageName
public String getIconImageName()
public void setIconImageName(java.lang.String path)
The filename of the image to display when the DecoratedFrame is iconized.
If the path is non-null, calls setupImage(ImageLoader.load(path, this), path).
If the imageName is null, calls java.awt.Frame.setIconImage(Image null).
iconImageURL
public URL getIconImageURL()
public void setIconImageURL(java.net.URL url)
The URL of the image to display when the DecoratedFrame is iconized.
preferredSize
public Dimension getPreferredSize()
Unlike awt.Frame, this method adds space to account for the height of the MenuBar.
DecoratedFrame methods
processWindowEvent(java.awt.event.WindowEvent)
protected void processWindowEvent(java.awt.event.WindowEvent e)
Calls java.awt.Window.processWindowEvent().
If the window event is WindowEvent.WINDOW_CLOSING, closes the DecoratedFrame window.
Overrides:
java.awt.Window.processWindowEvent(WindowEvent)
setupImage(java.awt.Image, java.lang.String)
protected void setupImage(java.awt.Image im, java.lang.String path)
Calls java.awt.image.prepareImage(im, this), sets imageName to the specified path, then calls java.awt.Frame.setIconImage(im).
DecoratedFrame event listeners
This component is a source for the following event sets.
For information on the standard AWT event sets, see Standard Java events.
component
public synchronized void addComponentListener(java.awt.event.ComponentListener l)
public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
container
public synchronized void addContainerListener(java.awt.event.ContainerListener l)
public void removeContainerListener(java.awt.event.ContainerListener l)
focus
public synchronized void addFocusListener(java.awt.event.FocusListener l)
public synchronized void removeFocusListener(java.awt.event.FocusListener l)
key
public synchronized void addKeyListener(java.awt.event.KeyListener l)
public synchronized void removeKeyListener(java.awt.event.KeyListener l)
mouse
public synchronized void addMouseListener(java.awt.event.MouseListener l)
public synchronized void removeMouseListener(java.awt.event.MouseListener l)
mouseMotion
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
window
public synchronized void addWindowListener(java.awt.event.WindowListener l)
public synchronized void removeWindowListener(java.awt.event.WindowListener l)