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 TypeClassDescriptionclassAddAction class.classCopyAction class.classCutAction class.classClass for JTree supported D&D features.classFolderAction class.classPasteAction class.classPopupListener classclassRemoveAction class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Actionprotected Actionprotected DefaultMutableTreeNodeprotected Actionprotected JHelpFavoritesNavigatorprotected Actionprotected Stringprotected Actionprotected JPopupMenuprotected RuleBasedCollatorprotected Actionprotected JScrollPaneprotected FavoritesNodeprotected JTree -
Constructor Summary
ConstructorsConstructorDescriptionCreates BasicFavoritesUI for JHelpFavoritesNavigator -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIReturns the Add actionReturns the CopyAction ObjectReturns the CutAction objectReturns the FolderAction objectReturns the PasteAction objectReturns the RemoveAction objectReturns the selected nodevoidInvoked when a new HelpSet is added.voidInvoked when a new HelpSet is removed.voidProcesses and idChanged event.voidvoidvoidSaves favorites to the fileprotected voidsetCellRenderer(NavigatorView view, JTree tree) Sets the desired cell renderer on this tree.voidtreeNodesChanged(TreeModelEvent treeModelEvent) voidtreeNodesInserted(TreeModelEvent treeModelEvent) voidtreeNodesRemoved(TreeModelEvent treeModelEvent) voidtreeStructureChanged(TreeModelEvent treeModelEvent) voidvoidFinds the subnode with certain id and nameMethods inherited from class javax.help.plaf.HelpNavigatorUI
getIcon, getImageIcon, merge, remove, setIconMethods 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:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSizein classComponentUI
-
getMinimumSize
- Overrides:
getMinimumSizein classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSizein classComponentUI
-
idChanged
Processes and idChanged event. In this navigator works with url too.- Specified by:
idChangedin interfaceHelpModelListener- Parameters:
e- The HelpModelEvent
-
valueChanged
Finds the subnode with certain id and name- Specified by:
valueChangedin interfaceTreeSelectionListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
helpSetAdded
Description copied from interface:HelpSetListenerInvoked when a new HelpSet is added.- Specified by:
helpSetAddedin interfaceHelpSetListener- Parameters:
ev- The event
-
helpSetRemoved
Description copied from interface:HelpSetListenerInvoked when a new HelpSet is removed.- Specified by:
helpSetRemovedin interfaceHelpSetListener- Parameters:
ev- The event
-
saveFavorites
public void saveFavorites()Saves favorites to the file -
treeStructureChanged
- Specified by:
treeStructureChangedin interfaceTreeModelListener
-
treeNodesInserted
- Specified by:
treeNodesInsertedin interfaceTreeModelListener
-
treeNodesRemoved
- Specified by:
treeNodesRemovedin interfaceTreeModelListener
-
treeNodesChanged
- Specified by:
treeNodesChangedin interfaceTreeModelListener
-
getSelectedNode
Returns the selected node -
getAddAction
Returns the Add action- Overrides:
getAddActionin 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
-