|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webstersmalley.picweb.offline.config.ConfigurationModel
public final class ConfigurationModel
Holds the model for the configuration. This is expected to be instantiated with the default constructor and the fields set by either the configuration GUI or a saved configuration.
| Field Summary | |
|---|---|
private java.lang.String |
artifactsFolder
Artifacts folder. |
private java.lang.String |
googleAdId
Google Ad ID |
private int |
imageSize
Maximum size of image (height or width). |
private int |
maxRows
Maximum number of rows before a new page of thumbs is created. |
private java.lang.String |
outputFolder
The base output folder (eg /html/picweb-generated). |
private java.lang.String |
rootFolder
The base input folder (eg /pics/holiday). |
private int |
rowSize
Maximum number of images per row in the table of thumbnails |
private java.lang.String |
templateFilename
Name of the template file. |
private int |
thumbSize
Maximum size of thumbnail (height or width). |
private java.lang.String |
title
The title of the webpage (appears as the html title). |
| Constructor Summary | |
|---|---|
ConfigurationModel()
|
|
| Method Summary | |
|---|---|
static ConfigurationModel |
fromXML(java.lang.String filename)
Create a ConfigurationModel object out of an xml filename |
java.lang.String |
getArtifactsFolder()
|
java.lang.String |
getGoogleAdId()
|
int |
getImageSize()
Returns the image size |
int |
getMaxRows()
Returns the maximum number of rows in the table on a given thumbnail page. |
java.lang.String |
getOutputFolder()
Returns the folder in which all output is to be saved. |
java.lang.String |
getRootFolder()
Returns the folder in which the images are to be found. |
int |
getRowSize()
Returns the maximum number of images in a given row in the thumbnails page. |
java.lang.String |
getTemplateFilename()
Returns the filename of the template. |
int |
getThumbSize()
Returns the maximum size of the thumbnails, irrespective of picture orientation. |
java.lang.String |
getTitle()
Returns the title of the generated web site. |
void |
setArtifactsFolder(java.lang.String artifactsFolder)
|
void |
setGoogleAdId(java.lang.String googleAdId)
|
void |
setImageSize(int imageSize)
Sets the maximum size of the image. |
void |
setMaxRows(int maxRows)
Sets the maximum number of rows in the table on a given thumbnail page. |
void |
setOutputFolder(java.lang.String outputFolder)
Sets the folder in which all output is to be saved. |
void |
setRootFolder(java.lang.String rootFolder)
Sets the folder in which the images are to be found. |
void |
setRowSize(int rowSize)
Sets the maximum number of images in a given row in the thumbnails page. |
void |
setTemplateFilename(java.lang.String templateFilename)
Filename of the template file to set. |
void |
setThumbSize(int thumbSize)
Sets the maximum size of the thumbnail. |
void |
setTitle(java.lang.String title)
Sets the title of the generated web site. |
org.w3c.dom.Document |
toXML()
Returns an XML representation of the configuration model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String outputFolder
private java.lang.String rootFolder
private java.lang.String title
private int rowSize
private int maxRows
private int thumbSize
private int imageSize
private java.lang.String templateFilename
private java.lang.String googleAdId
private java.lang.String artifactsFolder
| Constructor Detail |
|---|
public ConfigurationModel()
| Method Detail |
|---|
public int getImageSize()
public void setImageSize(int imageSize)
imageSize - The imageSize to set.public int getMaxRows()
public void setMaxRows(int maxRows)
maxRows - The maxRows to set.public java.lang.String getOutputFolder()
public void setOutputFolder(java.lang.String outputFolder)
outputFolder - The outputFolder to set.public java.lang.String getRootFolder()
public void setRootFolder(java.lang.String rootFolder)
rootFolder - The rootFolder to set.public int getRowSize()
public void setRowSize(int rowSize)
rowSize - The rowSize to set.public int getThumbSize()
public void setThumbSize(int thumbSize)
thumbSize - The thumbSize to set.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - The title to set.public java.lang.String getTemplateFilename()
public void setTemplateFilename(java.lang.String templateFilename)
templateFilename - The templateFilename to set.public java.lang.String getArtifactsFolder()
public void setArtifactsFolder(java.lang.String artifactsFolder)
artifactsFolder - The artifactsFolder to set.public java.lang.String getGoogleAdId()
public void setGoogleAdId(java.lang.String googleAdId)
googleAdId - The googleAdId to set.
public static ConfigurationModel fromXML(java.lang.String filename)
throws java.io.IOException,
org.xml.sax.SAXException
filename - the filename of the XML file to parse
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document toXML()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||