Package generic.theme
Class ThemePropertyFileReader
java.lang.Object
generic.theme.AbstractThemeReader
generic.theme.ThemePropertyFileReader
Reads the values for a single theme.properities file
-
Nested Class Summary
Nested classes/interfaces inherited from class generic.theme.AbstractThemeReader
AbstractThemeReader.Section
-
Field Summary
Fields inherited from class generic.theme.AbstractThemeReader
source
-
Constructor Summary
ModifierConstructorDescriptionConstructor for when the the theme.properties file is aResourceFile
protected
ThemePropertyFileReader
(String source, Reader reader) Constructor using a Reader (needed for reading from zip files). -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of dark defaults values.Returns the map of standard defaults values.Returns a map of all the custom (look and feel specific) value mapsprotected void
protected void
protected void
protected void
Methods inherited from class generic.theme.AbstractThemeReader
error, getErrors, outputError, processValues, read
-
Constructor Details
-
ThemePropertyFileReader
Constructor for when the the theme.properties file is aResourceFile
- Parameters:
file
- theResourceFile
esourceFileto read- Throws:
IOException
- if an I/O error occurs reading the file
-
ThemePropertyFileReader
Constructor using a Reader (needed for reading from zip files).- Parameters:
source
- the name or description of the Reader sourcereader
- theReader
to parse as theme data- Throws:
IOException
- if an I/O error occurs while reading from the Reader
-
-
Method Details
-
getDefaultValues
Returns the map of standard defaults values.- Returns:
- the map of standard defaults values.
-
getDarkDefaultValues
Returns the map of dark defaults values.- Returns:
- the map of dark defaults values.
-
getLookAndFeelSections
Returns a map of all the custom (look and feel specific) value maps- Returns:
- a map of all the custom (look and feel specific) value maps
-
processNoSection
- Specified by:
processNoSection
in classAbstractThemeReader
- Throws:
IOException
-
processDefaultSection
- Specified by:
processDefaultSection
in classAbstractThemeReader
- Throws:
IOException
-
processDarkDefaultSection
- Specified by:
processDarkDefaultSection
in classAbstractThemeReader
- Throws:
IOException
-
processCustomSection
- Specified by:
processCustomSection
in classAbstractThemeReader
- Throws:
IOException
-