TV-Browser 2.7.5 API

i18nplugin
Class PropertiesEntryNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by i18nplugin.PropertiesEntryNode
All Implemented Interfaces:
FilterNodeIf, LanguageNodeIf, Serializable, Cloneable, MutableTreeNode, TreeNode

public class PropertiesEntryNode
extends DefaultMutableTreeNode
implements LanguageNodeIf, FilterNodeIf

Entry for a Property

Author:
bodum
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Fields inherited from interface i18nplugin.LanguageNodeIf
STATE_MISSING_TRANSLATION, STATE_NON_WELLFORMED, STATE_NON_WELLFORMED_ARG_COUNT, STATE_NON_WELLFORMED_ARG_FORMAT, STATE_NON_WELLFORMED_PUNCTUATION_END, STATE_OK
 
Constructor Summary
PropertiesEntryNode(String name)
           
 
Method Summary
 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.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesEntryNode

public PropertiesEntryNode(String name)
Parameters:
name - Name of this Entry
Method Detail

getPropertyName

public String getPropertyName()
Returns:
Name of this Entry

translationStateFor

public int translationStateFor(Locale locale)
Description copied from interface: LanguageNodeIf
This method returns the translation state, if all translations are available for a certain locale. The implementation has to go thru all child-nodes.

Specified by:
translationStateFor in interface LanguageNodeIf
Parameters:
locale - Locale
Returns:
combined translation state for all sub nodes

getTranslationState

protected int getTranslationState(String original,
                                  String translated)

save

public void save()
Description copied from interface: LanguageNodeIf
Saves all changes to the User-Directory

Specified by:
save in interface LanguageNodeIf

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeNode
Overrides:
isLeaf in class DefaultMutableTreeNode

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
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
Returns:

setFilter

public void setFilter(Locale locale,
                      String filter)
Description copied from interface: FilterNodeIf
Sets a new filter.

Specified by:
setFilter in interface FilterNodeIf
Parameters:
locale - - the local to check.
filter - - the filter value to check for.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)