talx x1.0.5

talx.model
Class Settings

java.lang.Object
  extended bytalx.util.ShallowSettings
      extended bytalx.model.Settings
All Implemented Interfaces:
java.io.Serializable

public class Settings
extends ShallowSettings

This class reads in a given XML file and parses it for a variety of values which it will store in its private variables. It then provides methods for retrieving the values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class talx.util.ShallowSettings
ShallowSettings.MutableSettings, ShallowSettings.ShallowPerson
 
Field Summary
 
Fields inherited from class talx.util.ShallowSettings
DRAG_DOWN, DRAG_SELECT, DRAG_UP
 
Constructor Summary
Settings(java.lang.String filename, java.lang.String fileRoot)
          This constructor builds up an XML Document of Nodes from the given XML file and then calls the method parse to retrieve the values of certain nodes.
 
Method Summary
 java.lang.String getFeatureDirectory()
          Returns the subdirectory where feature-specific information should be stored.
 Person[] getPersons()
          Returns the list of email buddies.
 java.lang.String getPictureDirectory()
          Returns the subdirectory with the buddy pictures, and other user-specific pictures.
 Player[] getPlayers()
          Returns the list of game buddies.
 java.lang.String getUserDirectory()
          Returns the subdirectory with the buddy pictures, and other user-specific pictures.
 
Methods inherited from class talx.util.ShallowSettings
getAddress, getAnsweredCaption, getArchiveCaption, getArchiveSubject, getAutoDelete, getBlankText, getBuddyHeight, getBuddyWidth, getBuilder, getButtonColor, getCaretBlink, getCaretColor, getCaretWidth, getComposerClass, getComposerClassParameter, getComposerColor, getComposerIBar, getDateFormat, getDecorated, getDefaultCaption, getDefaultSubject, getDefaultText, getDialogsClassParameter, getDragMode, getEmptyArchiveText, getEmptyCaption, getFeatures, getFont, getFontSize, getInboxClass, getInboxClassParameter, getInboxColor, getInboxHighlightColor, getInboxOnRight, getInboxWidth, getInFilters, getInitialHandlerClass, getInitiateCaption, getLoggerClass, getLoggerParam, getOutFilters, getPeopleData, getPercentOfScreen, getPlayerData, getReadCaption, getReaderClass, getReaderClassParameter, getReaderColor, getRealname, getResponseCaption, getScrollDownText, getScrollSpeed, getScrollUpText, getSubjectField, getTALLoggerClass, getText, getUnreadCaption, getUsername, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Settings

public Settings(java.lang.String filename,
                java.lang.String fileRoot)
This constructor builds up an XML Document of Nodes from the given XML file and then calls the method parse to retrieve the values of certain nodes.

Parameters:
filename - The filename of the XML input file.
fileRoot - The location of the user's directory.
Method Detail

getUserDirectory

public java.lang.String getUserDirectory()
Returns the subdirectory with the buddy pictures, and other user-specific pictures.


getPictureDirectory

public java.lang.String getPictureDirectory()
Returns the subdirectory with the buddy pictures, and other user-specific pictures.


getFeatureDirectory

public java.lang.String getFeatureDirectory()
Returns the subdirectory where feature-specific information should be stored.


getPersons

public Person[] getPersons()
Returns the list of email buddies.


getPlayers

public Player[] getPlayers()
Returns the list of game buddies.


talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.