public class BasicFavoritesNavigatorUI extends HelpNavigatorUI implements HelpModelListener, javax.swing.event.TreeSelectionListener, HelpSetListener, java.beans.PropertyChangeListener, javax.swing.event.TreeModelListener, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Action |
addAction |
protected javax.swing.Action |
copyAction |
protected javax.swing.tree.DefaultMutableTreeNode |
currentFindNode |
protected javax.swing.Action |
cutAction |
protected JHelpFavoritesNavigator |
favorites |
protected javax.swing.Action |
folderAction |
protected java.lang.String |
oldText |
protected javax.swing.Action |
pasteAction |
protected javax.swing.JPopupMenu |
popup |
protected java.text.RuleBasedCollator |
rbc |
protected javax.swing.Action |
removeAction |
protected javax.swing.JScrollPane |
sp |
protected FavoritesNode |
topNode |
protected javax.swing.JTree |
tree |
Constructor and Description |
---|
BasicFavoritesNavigatorUI(JHelpFavoritesNavigator b)
Creates BasicFavoritesUI for JHelpFavoritesNavigator
|
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x) |
javax.swing.Action |
getAddAction()
Returns the Add action
|
javax.swing.Action |
getCopyAction()
Returns the CopyAction Object
|
javax.swing.Action |
getCutAction()
Returns the CutAction object
|
javax.swing.Action |
getFolderAction()
Returns the FolderAction object
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
javax.swing.Action |
getPasteAction()
Returns the PasteAction object
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
javax.swing.Action |
getRemoveAction()
Returns the RemoveAction object
|
FavoritesNode |
getSelectedNode()
Returns the selected node
|
void |
helpSetAdded(HelpSetEvent ev)
Invoked when a new HelpSet is added.
|
void |
helpSetRemoved(HelpSetEvent ev)
Invoked when a new HelpSet is removed.
|
void |
idChanged(HelpModelEvent e)
Processes and idChanged event.
|
void |
installUI(javax.swing.JComponent c) |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
saveFavorites()
Saves favorites to the file
|
protected void |
setCellRenderer(NavigatorView view,
javax.swing.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(javax.swing.JComponent c) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
Finds the subnode with certain id and name
|
getIcon, getImageIcon, merge, remove, setIcon
protected JHelpFavoritesNavigator favorites
protected javax.swing.JScrollPane sp
protected FavoritesNode topNode
protected javax.swing.JTree tree
protected java.text.RuleBasedCollator rbc
protected java.lang.String oldText
protected javax.swing.tree.DefaultMutableTreeNode currentFindNode
protected javax.swing.Action addAction
protected javax.swing.Action removeAction
protected javax.swing.Action cutAction
protected javax.swing.Action pasteAction
protected javax.swing.Action copyAction
protected javax.swing.Action folderAction
protected javax.swing.JPopupMenu popup
public BasicFavoritesNavigatorUI(JHelpFavoritesNavigator b)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
protected void setCellRenderer(NavigatorView view, javax.swing.JTree tree)
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
public void idChanged(HelpModelEvent e)
idChanged
in interface HelpModelListener
e
- The HelpModelEventpublic void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public void helpSetAdded(HelpSetEvent ev)
HelpSetListener
helpSetAdded
in interface HelpSetListener
ev
- The eventpublic void helpSetRemoved(HelpSetEvent ev)
HelpSetListener
helpSetRemoved
in interface HelpSetListener
ev
- The eventpublic void saveFavorites()
public void treeStructureChanged(javax.swing.event.TreeModelEvent treeModelEvent)
treeStructureChanged
in interface javax.swing.event.TreeModelListener
public void treeNodesInserted(javax.swing.event.TreeModelEvent treeModelEvent)
treeNodesInserted
in interface javax.swing.event.TreeModelListener
public void treeNodesRemoved(javax.swing.event.TreeModelEvent treeModelEvent)
treeNodesRemoved
in interface javax.swing.event.TreeModelListener
public void treeNodesChanged(javax.swing.event.TreeModelEvent treeModelEvent)
treeNodesChanged
in interface javax.swing.event.TreeModelListener
public FavoritesNode getSelectedNode()
public javax.swing.Action getAddAction()
getAddAction
in class HelpNavigatorUI
public javax.swing.Action getRemoveAction()
public javax.swing.Action getFolderAction()
public javax.swing.Action getCutAction()
public javax.swing.Action getPasteAction()
public javax.swing.Action getCopyAction()