Class javax.help.plaf.basic.BasicFavoritesNavigatorUI
java.lang.Object
|
+----javax.swing.plaf.ComponentUI
|
+----javax.help.plaf.HelpNavigatorUI
|
+----javax.help.plaf.basic.BasicFavoritesNavigatorUI
- public class BasicFavoritesNavigatorUI
- extends HelpNavigatorUI
- implements HelpModelListener, javax.swing.event.TreeSelectionListener, HelpSetListener, java.beans.PropertyChangeListener, javax.swing.event.TreeModelListener, java.io.Serializable
The default UI for JHelpNavigator of type Favorites
favorites
protected JHelpFavoritesNavigator favorites
sp
protected javax.swing.JScrollPane sp
topNode
protected FavoritesNode topNode
tree
protected javax.swing.JTree tree
rbc
protected java.text.RuleBasedCollator rbc
oldText
protected java.lang.String oldText
currentFindNode
protected javax.swing.tree.DefaultMutableTreeNode currentFindNode
addAction
protected javax.swing.Action addAction
removeAction
protected javax.swing.Action removeAction
cutAction
protected javax.swing.Action cutAction
pasteAction
protected javax.swing.Action pasteAction
copyAction
protected javax.swing.Action copyAction
folderAction
protected javax.swing.Action folderAction
popup
protected javax.swing.JPopupMenu popup
BasicFavoritesNavigatorUI
public BasicFavoritesNavigatorUI(JHelpFavoritesNavigator b)
- Creates BasicFavoritesUI for JHelpFavoritesNavigator
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
- installUI in class javax.swing.plaf.ComponentUI
setCellRenderer
protected void setCellRenderer(NavigatorView view,
javax.swing.JTree tree)
- Sets the desired cell renderer on this tree. This is exposed for redefinition
by subclases.
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
- uninstallUI in class javax.swing.plaf.ComponentUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
- getPreferredSize in class javax.swing.plaf.ComponentUI
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
- getMinimumSize in class javax.swing.plaf.ComponentUI
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
- getMaximumSize in class javax.swing.plaf.ComponentUI
idChanged
public void idChanged(HelpModelEvent e)
- Processes and idChanged event. In this navigator works with url too.
- Implements:
- idChanged in interface HelpModelListener
- Parameters:
e
- The HelpModelEvent
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
- Finds the subnode with certain id and name
- Implements:
- valueChanged in interface javax.swing.event.TreeSelectionListener
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Implements:
- propertyChange in interface java.beans.PropertyChangeListener
helpSetAdded
public void helpSetAdded(HelpSetEvent ev)
- Implements:
- helpSetAdded in interface HelpSetListener
helpSetRemoved
public void helpSetRemoved(HelpSetEvent ev)
- Implements:
- helpSetRemoved in interface HelpSetListener
saveFavorites
public void saveFavorites()
- Saves favorites to the file
treeStructureChanged
public void treeStructureChanged(javax.swing.event.TreeModelEvent treeModelEvent)
- Implements:
- treeStructureChanged in interface javax.swing.event.TreeModelListener
treeNodesInserted
public void treeNodesInserted(javax.swing.event.TreeModelEvent treeModelEvent)
- Implements:
- treeNodesInserted in interface javax.swing.event.TreeModelListener
treeNodesRemoved
public void treeNodesRemoved(javax.swing.event.TreeModelEvent treeModelEvent)
- Implements:
- treeNodesRemoved in interface javax.swing.event.TreeModelListener
treeNodesChanged
public void treeNodesChanged(javax.swing.event.TreeModelEvent treeModelEvent)
- Implements:
- treeNodesChanged in interface javax.swing.event.TreeModelListener
getSelectedNode
public FavoritesNode getSelectedNode()
- Returns the selected node
getAddAction
public javax.swing.Action getAddAction()
- Returns the Add action
- Overrides:
- getAddAction in class HelpNavigatorUI
getRemoveAction
public javax.swing.Action getRemoveAction()
- Returns the RemoveAction object
getFolderAction
public javax.swing.Action getFolderAction()
- Returns the FolderAction object
getCutAction
public javax.swing.Action getCutAction()
- Returns the CutAction object
getPasteAction
public javax.swing.Action getPasteAction()
- Returns the PasteAction object
getCopyAction
public javax.swing.Action getCopyAction()
- Returns the CopyAction Object