Package javax.help.plaf.basic
Class BasicHelpUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.help.plaf.HelpUI
-
- javax.help.plaf.basic.BasicHelpUI
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
public class BasicHelpUI extends HelpUI implements java.beans.PropertyChangeListener, java.io.Serializable
The default UI for JHelp.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicHelpUI(JHelp b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNavigator(JHelpNavigator nav)
Adds a Navigator.protected javax.swing.JToolBar
createToolBar(java.util.Locale locale)
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent x)
JHelpNavigator
getCurrentNavigator()
Gets the current Navigator.java.util.Enumeration
getHelpNavigators()
protected HelpHistoryModel
getHistoryModel()
Returns actual HelpHistoryModelstatic javax.swing.ImageIcon
getIcon(java.lang.Class klass, java.lang.String name)
java.awt.Dimension
getMaximumSize(javax.swing.JComponent c)
java.awt.Dimension
getMinimumSize(javax.swing.JComponent c)
protected HelpModel
getModel()
java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
void
installUI(javax.swing.JComponent c)
void
propertyChange(java.beans.PropertyChangeEvent event)
void
removeNavigator(JHelpNavigator nav)
Remove a Navigator.void
setCurrentNavigator(JHelpNavigator nav)
Sets the current Navigator.void
uninstallUI(javax.swing.JComponent c)
-
-
-
Field Detail
-
help
protected JHelp help
-
toolbar
protected javax.swing.JToolBar toolbar
-
splitPane
protected javax.swing.JSplitPane splitPane
-
tabbedPane
protected javax.swing.JTabbedPane tabbedPane
-
navs
protected java.util.Vector navs
-
-
Constructor Detail
-
BasicHelpUI
public BasicHelpUI(JHelp b)
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.ComponentUI
-
createToolBar
protected javax.swing.JToolBar createToolBar(java.util.Locale locale)
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in classjavax.swing.plaf.ComponentUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.ComponentUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in classjavax.swing.plaf.ComponentUI
-
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSize
in classjavax.swing.plaf.ComponentUI
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getModel
protected HelpModel getModel()
-
getHistoryModel
protected HelpHistoryModel getHistoryModel()
Returns actual HelpHistoryModel- Returns:
- The HelpHistoryModel
-
addNavigator
public void addNavigator(JHelpNavigator nav)
Description copied from class:HelpUI
Adds a Navigator.- Specified by:
addNavigator
in classHelpUI
- Parameters:
nav
- the Navigator to add
-
removeNavigator
public void removeNavigator(JHelpNavigator nav)
Description copied from class:HelpUI
Remove a Navigator.- Specified by:
removeNavigator
in classHelpUI
- Parameters:
nav
- The Navigator to remove.
-
getHelpNavigators
public java.util.Enumeration getHelpNavigators()
-
setCurrentNavigator
public void setCurrentNavigator(JHelpNavigator nav)
Sets the current Navigator.- Specified by:
setCurrentNavigator
in classHelpUI
- Parameters:
navigator
- The navigator
-
getCurrentNavigator
public JHelpNavigator getCurrentNavigator()
Description copied from class:HelpUI
Gets the current Navigator.- Specified by:
getCurrentNavigator
in classHelpUI
-
getIcon
public static javax.swing.ImageIcon getIcon(java.lang.Class klass, java.lang.String name)
-
-