com.webstersmalley.picweb.offline.config
Class ConfigurationFrame

java.lang.Object
  extended by com.webstersmalley.picweb.offline.config.ConfigurationFrame

public class ConfigurationFrame
extends java.lang.Object

GUI Frame holding the configuration options and details. This UI will be generated by an XML file via SwiXML.

Author:
Matthew Smalley
See Also:
ConfigurationModel

Field Summary
 javax.swing.JTextField artifactsFolder
          Artifacts folder
 javax.swing.Action exitAction
          Controls what happens when you select exit through the menu or via the hotkey (ALT-F4).
private  javax.swing.JFrame frame
          The GUI Frame
 javax.swing.JButton goButton
          Go button text field
 javax.swing.JTextField googleAdId
          Google Ad ID text field
 javax.swing.JTextField imageSize
          Image size text field
private static org.apache.commons.logging.Log log
          Logger for the class.
 javax.swing.JTextField maxRows
          Maximum rows text field
 javax.swing.Action openAction
          Controls what happens when you select open through the menu or via the hotkey (CTRL-O).
 javax.swing.JTextField outputFolder
          Output folder text field
 javax.swing.JTextField rootFolder
          Root folder text field
 javax.swing.JTextField rowSize
          Row size text field
 javax.swing.Action saveAction
          Controls what happens when you select save through the menu or via the hotkey (CTRL-S).
 javax.swing.JLabel statusLabel
          Label to display status
 javax.swing.Action submitAction
          Action to be performed when the submit button is clicked.
 javax.swing.JTextField templateFilename
          Template filename text field
 javax.swing.JTextField thumbSize
          Thumb size text field
 javax.swing.JTextField title
          Title text field
 
Constructor Summary
ConfigurationFrame()
          Constructs a configuration frame.
 
Method Summary
private  ConfigurationModel getConfigurationModel()
          Returns a new ConfigurationModel based on the state of the frame.
static void main(java.lang.String[] args)
          Main method for the entire Picweboffline application.
private  void populateFromModel(ConfigurationModel model)
          Populates the text fields from values from the passed in model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Logger for the class.


frame

private javax.swing.JFrame frame
The GUI Frame


statusLabel

public javax.swing.JLabel statusLabel
Label to display status


rootFolder

public javax.swing.JTextField rootFolder
Root folder text field


outputFolder

public javax.swing.JTextField outputFolder
Output folder text field


title

public javax.swing.JTextField title
Title text field


rowSize

public javax.swing.JTextField rowSize
Row size text field


maxRows

public javax.swing.JTextField maxRows
Maximum rows text field


thumbSize

public javax.swing.JTextField thumbSize
Thumb size text field


imageSize

public javax.swing.JTextField imageSize
Image size text field


templateFilename

public javax.swing.JTextField templateFilename
Template filename text field


googleAdId

public javax.swing.JTextField googleAdId
Google Ad ID text field


artifactsFolder

public javax.swing.JTextField artifactsFolder
Artifacts folder


goButton

public javax.swing.JButton goButton
Go button text field


openAction

public javax.swing.Action openAction
Controls what happens when you select open through the menu or via the hotkey (CTRL-O). Brings up a file dialog to open a configuration file


saveAction

public javax.swing.Action saveAction
Controls what happens when you select save through the menu or via the hotkey (CTRL-S). Brings up a file dialog to save the configuration


exitAction

public javax.swing.Action exitAction
Controls what happens when you select exit through the menu or via the hotkey (ALT-F4). Essentially, exits the application


submitAction

public javax.swing.Action submitAction
Action to be performed when the submit button is clicked. This instantiates a ConfigurationModel based on the currently selected configuration. This is then passed to the WebsiteGenerator, which is then finally exceuted.

See Also:
getConfigurationModel()
Constructor Detail

ConfigurationFrame

public ConfigurationFrame()
Constructs a configuration frame. Loads in an xml file based on the classname, and instantiates the GUI using SwiXML.

Method Detail

getConfigurationModel

private ConfigurationModel getConfigurationModel()
Returns a new ConfigurationModel based on the state of the frame.

Returns:
the generated model

populateFromModel

private void populateFromModel(ConfigurationModel model)
Populates the text fields from values from the passed in model

Parameters:
model -

main

public static void main(java.lang.String[] args)
Main method for the entire Picweboffline application.

Parameters:
args - ignored.


Copyright © 2004-2005-2005 Webster Smalley. All Rights Reserved.