ice.ri.enhancedawt.browser.gui
Class BrowserPane

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byice.ri.enhancedawt.browser.gui.BrowserPane
All Implemented Interfaces:
Accessible, ImageObserver, MemoryWarningListener, MenuContainer, Serializable, TitleListener

public class BrowserPane
extends Panel
implements TitleListener, MemoryWarningListener

Browser frame. This is the "main" gui element of the browser RI. TopLevelContainers are added to it through the StormCallback's createTopLevelContainer method.

See Also:
Serialized Form

Nested Class Summary
protected  class BrowserPane.TabLabelChangeListener
          Inner class for handling location events.
protected  class BrowserPane.UIGestureListener
          Inner Class for handling ui related gestures.
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BrowserPane(HistoryManager p_historyManager, Main main)
          Public Constructor.
 
Method Summary
 void addIBGestureListener(IBGestureListener l)
          Adds a gesture listener to the list.
 void addTopLevelContainer(Viewport viewport, TopLevelContainer tlc)
          Adds a top level container and its associated web page to the browser.
 void fireGesture(Gesture g)
          Notifies IBGestureListeners of a Gesture.
 String getCurrentLocation()
          Returns the current location.
 Frame getFrameContainer()
          Convenience method to gain a reference to the first frame in this component's hierarchy.
 Main getMain()
           
 String getTitle()
          Returns the title of the currently displayed page.
 void imageLoadingChange()
          Called when images have been turned on or off.
 void memoryLow()
          The Memory Warning Listener interface.
 void removeGestureListener(IBGestureListener l)
          Removes a gesture listener from the list.
 void removeTopLevelContainer(Viewport viewport, TopLevelContainer tlc)
          Removes a top level container and its diplayed web page from the browser.
 void setDocumentTitle(String title)
          Sets the title (locally) for the currently displayed page.
 void setupDialogs()
          Preallocates "important" dialogs so they are available for use when needed.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserPane

public BrowserPane(HistoryManager p_historyManager,
                   Main main)
Public Constructor. Takes a history manager as an argument.

Parameters:
p_historyManager - The History Manager from the stormbase.
Method Detail

getMain

public Main getMain()

addTopLevelContainer

public void addTopLevelContainer(Viewport viewport,
                                 TopLevelContainer tlc)
Adds a top level container and its associated web page to the browser.

Parameters:
viewport - The viewport of the web page being displayed
tlc - The TopLevelContainer in which it is displayed

removeTopLevelContainer

public void removeTopLevelContainer(Viewport viewport,
                                    TopLevelContainer tlc)
Removes a top level container and its diplayed web page from the browser.

Parameters:
viewport - the Viewport of the web page being removed
tlc - the TopLevelContainer in which it is displayed

getCurrentLocation

public String getCurrentLocation()
Returns the current location.

Returns:
the URL of the currently displayed page

setupDialogs

public void setupDialogs()
Preallocates "important" dialogs so they are available for use when needed.


getTitle

public String getTitle()
Returns the title of the currently displayed page.

Returns:
the title currently displayed URL

setDocumentTitle

public void setDocumentTitle(String title)
Sets the title (locally) for the currently displayed page.

Specified by:
setDocumentTitle in interface TitleListener
Parameters:
title - the title of the current page

imageLoadingChange

public void imageLoadingChange()
Called when images have been turned on or off.


getFrameContainer

public Frame getFrameContainer()
Convenience method to gain a reference to the first frame in this component's hierarchy.

Returns:
the ultimate parent Frame of the browser

memoryLow

public void memoryLow()
The Memory Warning Listener interface.

Specified by:
memoryLow in interface MemoryWarningListener

fireGesture

public void fireGesture(Gesture g)
Notifies IBGestureListeners of a Gesture.

Parameters:
g - the Gesture being emitted

addIBGestureListener

public void addIBGestureListener(IBGestureListener l)
Adds a gesture listener to the list.

Parameters:
l - the gesture listener

removeGestureListener

public void removeGestureListener(IBGestureListener l)
Removes a gesture listener from the list.

Parameters:
l - the gesture listener