Package javax.help.plaf.basic
Class BasicFavoritesNavigatorUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.help.plaf.HelpNavigatorUI
javax.help.plaf.basic.BasicFavoritesNavigatorUI
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,EventListener
,HelpModelListener
,HelpSetListener
,TreeModelListener
,TreeSelectionListener
public class BasicFavoritesNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, TreeSelectionListener, HelpSetListener, PropertyChangeListener, TreeModelListener, Serializable
The default UI for JHelpNavigator of type Favorites
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
AddAction class.class
CopyAction class.class
CutAction class.class
Class for JTree supported Dinvalid input: '&D' features.class
FolderAction class.class
PasteAction class.class
PopupListener classclass
RemoveAction class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Action
protected Action
protected DefaultMutableTreeNode
protected Action
protected JHelpFavoritesNavigator
protected Action
protected String
protected Action
protected JPopupMenu
protected RuleBasedCollator
protected Action
protected JScrollPane
protected FavoritesNode
protected JTree
-
Constructor Summary
ConstructorsConstructorDescriptionCreates BasicFavoritesUI for JHelpFavoritesNavigator -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
Returns the Add actionReturns the CopyAction ObjectReturns the CutAction objectReturns the FolderAction objectReturns the PasteAction objectReturns the RemoveAction objectReturns the selected nodevoid
Invoked when a new HelpSet is added.void
Invoked when a new HelpSet is removed.void
Processes and idChanged event.void
void
void
Saves favorites to the fileprotected void
setCellRenderer
(NavigatorView view, JTree tree) Sets the desired cell renderer on this tree.void
treeNodesChanged
(TreeModelEvent treeModelEvent) void
treeNodesInserted
(TreeModelEvent treeModelEvent) void
treeNodesRemoved
(TreeModelEvent treeModelEvent) void
treeStructureChanged
(TreeModelEvent treeModelEvent) void
void
Finds the subnode with certain id and nameMethods inherited from class javax.help.plaf.HelpNavigatorUI
getIcon, getImageIcon, merge, remove, setIcon
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
Field Details
-
favorites
-
sp
-
topNode
-
tree
-
rbc
-
oldText
-
currentFindNode
-
addAction
-
removeAction
-
cutAction
-
pasteAction
-
copyAction
-
folderAction
-
popup
-
-
Constructor Details
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classComponentUI
-
idChanged
Processes and idChanged event. In this navigator works with url too.- Specified by:
idChanged
in interfaceHelpModelListener
- Parameters:
e
- The HelpModelEvent
-
valueChanged
Finds the subnode with certain id and name- Specified by:
valueChanged
in interfaceTreeSelectionListener
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
helpSetAdded
Description copied from interface:HelpSetListener
Invoked when a new HelpSet is added.- Specified by:
helpSetAdded
in interfaceHelpSetListener
- Parameters:
ev
- The event
-
helpSetRemoved
Description copied from interface:HelpSetListener
Invoked when a new HelpSet is removed.- Specified by:
helpSetRemoved
in interfaceHelpSetListener
- Parameters:
ev
- The event
-
saveFavorites
public void saveFavorites()Saves favorites to the file -
treeStructureChanged
- Specified by:
treeStructureChanged
in interfaceTreeModelListener
-
treeNodesInserted
- Specified by:
treeNodesInserted
in interfaceTreeModelListener
-
treeNodesRemoved
- Specified by:
treeNodesRemoved
in interfaceTreeModelListener
-
treeNodesChanged
- Specified by:
treeNodesChanged
in interfaceTreeModelListener
-
getSelectedNode
Returns the selected node -
getAddAction
Returns the Add action- Overrides:
getAddAction
in classHelpNavigatorUI
-
getRemoveAction
Returns the RemoveAction object -
getFolderAction
Returns the FolderAction object -
getCutAction
Returns the CutAction object -
getPasteAction
Returns the PasteAction object -
getCopyAction
Returns the CopyAction Object
-