|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
chrriis.dj.nativeswing.swtimpl.components.WebBrowserDecorator
chrriis.dj.nativeswing.swtimpl.components.DefaultWebBrowserDecorator
public class DefaultWebBrowserDecorator
A default web browser decorator, which can actually be subclassed for simple customization.
| Nested Class Summary | |
|---|---|
class |
DefaultWebBrowserDecorator.WebBrowserButtonBar
The bar containing the buttons. |
static class |
DefaultWebBrowserDecorator.WebBrowserDecoratorComponentType
|
class |
DefaultWebBrowserDecorator.WebBrowserLocationBar
The bar containing the location field. |
class |
DefaultWebBrowserDecorator.WebBrowserMenuBar
The menu bar. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, 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 | |
|---|---|
DefaultWebBrowserDecorator(JWebBrowser webBrowser,
Component renderingComponent)
|
|
| Method Summary | |
|---|---|
protected void |
addButtonBarComponents(DefaultWebBrowserDecorator.WebBrowserButtonBar buttonBar)
Add the components that compose the button bar. |
protected void |
addLocationBarComponents(DefaultWebBrowserDecorator.WebBrowserLocationBar locationBar)
Add the components that compose the location bar. |
protected void |
addMenuBarComponents(DefaultWebBrowserDecorator.WebBrowserMenuBar menuBar)
Add the components (most likely menus) that compose the menu bar. |
protected String |
askLocation()
Ask the user, by default using an option pane (input dialog), the location to open. |
protected void |
configureComponent(JComponent c,
DefaultWebBrowserDecorator.WebBrowserDecoratorComponentType componentType)
Configure a component (its text, icon, tooltip, etc.). |
void |
configureForWebBrowserWindow(JWebBrowserWindow webBrowserWindow)
Configure the decorator for integration of the web browser in a web browser window. |
protected Border |
getInnerAreaBorder()
Return the border to use for the inner area, which by default return a border if at least one of the bars is visible. |
protected JWebBrowser |
getWebBrowser()
|
boolean |
isButtonBarVisible()
Indicate whether the button bar is visible. |
boolean |
isLocationBarVisible()
Indicate whether the location bar is visible. |
boolean |
isMenuBarVisible()
Indicate whether the menu bar is visible. |
boolean |
isStatusBarVisible()
Indicate whether the status bar is visible. |
void |
setButtonBarVisible(boolean isButtonBarVisible)
Set whether the button bar is visible. |
void |
setLocationBarVisible(boolean isLocationBarVisible)
Set whether the location bar is visible. |
void |
setMenuBarVisible(boolean isMenuBarVisible)
Set whether the menu bar is visible. |
void |
setStatusBarVisible(boolean isStatusBarVisible)
Set whether the status bar is visible. |
protected void |
setWebBrowserWindowIcon(JWebBrowserWindow webBrowserWindow)
|
protected void |
setWebBrowserWindowTitle(JWebBrowserWindow webBrowserWindow,
String pageTitle)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWebBrowserDecorator(JWebBrowser webBrowser,
Component renderingComponent)
| Method Detail |
|---|
protected void addButtonBarComponents(DefaultWebBrowserDecorator.WebBrowserButtonBar buttonBar)
buttonBar.add(buttonBar.getBackButton()).
protected void addLocationBarComponents(DefaultWebBrowserDecorator.WebBrowserLocationBar locationBar)
locationBar.add(locationBar.getLocationField()).
protected void addMenuBarComponents(DefaultWebBrowserDecorator.WebBrowserMenuBar menuBar)
menuBar.add(menuBar.getFileMenu()).
menuBar - the bar to add the components to.protected JWebBrowser getWebBrowser()
protected Border getInnerAreaBorder()
public void setStatusBarVisible(boolean isStatusBarVisible)
setStatusBarVisible in class WebBrowserDecoratorisStatusBarVisible - true if the status bar should be visible, false otherwise.public boolean isStatusBarVisible()
isStatusBarVisible in class WebBrowserDecoratorpublic void setMenuBarVisible(boolean isMenuBarVisible)
setMenuBarVisible in class WebBrowserDecoratorisMenuBarVisible - true if the menu bar should be visible, false otherwise.public boolean isMenuBarVisible()
isMenuBarVisible in class WebBrowserDecoratorpublic void setButtonBarVisible(boolean isButtonBarVisible)
setButtonBarVisible in class WebBrowserDecoratorisButtonBarVisible - true if the button bar should be visible, false otherwise.public boolean isButtonBarVisible()
isButtonBarVisible in class WebBrowserDecoratorpublic void setLocationBarVisible(boolean isLocationBarVisible)
setLocationBarVisible in class WebBrowserDecoratorisLocationBarVisible - true if the location bar should be visible, false otherwise.public boolean isLocationBarVisible()
isLocationBarVisible in class WebBrowserDecoratorpublic void configureForWebBrowserWindow(JWebBrowserWindow webBrowserWindow)
WebBrowserDecorator
configureForWebBrowserWindow in class WebBrowserDecorator
protected void setWebBrowserWindowTitle(JWebBrowserWindow webBrowserWindow,
String pageTitle)
protected void setWebBrowserWindowIcon(JWebBrowserWindow webBrowserWindow)
protected String askLocation()
protected void configureComponent(JComponent c,
DefaultWebBrowserDecorator.WebBrowserDecoratorComponentType componentType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||