javax.help.plaf.basic

Class BasicFavoritesNavigatorUI

Implemented Interfaces:
java.util.EventListener, HelpModelListener, PropertyChangeListener, Serializable, TreeModelListener, TreeSelectionListener, HelpSetListener

public class BasicFavoritesNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, TreeSelectionListener, HelpSetListener, PropertyChangeListener, TreeModelListener, Serializable

The default UI for JHelpNavigator of type Favorites

Nested Class Summary

class
BasicFavoritesNavigatorUI.AddAction
AddAction class.
class
BasicFavoritesNavigatorUI.CopyAction
CopyAction class.
class
BasicFavoritesNavigatorUI.CutAction
CutAction class.
class
BasicFavoritesNavigatorUI.FavoritesTree
Class for JTree supported D&D features.
class
BasicFavoritesNavigatorUI.FolderAction
FolderAction class.
class
BasicFavoritesNavigatorUI.PasteAction
PasteAction class.
class
BasicFavoritesNavigatorUI.PopupListener
PopupListener class
class
BasicFavoritesNavigatorUI.RemoveAction
RemoveAction class.

Field Summary

protected Action
addAction
protected Action
copyAction
protected DefaultMutableTreeNode
currentFindNode
protected Action
cutAction
protected JHelpFavoritesNavigator
favorites
protected Action
folderAction
protected String
oldText
protected Action
pasteAction
protected JPopupMenu
popup
protected RuleBasedCollator
rbc
protected Action
removeAction
protected JScrollPane
sp
protected FavoritesNode
topNode
protected JTree
tree

Constructor Summary

BasicFavoritesNavigatorUI(JHelpFavoritesNavigator b)
Creates BasicFavoritesUI for JHelpFavoritesNavigator

Method Summary

static ComponentUI
createUI(JComponent x)
Action
getAddAction()
Returns the Add action
Action
getCopyAction()
Returns the CopyAction Object
Action
getCutAction()
Returns the CutAction object
Action
getFolderAction()
Returns the FolderAction object
Dimension
getMaximumSize(JComponent c)
Dimension
getMinimumSize(JComponent c)
Action
getPasteAction()
Returns the PasteAction object
Dimension
getPreferredSize(JComponent c)
Action
getRemoveAction()
Returns the RemoveAction object
FavoritesNode
getSelectedNode()
Returns the selected node
void
helpSetAdded(HelpSetEvent ev)
void
helpSetRemoved(HelpSetEvent ev)
void
idChanged(HelpModelEvent e)
Processes and idChanged event.
void
installUI(JComponent c)
void
propertyChange(PropertyChangeEvent event)
void
saveFavorites()
Saves favorites to the file
protected void
setCellRenderer(NavigatorView view, JTree tree)
Sets the desired cell renderer on this tree.
void
treeNodesChanged(javax.swing.event.TreeModelEvent treeModelEvent)
void
treeNodesInserted(javax.swing.event.TreeModelEvent treeModelEvent)
void
treeNodesRemoved(javax.swing.event.TreeModelEvent treeModelEvent)
void
treeStructureChanged(javax.swing.event.TreeModelEvent treeModelEvent)
void
uninstallUI(JComponent c)
void
valueChanged(TreeSelectionEvent e)
Finds the subnode with certain id and name

Methods inherited from class javax.help.plaf.HelpNavigatorUI

getAddAction, getIcon, getImageIcon, merge, remove, setIcon

Field Details

addAction

protected Action addAction

copyAction

protected Action copyAction

currentFindNode

protected DefaultMutableTreeNode currentFindNode

cutAction

protected Action cutAction

favorites

protected JHelpFavoritesNavigator favorites

folderAction

protected Action folderAction

oldText

protected String oldText

pasteAction

protected Action pasteAction

popup

protected JPopupMenu popup

rbc

protected RuleBasedCollator rbc

removeAction

protected Action removeAction

sp

protected JScrollPane sp

topNode

protected FavoritesNode topNode

tree

protected JTree tree

Constructor Details

BasicFavoritesNavigatorUI

public BasicFavoritesNavigatorUI(JHelpFavoritesNavigator b)
Creates BasicFavoritesUI for JHelpFavoritesNavigator

Method Details

createUI

public static ComponentUI createUI(JComponent x)

getAddAction

public Action getAddAction()
Returns the Add action
Overrides:
getAddAction in interface HelpNavigatorUI

getCopyAction

public Action getCopyAction()
Returns the CopyAction Object

getCutAction

public Action getCutAction()
Returns the CutAction object

getFolderAction

public Action getFolderAction()
Returns the FolderAction object

getMaximumSize

public Dimension getMaximumSize(JComponent c)

getMinimumSize

public Dimension getMinimumSize(JComponent c)

getPasteAction

public Action getPasteAction()
Returns the PasteAction object

getPreferredSize

public Dimension getPreferredSize(JComponent c)

getRemoveAction

public Action getRemoveAction()
Returns the RemoveAction object

getSelectedNode

public FavoritesNode getSelectedNode()
Returns the selected node

helpSetAdded

public void helpSetAdded(HelpSetEvent ev)
Specified by:
helpSetAdded in interface HelpSetListener

helpSetRemoved

public void helpSetRemoved(HelpSetEvent ev)
Specified by:
helpSetRemoved in interface HelpSetListener

idChanged

public void idChanged(HelpModelEvent e)
Processes and idChanged event. In this navigator works with url too.
Specified by:
idChanged in interface HelpModelListener
Parameters:
e - The HelpModelEvent

installUI

public void installUI(JComponent c)

propertyChange

public void propertyChange(PropertyChangeEvent event)

saveFavorites

public void saveFavorites()
Saves favorites to the file

setCellRenderer

protected void setCellRenderer(NavigatorView view,
                               JTree tree)
Sets the desired cell renderer on this tree. This is exposed for redefinition by subclases.

treeNodesChanged

public void treeNodesChanged(javax.swing.event.TreeModelEvent treeModelEvent)

treeNodesInserted

public void treeNodesInserted(javax.swing.event.TreeModelEvent treeModelEvent)

treeNodesRemoved

public void treeNodesRemoved(javax.swing.event.TreeModelEvent treeModelEvent)

treeStructureChanged

public void treeStructureChanged(javax.swing.event.TreeModelEvent treeModelEvent)

uninstallUI

public void uninstallUI(JComponent c)

valueChanged

public void valueChanged(TreeSelectionEvent e)
Finds the subnode with certain id and name