|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.AbstractButton javax.swing.JMenuItem javax.swing.JMenu net.sourceforge.pavlov.swing.HelpSystem
public class HelpSystem
HelpSystem creates a JMenu of Help Topics, each of which will automatically open a HTMLInternalFrame with the specified URL when clicked. This system is pretty lightweight and easy to use, but not as feature-rich as Sun's jHelp.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JMenu |
---|
JMenu.AccessibleJMenu, JMenu.WinListener |
Nested classes/interfaces inherited from class javax.swing.JMenuItem |
---|
JMenuItem.AccessibleJMenuItem |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected Hashtable<String,HTMLInternalFrame> |
browsers
Describe variable browsers here. |
protected Container |
pane
Describe variable pane here. |
Fields inherited from class javax.swing.JMenu |
---|
popupListener |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HelpSystem(Container dPane)
Creates a new HelpSystem instance. |
|
HelpSystem(Container dPane,
URL aboutURL,
URL helpURL)
Creates a new HelpSystem instance. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Creates the HTMLInternalFrame when a help item is selected. |
boolean |
addItem(String url,
String title)
Adds a HelpItem to the JMenu. |
void |
addItem(URL url,
String title)
Adds a HelpItem to the JMenu. |
JMenu |
getHelpMenu()
Deprecated. This method predates this class being a subclass of JMenu. |
protected void |
init(Container dPane,
URL aboutURL,
URL helpURL)
Deprecated. Shouldn't have made it into 1.0. |
protected void |
showBrowser(URL url,
String title)
Describe showBrowser method here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.MenuElement |
---|
processKeyEvent, processMouseEvent |
Field Detail |
---|
protected Container pane
pane
here.
protected Hashtable<String,HTMLInternalFrame> browsers
browsers
here.
Constructor Detail |
---|
public HelpSystem(Container dPane)
HelpSystem
instance.
dPane
- a Container
valuepublic HelpSystem(Container dPane, URL aboutURL, URL helpURL)
HelpSystem
instance.
dPane
- a Container
valueaboutURL
- an URL
valuehelpURL
- an URL
valueMethod Detail |
---|
protected void showBrowser(URL url, String title)
showBrowser
method here.
url
- an URL
valuetitle
- a String
valuepublic boolean addItem(String url, String title)
url
- a String
valuetitle
- a String
value
boolean
valuepublic void addItem(URL url, String title)
url
- an URL
valuetitle
- a String
value@Deprecated protected void init(Container dPane, URL aboutURL, URL helpURL)
init
method here.
dPane
- a Container
valueaboutURL
- an URL
valuehelpURL
- an URL
value@Deprecated public JMenu getHelpMenu()
getHelpMenu
method here.
JMenu
valuepublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- an ActionEvent
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |