|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NavigatorWindow
This interface represents a navigator window.
| Method Summary | |
|---|---|
void |
addAddressBarComponent(java.awt.Component addressBarComponent)
Adds a component to the address bar. |
void |
addMenu(java.lang.String menuId,
javax.swing.JMenu menu)
Adds a top-level menu to the window. |
void |
addNavigatorWindowListener(NavigatorWindowListener listener)
Adds a listener of window 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()
Closes the window. |
boolean |
forward()
|
java.awt.Window |
getAwtWindow()
Gets the java.awt.Frame instance associated
with this NavigatorWindow. |
NavigationEntry[] |
getBackNavigationEntries()
|
NavigationEntry |
getCurrentNavigationEntry()
|
NavigationEntry[] |
getForwardNavigationEntries()
|
javax.swing.JMenu |
getMenu(java.lang.String menuId)
Gets a menu previously added, typically by another extension with higher priority. |
NavigatorFrame |
getTopFrame()
Gets the top frame of this window. |
UserAgent |
getUserAgent()
Gets the navigator for the window. |
boolean |
goTo(NavigationEntry entry)
Navigates to a NavigationEntry
belonging to navigation history in the current session. |
boolean |
hasSource()
|
boolean |
reload()
|
void |
removeNavigatorWindowListener(NavigatorWindowListener listener)
Removes a listener previously added with addNavigatorWindowListener(NavigatorWindowListener) |
boolean |
stop()
|
| Method Detail |
|---|
void addMenu(java.lang.String menuId,
javax.swing.JMenu menu)
menuId - A globally unique ID for the menu.menu - A JMenu instance.getMenu(String)javax.swing.JMenu getMenu(java.lang.String menuId)
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".
void addToolBar(java.awt.Component toolBar)
toolBar - A AWT or Swing lightweight.void addSharedToolBarComponent(java.awt.Component toolBarComponent)
toolBarComponent - createGlueComponent(Component, boolean)void addStatusBarComponent(java.awt.Component statusBarComponent)
statusBarComponent - createGlueComponent(Component, boolean)void addAddressBarComponent(java.awt.Component addressBarComponent)
addressBarComponent - createGlueComponent(Component, boolean)void addNavigatorWindowListener(NavigatorWindowListener listener)
listener - A listener instance.void removeNavigatorWindowListener(NavigatorWindowListener listener)
addNavigatorWindowListener(NavigatorWindowListener)
listener - NavigatorFrame getTopFrame()
java.awt.Component createGlueComponent(java.awt.Component wrappedComponent,
boolean usingMaxSize)
BoxLayout. Examples of components that are wrapped this way
are the address combo box and the status message component.
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.java.awt.Component createGap()
void dispose()
UserAgent getUserAgent()
boolean canBack()
boolean canForward()
boolean back()
boolean forward()
boolean canReload()
boolean reload()
boolean stop()
boolean canCopy()
boolean copy()
boolean hasSource()
boolean goTo(NavigationEntry entry)
NavigationEntry
belonging to navigation history in the current session.
without generating a new entry, in much the same
way that back() and forward() work.
entry - A existing NavigationEntry.
NavigationEntry[] getBackNavigationEntries()
NavigationEntry[] getForwardNavigationEntries()
NavigationEntry getCurrentNavigationEntry()
java.awt.Window getAwtWindow()
java.awt.Frame instance associated
with this NavigatorWindow. In most cases this method
will return an instance of javax.swing.JFrame.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||