public class PropertiesEntryNode extends DefaultMutableTreeNode implements LanguageNodeIf, FilterNodeIf
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
STATE_MISSING_TRANSLATION, STATE_NON_WELLFORMED, STATE_NON_WELLFORMED_ARG_COUNT, STATE_NON_WELLFORMED_ARG_FORMAT, STATE_NON_WELLFORMED_PUNCTUATION_END, STATE_OK
Constructor and Description |
---|
PropertiesEntryNode(String name) |
Modifier and Type | Method and Description |
---|---|
int |
getMatchCount()
Returns the total number of matches in all sub nodes.
|
String |
getPropertyName() |
protected int |
getTranslationState(String original,
String translated) |
boolean |
isLeaf() |
boolean |
matches()
Returns true if the node (or any sub node) matches the filter.
|
void |
save()
Saves all changes to the User-Directory
|
void |
setFilter(Locale locale,
String filter)
Sets a new filter.
|
int |
translationStateFor(Locale locale)
This method returns the translation state, if all translations are available for a certain locale.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
public PropertiesEntryNode(String name)
name
- Name of this Entrypublic String getPropertyName()
public int translationStateFor(Locale locale)
LanguageNodeIf
translationStateFor
in interface LanguageNodeIf
locale
- Localepublic void save()
LanguageNodeIf
save
in interface LanguageNodeIf
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
in class DefaultMutableTreeNode
public int getMatchCount()
FilterNodeIf
getMatchCount
in interface FilterNodeIf
public boolean matches()
FilterNodeIf
matches
in interface FilterNodeIf
public void setFilter(Locale locale, String filter)
FilterNodeIf
setFilter
in interface FilterNodeIf
locale
- - the local to check.filter
- - the filter value to check for.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)