|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.util.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. This class is shallow in the sense that it only contains getters and setters for the information contained in a settings file. It can be viewed as the API for the file itself. A model.Settings object, on the other hand, has references to the actual People objects in the model, and the location of the application in the system's file space.
| Nested Class Summary | |
static class |
ShallowSettings.MutableSettings
This extension to settings allows the values to be changed and the file written out. |
static class |
ShallowSettings.ShallowPerson
|
| Field Summary | |
static int |
DRAG_DOWN
The drag mode constant meaning dragging is not allowed and the cursor will be placed according to the location of the mouse when the button is depressed. |
static int |
DRAG_SELECT
The drag mode constant meaning selection dragging is allowed. |
static int |
DRAG_UP
The drag mode constant meaning dragging is not allowed and the cursor will be placed according to the location of the mouse when the button is released. |
| Constructor Summary | |
ShallowSettings(java.io.InputStream source)
Constructs a ShallowSettings from the given inputStream. |
|
ShallowSettings(java.lang.String filename)
Constructs a ShallowSettings from the file at the given location. |
|
| Method Summary | |
java.lang.String |
getAddress()
Returns the user's return address for outgoing email. |
java.lang.String |
getAnsweredCaption()
Returns the caption text indicating the displayed message has been answered. |
java.lang.String |
getArchiveCaption()
Returns the caption text indicating the message history is being displayed. |
java.lang.String |
getArchiveSubject()
Returns the subject text for message histories. |
boolean |
getAutoDelete()
Returns true if messages should be automatically deleted when they are answered. |
java.lang.String |
getBlankText()
Returns the message text for incoming messages with no text. |
double |
getBuddyHeight()
Returns the height of the buddy pictures in percent of main window height. |
double |
getBuddyWidth()
Returns the width of the buddy pictures in percent of main window width. |
protected javax.xml.parsers.DocumentBuilder |
getBuilder()
This obtains a document builder suitable for settings. |
java.awt.Color |
getButtonColor()
Returns the color to paint all buttons except the mailboxes. |
int |
getCaretBlink()
Returns number of milliseconds between showing and hiding the composer caret rectangle. |
java.awt.Color |
getCaretColor()
Returns the color of the composer caret rectangle. |
int |
getCaretWidth()
Returns the number of pixels in the width of the composer caret rectangle. |
java.lang.String |
getComposerClass()
Returns the class name of the composer class. |
java.lang.String |
getComposerClassParameter()
Returns the string parameter (if any) for the composer constructor. |
java.awt.Color |
getComposerColor()
Returns the background color for the composer's text. |
boolean |
getComposerIBar()
Returns true if the composer cursor should be an IBar. |
java.lang.String |
getDateFormat()
Returns format string to use for the caption date information. |
boolean |
getDecorated()
Returns true if the window should be framed with icons to minimize, maximise, etc. |
java.lang.String |
getDefaultCaption()
Returns the caption text indicating the displayed was generated by the system. |
java.lang.String |
getDefaultSubject()
Returns the subject text for system-generated messages. |
java.lang.String |
getDefaultText()
Returns the message text for system-generated messages. |
java.lang.String |
getDialogsClassParameter()
Returns the string parameter (if any) for the dialog manager constructor. |
int |
getDragMode()
Returns the constant indicating the behavior to exhibit when the mouse is dragged through the message text. |
java.lang.String |
getEmptyArchiveText()
Returns the message text for message histories with no messages. |
java.lang.String |
getEmptyCaption()
Returns the caption text indicating no message is being displayed. |
FeatureDescriptor[] |
getFeatures()
Returns the list of feature classes and parameters. |
java.lang.String |
getFont()
Returns the font face to use for all components. |
int |
getFontSize()
Returns the font size |
java.lang.String |
getInboxClass()
Returns the class name of the inbox class. |
java.lang.String |
getInboxClassParameter()
Returns the string parameter (if any) for the inbox constructor. |
java.awt.Color |
getInboxColor()
Returns the color to be used for unselected mailboxes. |
java.awt.Color |
getInboxHighlightColor()
Returns the color to be used for selected mailboxes. |
boolean |
getInboxOnRight()
Returns true if the inbox should be displayed to the right of the reader and composer. |
double |
getInboxWidth()
Returns width of the inbox in percent of main window width. |
FeatureDescriptor[] |
getInFilters()
Returns the list of incoming filter classes and parameters. |
java.lang.String |
getInitialHandlerClass()
Returns the class name of the handler that represents a controller "start" state. |
java.lang.String |
getInitiateCaption()
Returns the text color for the caption indicating the composed message is not a response to a buddy message. |
java.lang.String |
getLoggerClass()
Returns the class name of the logger to give to LoggerProxy. |
java.lang.String |
getLoggerParam()
Returns the class name of the handler that represents a controller "start" state. |
FeatureDescriptor[] |
getOutFilters()
Returns the list of outgoing filter classes and parameters. |
ShallowSettings.ShallowPerson[] |
getPeopleData()
Returns the list of email buddies. |
double |
getPercentOfScreen()
Returns percent of the physical screen that the main window should occupy |
ShallowSettings.ShallowPerson[] |
getPlayerData()
Returns the list of game buddies. |
java.lang.String |
getReadCaption()
Returns the caption text indicating the displayed message has been read. |
java.lang.String |
getReaderClass()
Returns the class name of the reader class. |
java.lang.String |
getReaderClassParameter()
Returns the string parameter (if any) for the reader constructor. |
java.awt.Color |
getReaderColor()
Returns the background color for the reader's text. |
java.lang.String |
getRealname()
Returns "human readable" name for the user on outgoing email. |
java.lang.String |
getResponseCaption()
Returns the caption text colorindicating the composed message is a response to a buddy message. |
java.lang.String |
getScrollDownText()
Returns text to place in the lower scroll button. |
int |
getScrollSpeed()
Returns number of pixels to scroll at each scroll interval while a scroll button is held down. |
java.lang.String |
getScrollUpText()
Returns text to place in the upper scroll button. |
boolean |
getSubjectField()
Returns true if the composer should contain a control for editing the message subject. |
java.lang.String |
getTALLoggerClass()
Returns the subclass of TALLogger to use for controller logging. |
static java.lang.String |
getText(org.w3c.dom.Element e)
This method takes in an Element and returns the concatenation of all of its text subnodes. |
java.lang.String |
getUnreadCaption()
Returns the caption text indicating the displayed message has been neither read nor answered. |
java.lang.String |
getUsername()
Returns user's name on the local TAL store. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DRAG_SELECT
public static final int DRAG_UP
public static final int DRAG_DOWN
| Constructor Detail |
public ShallowSettings(java.lang.String filename)
public ShallowSettings(java.io.InputStream source)
| Method Detail |
public static java.lang.String getText(org.w3c.dom.Element e)
e - The Element to analize
protected javax.xml.parsers.DocumentBuilder getBuilder()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic java.lang.String toString()
public java.lang.String getUsername()
public java.lang.String getAddress()
public java.lang.String getRealname()
public boolean getAutoDelete()
public ShallowSettings.ShallowPerson[] getPeopleData()
public ShallowSettings.ShallowPerson[] getPlayerData()
public FeatureDescriptor[] getInFilters()
public FeatureDescriptor[] getOutFilters()
public FeatureDescriptor[] getFeatures()
public java.lang.String getDialogsClassParameter()
public java.lang.String getFont()
public int getFontSize()
public boolean getDecorated()
public java.awt.Color getButtonColor()
public java.lang.String getScrollUpText()
public java.lang.String getScrollDownText()
public int getScrollSpeed()
public double getPercentOfScreen()
public java.lang.String getInboxClass()
public java.lang.String getInboxClassParameter()
public double getInboxWidth()
public boolean getInboxOnRight()
public java.awt.Color getInboxColor()
public java.awt.Color getInboxHighlightColor()
public double getBuddyWidth()
public double getBuddyHeight()
public java.lang.String getReaderClass()
public java.lang.String getReaderClassParameter()
public java.awt.Color getReaderColor()
public java.lang.String getDateFormat()
public java.lang.String getEmptyCaption()
public java.lang.String getAnsweredCaption()
public java.lang.String getReadCaption()
public java.lang.String getUnreadCaption()
public java.lang.String getDefaultSubject()
public java.lang.String getDefaultCaption()
public java.lang.String getDefaultText()
public java.lang.String getArchiveSubject()
public java.lang.String getArchiveCaption()
public java.lang.String getEmptyArchiveText()
public java.lang.String getBlankText()
public java.lang.String getComposerClass()
public java.lang.String getComposerClassParameter()
public boolean getComposerIBar()
public boolean getSubjectField()
public java.awt.Color getComposerColor()
public java.awt.Color getCaretColor()
public int getCaretWidth()
public int getCaretBlink()
public int getDragMode()
public java.lang.String getInitiateCaption()
public java.lang.String getResponseCaption()
public java.lang.String getInitialHandlerClass()
public java.lang.String getTALLoggerClass()
public java.lang.String getLoggerClass()
public java.lang.String getLoggerParam()
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.