Apigen

edu.uci.isr.apigen.gui
Class ApiGenGui

java.lang.Object
  extended byedu.uci.isr.apigen.gui.ApiGenGui
All Implemented Interfaces:
ActionListener, EventListener

public class ApiGenGui
extends Object
implements ActionListener


Field Summary
protected static String BACK_BUTTON_LABEL
           
protected  JButton backButton
           
protected  String currentState
           
protected  DirectoryPickerWidget directoryPickerWidget
           
protected static String DONE_BUTTON_LABEL
           
protected static String EXIT_BUTTON_LABEL
           
protected  JButton exitButton
           
protected  JButton loadSettingsButton
           
protected  JFrame mainDialog
           
protected  JPanel mainPanel
           
protected  CardLayout mainPanelLayout
           
protected static String NEXT_BUTTON_LABEL
           
protected  JButton nextButton
           
protected  JProgressBar progressBar
           
protected  JTextField progressLabel
           
protected  JButton saveSettingsButton
           
protected  SchemaLocationMappingWidget schemaLocationMappingWidget
           
protected  SchemaPickerWidget schemaPickerWidget
           
 
Constructor Summary
ApiGenGui()
           
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
 void back()
           
 void generateCode()
           
static String getBaseTitle()
           
protected  Component getButtonPanel()
           
protected  Component getDirectoryPickerPanel()
           
protected  Component getFinalPanel()
           
 ImageIcon getImageIcon(String resourceName)
           
protected  Component getSchemaLocationMappingPanel()
           
protected  Component getSchemaPickerPanel()
           
protected  Component getStartPanel()
           
 void loadSettings(File f)
           
static void main(String[] args)
           
 void next()
           
 void saveSettings(File f)
           
protected  void setState(String state)
           
protected  void setupButtonPanel(String state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainDialog

protected JFrame mainDialog

mainPanel

protected JPanel mainPanel

mainPanelLayout

protected CardLayout mainPanelLayout

loadSettingsButton

protected JButton loadSettingsButton

saveSettingsButton

protected JButton saveSettingsButton

backButton

protected JButton backButton

nextButton

protected JButton nextButton

exitButton

protected JButton exitButton

progressLabel

protected JTextField progressLabel

progressBar

protected JProgressBar progressBar

currentState

protected String currentState

BACK_BUTTON_LABEL

protected static final String BACK_BUTTON_LABEL
See Also:
Constant Field Values

NEXT_BUTTON_LABEL

protected static final String NEXT_BUTTON_LABEL
See Also:
Constant Field Values

DONE_BUTTON_LABEL

protected static final String DONE_BUTTON_LABEL
See Also:
Constant Field Values

EXIT_BUTTON_LABEL

protected static final String EXIT_BUTTON_LABEL
See Also:
Constant Field Values

schemaLocationMappingWidget

protected SchemaLocationMappingWidget schemaLocationMappingWidget

schemaPickerWidget

protected SchemaPickerWidget schemaPickerWidget

directoryPickerWidget

protected DirectoryPickerWidget directoryPickerWidget
Constructor Detail

ApiGenGui

public ApiGenGui()
Method Detail

main

public static void main(String[] args)

setState

protected void setState(String state)

getStartPanel

protected Component getStartPanel()

getSchemaLocationMappingPanel

protected Component getSchemaLocationMappingPanel()

getSchemaPickerPanel

protected Component getSchemaPickerPanel()

getDirectoryPickerPanel

protected Component getDirectoryPickerPanel()

getFinalPanel

protected Component getFinalPanel()

getButtonPanel

protected Component getButtonPanel()

setupButtonPanel

protected void setupButtonPanel(String state)

getImageIcon

public ImageIcon getImageIcon(String resourceName)

getBaseTitle

public static String getBaseTitle()

back

public void back()

next

public void next()

saveSettings

public void saveSettings(File f)
                  throws IOException
Throws:
IOException

loadSettings

public void loadSettings(File f)
                  throws Exception
Throws:
Exception

generateCode

public void generateCode()

actionPerformed

public void actionPerformed(ActionEvent evt)
Specified by:
actionPerformed in interface ActionListener

Apigen