i18nplugin
Class TranslationNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
i18nplugin.PathNode
i18nplugin.TranslationNode
- All Implemented Interfaces:
- FilterNodeIf, LanguageNodeIf, Serializable, Cloneable, MutableTreeNode, TreeNode
public class TranslationNode
- extends PathNode
This Node creates a Tree of all Properties in a certain Jar-File
- Author:
- bodum
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
TranslationNode
public TranslationNode(String string,
File file)
- Create Tree
- Parameters:
string - Name of Tree-Nodefile - Jar-File with Properties
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf in interface TreeNode- Overrides:
isLeaf in class PathNode
getMatchCount
public int getMatchCount()
- Description copied from interface:
FilterNodeIf
- Returns the total number of matches in all sub nodes.
- Specified by:
getMatchCount in interface FilterNodeIf- Overrides:
getMatchCount in class PathNode
- Returns:
matches
public boolean matches()
- Description copied from interface:
FilterNodeIf
- Returns true if the node (or any sub node) matches the filter.
- Specified by:
matches in interface FilterNodeIf- Overrides:
matches in class PathNode
- Returns:
setFilter
public void setFilter(Locale locale,
String filter)
- Description copied from interface:
FilterNodeIf
- Sets a new filter.
- Specified by:
setFilter in interface FilterNodeIf- Overrides:
setFilter in class PathNode
- Parameters:
locale - - the local to check.filter - - the filter value to check for.
getChildCount
public int getChildCount()
- Specified by:
getChildCount in interface TreeNode- Overrides:
getChildCount in class PathNode
getChildAt
public TreeNode getChildAt(int index)
- Specified by:
getChildAt in interface TreeNode- Overrides:
getChildAt in class PathNode
getIndex
public int getIndex(TreeNode child)
- Specified by:
getIndex in interface TreeNode- Overrides:
getIndex in class PathNode
getChildAfter
public TreeNode getChildAfter(TreeNode child)
- Overrides:
getChildAfter in class PathNode
getChildBefore
public TreeNode getChildBefore(TreeNode child)
- Overrides:
getChildBefore in class PathNode
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)