public class Settings extends Object
Constructor and Description |
---|
Settings(String settingsFileName)
Creates new Settings importing information from the given file name
|
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Get the value associated to the field name
|
String |
getKey(int location)
Get the field name from that specific location in the array list
|
void |
setBooksFilename(String newBooksFilename)
Change the file name for the Books
|
void |
setTitle(String newTitle)
Change the title of the application
|
void |
setUsersFilename(String newUsersFilename)
Change the file name for the Users
|
int |
size()
Amount of fields in the settings
|
void |
toFile()
Save the settings to the given input file
|
public Settings(String settingsFileName)
settingsFileName
- File name of existing settings storedpublic void toFile()
public int size()
public String getKey(int location)
location
- Location of the field in the array listpublic String get(String key)
key
- Field namepublic void setTitle(String newTitle)
newTitle
- New Titlepublic void setUsersFilename(String newUsersFilename)
newUsersFilename
- New file name for Userspublic void setBooksFilename(String newBooksFilename)
newBooksFilename
- New file name for BooksCopyright © 2017. All rights reserved.