|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.help.MergeHelpUtilities
Common utilities for merge types
Constructor Summary | |
MergeHelpUtilities()
|
Method Summary | |
static int |
compareNames(javax.swing.tree.DefaultMutableTreeNode master,
javax.swing.tree.DefaultMutableTreeNode slave)
Compares name of nodes |
static javax.swing.tree.DefaultMutableTreeNode |
getChildWithName(javax.swing.tree.DefaultMutableTreeNode parent,
java.lang.String name)
Returns node with given name |
static java.util.Locale |
getLocale(javax.swing.tree.DefaultMutableTreeNode node)
Returns locale of node |
static java.lang.String |
getNodeName(javax.swing.tree.DefaultMutableTreeNode node)
Returns name of node |
static boolean |
haveEqualID(javax.swing.tree.DefaultMutableTreeNode master,
javax.swing.tree.DefaultMutableTreeNode slave)
Method for comparing ID of nodes |
static void |
markNodes(javax.swing.tree.DefaultMutableTreeNode master,
javax.swing.tree.DefaultMutableTreeNode slave)
Marks nodes with the same name but diferent IDs with their HelpSet title |
static void |
mergeNodeChildren(java.lang.String masterMergeType,
javax.swing.tree.DefaultMutableTreeNode node)
Merge a nodes children according the merging rules of the node's merge type |
static void |
mergeNodes(java.lang.String masterMergeType,
javax.swing.tree.DefaultMutableTreeNode masterNode,
javax.swing.tree.DefaultMutableTreeNode slaveNode)
Merge the nodes according the merging rules of the masterNode's merge type |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MergeHelpUtilities()
Method Detail |
public static void mergeNodes(java.lang.String masterMergeType, javax.swing.tree.DefaultMutableTreeNode masterNode, javax.swing.tree.DefaultMutableTreeNode slaveNode)
masterMergeType
- The fallback mergeType if masterNode does not have a mergeTypemasterNode
- The master node to merge intoslaveNode
- A secondary node that will merge into the master nodepublic static void mergeNodeChildren(java.lang.String masterMergeType, javax.swing.tree.DefaultMutableTreeNode node)
masterMergeType
- The fallback mergeType if masterNode does not have a mergeTypenode
- The nodepublic static java.lang.String getNodeName(javax.swing.tree.DefaultMutableTreeNode node)
node
- The node
public static javax.swing.tree.DefaultMutableTreeNode getChildWithName(javax.swing.tree.DefaultMutableTreeNode parent, java.lang.String name)
parent
- The parent nodename
- The name of child
public static java.util.Locale getLocale(javax.swing.tree.DefaultMutableTreeNode node)
node
- The node
public static int compareNames(javax.swing.tree.DefaultMutableTreeNode master, javax.swing.tree.DefaultMutableTreeNode slave)
master
- The master nodeslave
- The slave node
public static boolean haveEqualID(javax.swing.tree.DefaultMutableTreeNode master, javax.swing.tree.DefaultMutableTreeNode slave)
master
- The master nodeslave
- The slave node
public static void markNodes(javax.swing.tree.DefaultMutableTreeNode master, javax.swing.tree.DefaultMutableTreeNode slave)
master
- The master node to markslave
- The slave node to mark
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |