|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JMenuBar
jsky.html.HTMLViewerMenuBar
public class HTMLViewerMenuBar
Implements a menubar for an HTMLViewer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JMenuBar |
---|
JMenuBar.AccessibleJMenuBar |
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 | |
---|---|
protected static HTMLViewer |
currentHTMLViewer
The current HTML viewer window (for the Go/history menu, which may be shared by multiple windows) |
protected JMenu |
fileMenu
Handle for the File menu |
protected JMenu |
goMenu
Handle for the Go menu |
protected HTMLViewer |
htmlViewer
Target panel |
protected GenericToolBar |
toolBar
The toolbar associated with the target panel |
protected JMenu |
viewMenu
Handle for the View menu |
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 | |
---|---|
HTMLViewerMenuBar(HTMLViewer htmlViewer,
GenericToolBar toolBar)
Create the menubar for the given HTMLViewer panel |
Method Summary | |
---|---|
protected JMenuItem |
createFileCloseMenuItem()
Create the File => Close menu item |
protected JMenu |
createFileMenu()
Create the File menu. |
protected JMenuItem |
createFileOpenURLMenuItem()
Create the File => "Open URL" menu item |
protected JMenuItem |
createGoClearHistoryMenuItem()
Create the Go => "Clear History" menu item. |
protected JMenu |
createGoMenu(JMenu menu)
Create the Go menu. |
protected JMenu |
createViewMenu()
Create the View menu. |
protected JMenu |
createViewShowToolBarAsMenu()
Create the View => "Show Toolbar As" menu |
protected JCheckBoxMenuItem |
createViewToolBarMenuItem()
Create the View => "Toolbar" menu item |
static HTMLViewer |
getCurrentHTMLViewer()
Return the current viewer window (for the Go/history menu, which may be shared by multiple windows); |
JMenu |
getFileMenu()
Return the handle for the File menu |
JMenu |
getGoMenu()
Return the handle for the Go menu |
JMenu |
getViewMenu()
Return the handle for the View menu |
static void |
setCurrentHTMLViewer(HTMLViewer htmlViewer)
Set the current viewer window (for the Go/history menu, which may be shared by multiple windows); |
Methods inherited from class javax.swing.JMenuBar |
---|
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HTMLViewer htmlViewer
protected GenericToolBar toolBar
protected JMenu fileMenu
protected JMenu viewMenu
protected JMenu goMenu
protected static HTMLViewer currentHTMLViewer
Constructor Detail |
---|
public HTMLViewerMenuBar(HTMLViewer htmlViewer, GenericToolBar toolBar)
Method Detail |
---|
public static HTMLViewer getCurrentHTMLViewer()
public static void setCurrentHTMLViewer(HTMLViewer htmlViewer)
protected JMenu createFileMenu()
protected JMenuItem createFileOpenURLMenuItem()
protected JMenuItem createFileCloseMenuItem()
protected JMenu createViewMenu()
protected JCheckBoxMenuItem createViewToolBarMenuItem()
protected JMenu createViewShowToolBarAsMenu()
protected JMenu createGoMenu(JMenu menu)
protected JMenuItem createGoClearHistoryMenuItem()
public JMenu getFileMenu()
public JMenu getViewMenu()
public JMenu getGoMenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |