org.geotools.gui.widget
Interface FrameWidget

All Superinterfaces:
Widget

public interface FrameWidget
extends Widget

A frame which can contain other widgets.

Version:
$Id: FrameWidget.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Cameron Shorter

Method Summary
 void addPanelWidget(PanelWidget widget)
          Add a widget to be displayed inside this frame.
 void addWindowListener(java.awt.event.WindowListener l)
          Adds the specified window listener to receive window events from this window.
 void pack()
          Pack the widgets within this frame.
 void setBorderLayout()
          Set up a BorderLayout.
 void setTitle(java.lang.String title)
          Sets the title for this frame to the specified string.
 void show()
          Makes the Window visible.
 
Methods inherited from interface org.geotools.gui.widget.Widget
addMouseListener, getWidth, removeMouseListener
 

Method Detail

setTitle

public void setTitle(java.lang.String title)
Sets the title for this frame to the specified string.

Parameters:
title - the title to be displayed in the frame's border. A null value is treated as an empty string, "".
See Also:
#getTitle

setBorderLayout

public void setBorderLayout()
Set up a BorderLayout.

Task:
TODO Allow setting of other Layout types.

addPanelWidget

public void addPanelWidget(PanelWidget widget)
Add a widget to be displayed inside this frame.

Parameters:
widget - to be displayed.
Task:
REVISIT We should be able to pass in Widget instead of PanelWidget and then walk up the class hierarchy to determine which type of Widget it is. The type of Widget is required so that we can caste the Widget into the correct Java Component type.

pack

public void pack()
Pack the widgets within this frame.


addWindowListener

public void addWindowListener(java.awt.event.WindowListener l)
Adds the specified window listener to receive window events from this window. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the window listener
See Also:
#removeWindowListener, #getWindowListeners

show

public void show()
Makes the Window visible. If the Window and/or its owner are not yet displayable, both are made displayable. The Window will be validated prior to being made visible. If the Window is already visible, this will bring the Window to the front.

See Also:
Component#isDisplayable, #toFront, Component#setVisible


Copyright © GeoTools. All Rights Reserved.