bill.apps.wordutil
Class WordUtilProjectConfiguration

java.lang.Object
  |
  +--bill.util.gui.ProjectConfiguration
        |
        +--bill.apps.wordutil.WordUtilProjectConfiguration

public class WordUtilProjectConfiguration
extends ProjectConfiguration

Class responsible for reading and writing the project configuration file. This gives the project some state, so key information is not lost between executions of the project. We are extending the standard project configuration class, so we get all his stuff plus we are adding a section to store character rankings.


Field Summary
static String SECTION_LETTERS
          Top level section within the config document
 
Fields inherited from class bill.util.gui.ProjectConfiguration
_parser, ITEM_HIGHLIGHTING, ITEM_LAST_DIRECTORY, ITEM_LAST_FILE, ITEM_LOOK_FEEL, ITEM_MAX_LAST_FILES, ITEM_TOOL_TIPS, SECTION_PROJECT
 
Constructor Summary
WordUtilProjectConfiguration()
          Default class instance creator.
WordUtilProjectConfiguration(String fileName)
          Default class instance creator.
 
Method Summary
 short[] getDefaultRankings()
          Retrieves the default rankings assigned to the letters.
 short[] getRankings()
          Retrieves the rankings assigned to the letters.
static void main(String[] args)
           
 void setRankings(short[] rankings)
          Sets the letter rankings to the values specified.
 
Methods inherited from class bill.util.gui.ProjectConfiguration
getConfigEntry, getConfigEntryAsBoolean, getConfigEntryAsDouble, getConfigEntryAsFloat, getConfigEntryAsInteger, getConfigEntryAsInteger, getConfigEntryAsLong, getConfigEntryAsLong, getConfigEntryAsShort, getConfigEntryAsShort, getConfiguration, getFileName, getLastDirectory, getLastFiles, getLookFeel, getMaxLastFiles, isHighlighting, isToolTips, save, setConfigEntry, setConfigEntry, setConfigEntry, setConfigEntry, setConfigEntry, setConfigEntry, setConfigEntry, setFileName, setHighlighting, setLastDirectory, setLastFiles, setLookFeel, setMaxLastFiles, setToolTips, updateLastFileList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECTION_LETTERS

public static final String SECTION_LETTERS
Top level section within the config document
Constructor Detail

WordUtilProjectConfiguration

public WordUtilProjectConfiguration()
Default class instance creator. Initializes class instance variables.

WordUtilProjectConfiguration

public WordUtilProjectConfiguration(String fileName)
Default class instance creator. Initializes class instance variables by reading the specified navigation config file.
Parameters:
fileName - Name of the navigation config file to read.
Method Detail

getRankings

public short[] getRankings()
Retrieves the rankings assigned to the letters.
Returns:
The array of letter rankings, where array index 0 is for the letter 'A', 1 is for 'B', etc.
See Also:
bill.apps.wordfind.PlayTab#createNewLetter()

getDefaultRankings

public short[] getDefaultRankings()
Retrieves the default rankings assigned to the letters.
Returns:
The array of default letter rankings, where array index 0 is for the letter 'A', 1 is for 'B', etc.
See Also:
bill.apps.wordfind.PlayTab#createNewLetter()

setRankings

public void setRankings(short[] rankings)
Sets the letter rankings to the values specified.
Parameters:
rankings - New values to set letter rankings to.
See Also:
bill.apps.wordfind.PlayTab#createNewLetter()

main

public static void main(String[] args)