org.lobobrowser.gui
Class BrowserPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.lobobrowser.gui.BrowserPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, BrowserWindow, WindowCallback, NavigatorWindow

public class BrowserPanel
extends javax.swing.JPanel
implements NavigatorWindow, BrowserWindow, WindowCallback

A BrowserPanel contains a FramePanel along with optional address bar, toolbars, menu bar and status bar.

Invoke navigate(String) to load a document into the top frame of the BrowserPanel.

See Also:
PlatformInit.init(boolean, boolean), Serialized Form

Nested Class Summary
 class BrowserPanel.LocalEventDispatch
           
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
BrowserPanel()
          Constructs a BrowserPanel with toolbars, an address bar, a status bar, but no menu bar.
BrowserPanel(javax.swing.JMenuBar menuBar)
          Constructs a BrowserPanel with a menu bar, toolbars, an address bar and a status bar.
BrowserPanel(javax.swing.JMenuBar menuBar, boolean hasAddressBar, boolean hasToolBar, boolean hasStatusBar)
          Constructs a BrowserPanel with optional menu bar, toolbars, an address bar and a status bar.
 
Method Summary
 void addAddressBarComponent(java.awt.Component addressBarComponent)
          Adds a component to the address bar.
 void addContentListener(ContentListener listener)
          Adds a listener of content events.
 void addMenu(java.lang.String menuId, javax.swing.JMenu menu)
          Adds a top-level menu to the window.
 void addNavigationListener(NavigationListener listener)
          Adds a listener of navigation events, applicable only to the top frame.
 void addNavigatorWindowListener(NavigatorWindowListener listener)
          Adds a listener of window events.
 void addResponseListener(ResponseListener listener)
          Adds a listener of response events.
 void addSharedToolBarComponent(java.awt.Component toolBarComponent)
          Adds a component to the shared tool bar.
 void addStatusBarComponent(java.awt.Component statusBarComponent)
          Adds a component to the status bar.
 void addToolBar(java.awt.Component toolBar)
          Adds a "tool bar" component to the window.
 boolean back()
           
 boolean canBack()
           
 boolean canCopy()
           
 boolean canForward()
           
 boolean canReload()
           
 boolean copy()
           
 java.awt.Component createGap()
          Creates a gap component that should be placed between toolbar, address bar or status bar components.
 java.awt.Component createGlueComponent(java.awt.Component wrappedComponent, boolean usingMaxSize)
          Creates a component wrapper that expands to fill its parent's available space.
 void dispose()
          Disposes the current BrowserPanel.
 boolean forward()
           
 java.awt.Window getAwtWindow()
          Gets the java.awt.Frame instance associated with this NavigatorWindow.
 NavigationEntry[] getBackNavigationEntries()
           
 java.awt.Component getComponent()
          Gets a component that may be used as a parent of prompt dialogs during requests.
 ComponentContent getComponentContent()
          Gets the component content currently set in the frame.
 java.lang.Object getContentObject()
          Gets an object that is used to represent the current frame content.
 java.lang.String getCurrentMimeType()
          Gets a mime type that goes with the object returned by FramePanel.getContentObject().
 NavigationEntry getCurrentNavigationEntry()
           
 java.lang.String getDefaultStatus()
          Gets the current default status message or null if there's no default.
 java.lang.String getDocumentTitle()
          Gets the recommended title of the document currently in the top frame.
 NavigationEntry[] getForwardNavigationEntries()
           
 javax.swing.JMenu getMenu(java.lang.String menuId)
          Gets a menu previously added, typically by another extension with higher priority.
 java.lang.String getStatus()
          Gets the current window status message.
 NavigatorFrame getTopFrame()
          Gets the top frame of this window.
 FramePanel getTopFramePanel()
          Gets the root FramePanel of the window.
 UserAgent getUserAgent()
          Gets the navigator for the window.
 WindowCallback getWindowCallback()
          Gets a WindowCallback instance that receives navigation notifications.
protected  java.lang.String getWindowTitle(ClientletResponse response, ComponentContent content)
           
 boolean goTo(NavigationEntry entry)
          Navigates to a NavigationEntry belonging to navigation history in the current session.
 void handleDocumentAccess(NavigatorFrame frame, ClientletResponse response)
          Called when a document has been accessed, but has not yet rendered.
 void handleDocumentRendering(NavigatorFrame frame, ClientletResponse response, ComponentContent content)
          Called when the document has either rendered or is beginning to be incrementally rendered.
 void handleError(NavigatorFrame frame, ClientletResponse response, java.lang.Throwable exception)
          Invoked when there's a request error.
 boolean hasSource()
           
 boolean isCloseWindowOnDispose()
          Returns a value indicating whether the parent window is closed when the current BrowserPanel is disposed.
 void navigate(java.lang.String urlOrPath)
          Navigates to the URL or path provided.
 void navigate(java.net.URL url)
          Navigates to the URL provided.
 boolean reload()
           
 void removeContentListener(ContentListener listener)
           
 void removeNavigationListener(NavigationListener listener)
          Removes a listener of navigation events previously added with addNavigationListener(NavigationListener).
 void removeNavigatorWindowListener(NavigatorWindowListener listener)
          Removes a listener previously added with NavigatorWindow.addNavigatorWindowListener(NavigatorWindowListener)
 void removeResponseListener(ResponseListener listener)
           
 void setCloseWindowOnDispose(boolean closeWindowOnDispose)
          Sets a flag indicating whether the parent window should be closed when the current BrowserPanel is disposed.
 void setDefaultStatus(NavigatorFrame frame, java.lang.String defaultStatus)
          Called to set a default status message.
 void setDocumentTitle(java.lang.String documentTitle)
           
 void setStatus(NavigatorFrame frame, java.lang.String value)
          Called to set a status message.
 boolean stop()
           
 void updateProgress(NavigatorProgressEvent event)
          Updates request progress.
 void windowClosing()
          Invoke this method when the window that owns the BrowserPanel is about to close.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, 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

BrowserPanel

public BrowserPanel()
Constructs a BrowserPanel with toolbars, an address bar, a status bar, but no menu bar.


BrowserPanel

public BrowserPanel(javax.swing.JMenuBar menuBar)
Constructs a BrowserPanel with a menu bar, toolbars, an address bar and a status bar.

Parameters:
menuBar - A JMenuBar instance presumably set on a JFrame.

BrowserPanel

public BrowserPanel(javax.swing.JMenuBar menuBar,
                    boolean hasAddressBar,
                    boolean hasToolBar,
                    boolean hasStatusBar)
Constructs a BrowserPanel with optional menu bar, toolbars, an address bar and a status bar.

Parameters:
menuBar - A JMenuBar instance presumably set on a JFrame.
hasAddressBar - Whether the panel has an address bar.
hasToolBar - Whether the panel has toolbars.
hasStatusBar - Whether the panel has a status bar.
Method Detail

windowClosing

public void windowClosing()
Invoke this method when the window that owns the BrowserPanel is about to close. This should be done in order to inform extensions about the window closing.


navigate

public void navigate(java.lang.String urlOrPath)
              throws java.net.MalformedURLException
Navigates to the URL or path provided.

Parameters:
urlOrPath - An absolute URL or file path.
Throws:
java.net.MalformedURLException

navigate

public void navigate(java.net.URL url)
              throws java.net.MalformedURLException
Navigates to the URL provided.

Parameters:
url - A URL.
Throws:
java.net.MalformedURLException

addAddressBarComponent

public void addAddressBarComponent(java.awt.Component addressBarComponent)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Adds a component to the address bar. The preferred width of the component is used, whereas its height will be set roughly to the height of the status bar.

Specified by:
addAddressBarComponent in interface NavigatorWindow
See Also:
NavigatorWindow.createGlueComponent(Component, boolean)

addMenu

public void addMenu(java.lang.String menuId,
                    javax.swing.JMenu menu)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Adds a top-level menu to the window.

Specified by:
addMenu in interface NavigatorWindow
Parameters:
menuId - A globally unique ID for the menu.
menu - A JMenu instance.
See Also:
NavigatorWindow.getMenu(String)

addNavigatorWindowListener

public void addNavigatorWindowListener(NavigatorWindowListener listener)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Adds a listener of window events.

Specified by:
addNavigatorWindowListener in interface NavigatorWindow
Parameters:
listener - A listener instance.

addSharedToolBarComponent

public void addSharedToolBarComponent(java.awt.Component toolBarComponent)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Adds a component to the shared tool bar. The preferred width of the component is used, whereas its height will be set roughly to the height of the shared tool bar.

Specified by:
addSharedToolBarComponent in interface NavigatorWindow
See Also:
NavigatorWindow.createGlueComponent(Component, boolean)

addStatusBarComponent

public void addStatusBarComponent(java.awt.Component statusBarComponent)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Adds a component to the status bar. The preferred width of the component is used, whereas its height will be set roughly to the height of the status bar.

Specified by:
addStatusBarComponent in interface NavigatorWindow
See Also:
NavigatorWindow.createGlueComponent(Component, boolean)

addToolBar

public void addToolBar(java.awt.Component toolBar)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Adds a "tool bar" component to the window. The preferred height of the tool bar is used, whereas its width will be set roughly to the width of the window.

Specified by:
addToolBar in interface NavigatorWindow
Parameters:
toolBar - A AWT or Swing lightweight.

back

public boolean back()
Specified by:
back in interface NavigatorWindow

canBack

public boolean canBack()
Specified by:
canBack in interface NavigatorWindow

canCopy

public boolean canCopy()
Specified by:
canCopy in interface NavigatorWindow

canForward

public boolean canForward()
Specified by:
canForward in interface NavigatorWindow

canReload

public boolean canReload()
Specified by:
canReload in interface NavigatorWindow

copy

public boolean copy()
Specified by:
copy in interface NavigatorWindow

createGap

public java.awt.Component createGap()
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Creates a gap component that should be placed between toolbar, address bar or status bar components.

Specified by:
createGap in interface NavigatorWindow

createGlueComponent

public java.awt.Component createGlueComponent(java.awt.Component wrappedComponent,
                                              boolean usingMaxSize)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Creates a component wrapper that expands to fill its parent's available space. It only works if the parent uses a Swing BoxLayout. Examples of components that are wrapped this way are the address combo box and the status message component.

Specified by:
createGlueComponent in interface NavigatorWindow
Parameters:
wrappedComponent - The component that is wrapped by the glue box.
usingMaxSize - Whether the adjacent components have a maximum size that the container should try to use. If this argument is false, it is assumed that the adjacent components can be shrunk to their minimum sizes.

isCloseWindowOnDispose

public boolean isCloseWindowOnDispose()
Returns a value indicating whether the parent window is closed when the current BrowserPanel is disposed.

See Also:
setCloseWindowOnDispose(boolean)

setCloseWindowOnDispose

public void setCloseWindowOnDispose(boolean closeWindowOnDispose)
Sets a flag indicating whether the parent window should be closed when the current BrowserPanel is disposed. The BrowserPanel is normally disposed by the standard File/Exit menu and equivalent actions.

The default value of the flag is true.

Parameters:
closeWindowOnDispose - A boolean value.
See Also:
dispose()

dispose

public void dispose()
Disposes the current BrowserPanel. This method is normally activated by the standard File/Exit menu.

Specified by:
dispose in interface NavigatorWindow
See Also:
setCloseWindowOnDispose(boolean)

forward

public boolean forward()
Specified by:
forward in interface NavigatorWindow

getAwtWindow

public java.awt.Window getAwtWindow()
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Gets the java.awt.Frame instance associated with this NavigatorWindow. In most cases this method will return an instance of javax.swing.JFrame.

Specified by:
getAwtWindow in interface NavigatorWindow

getBackNavigationEntries

public NavigationEntry[] getBackNavigationEntries()
Specified by:
getBackNavigationEntries in interface NavigatorWindow

getCurrentNavigationEntry

public NavigationEntry getCurrentNavigationEntry()
Specified by:
getCurrentNavigationEntry in interface NavigatorWindow

getForwardNavigationEntries

public NavigationEntry[] getForwardNavigationEntries()
Specified by:
getForwardNavigationEntries in interface NavigatorWindow

getMenu

public javax.swing.JMenu getMenu(java.lang.String menuId)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Gets a menu previously added, typically by another extension with higher priority.

Specified by:
getMenu in interface NavigatorWindow
Parameters:
menuId - The unique ID of the menu. The convention in Lobo is to use "lobo." followed by the name of the menu in lower case, with any spaces converted to dots. For example, the ID of the File menu should be "lobo.file". The ID of the Page Services menu should be "lobo.page.services".
Returns:
A JMenu instance.

getTopFrame

public NavigatorFrame getTopFrame()
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Gets the top frame of this window.

Specified by:
getTopFrame in interface NavigatorWindow

getUserAgent

public UserAgent getUserAgent()
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Gets the navigator for the window.

Specified by:
getUserAgent in interface NavigatorWindow

goTo

public boolean goTo(NavigationEntry entry)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Navigates to a NavigationEntry belonging to navigation history in the current session. without generating a new entry, in much the same way that NavigatorWindow.back() and NavigatorWindow.forward() work.

Specified by:
goTo in interface NavigatorWindow
Parameters:
entry - A existing NavigationEntry.
Returns:
True if the operation succeeded.

hasSource

public boolean hasSource()
Specified by:
hasSource in interface NavigatorWindow

reload

public boolean reload()
Specified by:
reload in interface NavigatorWindow

removeNavigatorWindowListener

public void removeNavigatorWindowListener(NavigatorWindowListener listener)
Description copied from interface: org.lobobrowser.ua.NavigatorWindow
Removes a listener previously added with NavigatorWindow.addNavigatorWindowListener(NavigatorWindowListener)

Specified by:
removeNavigatorWindowListener in interface NavigatorWindow

stop

public boolean stop()
Specified by:
stop in interface NavigatorWindow

getTopFramePanel

public FramePanel getTopFramePanel()
Description copied from interface: BrowserWindow
Gets the root FramePanel of the window.

Specified by:
getTopFramePanel in interface BrowserWindow

getWindowCallback

public WindowCallback getWindowCallback()
Description copied from interface: BrowserWindow
Gets a WindowCallback instance that receives navigation notifications. This method may return null.

Specified by:
getWindowCallback in interface BrowserWindow

getComponent

public java.awt.Component getComponent()
Description copied from interface: WindowCallback
Gets a component that may be used as a parent of prompt dialogs during requests.

Specified by:
getComponent in interface WindowCallback

getDefaultStatus

public java.lang.String getDefaultStatus()
Description copied from interface: WindowCallback
Gets the current default status message or null if there's no default.

Specified by:
getDefaultStatus in interface WindowCallback

getStatus

public java.lang.String getStatus()
Description copied from interface: WindowCallback
Gets the current window status message.

Specified by:
getStatus in interface WindowCallback

handleDocumentAccess

public void handleDocumentAccess(NavigatorFrame frame,
                                 ClientletResponse response)
Description copied from interface: WindowCallback
Called when a document has been accessed, but has not yet rendered. Processing could be cancelled.

Specified by:
handleDocumentAccess in interface WindowCallback

handleDocumentRendering

public void handleDocumentRendering(NavigatorFrame frame,
                                    ClientletResponse response,
                                    ComponentContent content)
Description copied from interface: WindowCallback
Called when the document has either rendered or is beginning to be incrementally rendered.

Specified by:
handleDocumentRendering in interface WindowCallback

getWindowTitle

protected java.lang.String getWindowTitle(ClientletResponse response,
                                          ComponentContent content)

getDocumentTitle

public java.lang.String getDocumentTitle()
Gets the recommended title of the document currently in the top frame.


setDocumentTitle

public void setDocumentTitle(java.lang.String documentTitle)

handleError

public void handleError(NavigatorFrame frame,
                        ClientletResponse response,
                        java.lang.Throwable exception)
Description copied from interface: WindowCallback
Invoked when there's a request error.

Specified by:
handleError in interface WindowCallback

setDefaultStatus

public void setDefaultStatus(NavigatorFrame frame,
                             java.lang.String defaultStatus)
Description copied from interface: WindowCallback
Called to set a default status message.

Specified by:
setDefaultStatus in interface WindowCallback

setStatus

public void setStatus(NavigatorFrame frame,
                      java.lang.String value)
Description copied from interface: WindowCallback
Called to set a status message.

Specified by:
setStatus in interface WindowCallback

updateProgress

public void updateProgress(NavigatorProgressEvent event)
Description copied from interface: WindowCallback
Updates request progress.

Specified by:
updateProgress in interface WindowCallback

getContentObject

public java.lang.Object getContentObject()
Gets an object that is used to represent the current frame content. For example, if the frame is currently showing HTML, this method will probably return an instance of org.w3c.dom.html2.HTMLDocument.


getCurrentMimeType

public java.lang.String getCurrentMimeType()
Gets a mime type that goes with the object returned by FramePanel.getContentObject(). This is not necessarily the same as the mime type declared in the headers of the response that produced the current content.


addNavigationListener

public void addNavigationListener(NavigationListener listener)
Adds a listener of navigation events, applicable only to the top frame.

Parameters:
listener - The listener.
See Also:
FramePanel.addNavigationListener(NavigationListener), FramePanelFactorySource

removeNavigationListener

public void removeNavigationListener(NavigationListener listener)
Removes a listener of navigation events previously added with addNavigationListener(NavigationListener).

Parameters:
listener - The listener.

addContentListener

public void addContentListener(ContentListener listener)
Adds a listener of content events.

Parameters:
listener - The listener.
See Also:
getComponentContent()

removeContentListener

public void removeContentListener(ContentListener listener)

addResponseListener

public void addResponseListener(ResponseListener listener)
Adds a listener of response events.

Parameters:
listener - The listener.

removeResponseListener

public void removeResponseListener(ResponseListener listener)

getComponentContent

public ComponentContent getComponentContent()
Gets the component content currently set in the frame.



SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]