public class PropertiesFile extends Object
| Constructor and Description |
|---|
PropertiesFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecentDocument(String file) |
void |
dispose() |
NodeList |
getChildren(String item) |
String |
getConfigFile() |
Document |
getDoc() |
static int |
getNoRecentDocumentsToDisplay() |
String[] |
getRecentDocuments() |
String |
getStyleAttribute(String styleName,
String attributeKey)
Method to get attribute values from the named style.
|
String |
getValue(String elementName) |
boolean |
isReadOnly() |
boolean |
isStyleLoaded()
Method to check if a style file is being used.
|
void |
loadProperties() |
void |
loadProperties(InputStream is) |
void |
loadProperties(String configFile) |
void |
loadStyle() |
void |
setValue(String elementName,
String newValue) |
void |
writeDoc() |
public boolean isReadOnly()
public void loadProperties()
public void loadStyle()
public String[] getRecentDocuments()
public void addRecentDocument(String file)
public boolean isStyleLoaded()
public String getStyleAttribute(String styleName, String attributeKey)
styleName - The name of the style to look withinattributeKey - The name of the attribute to check for a valuepublic void dispose()
public static int getNoRecentDocumentsToDisplay()
public String getConfigFile()
public void loadProperties(InputStream is)
public void loadProperties(String configFile)
public Document getDoc()
Copyright © 2017. All rights reserved.