Search in sources :

Example 16 with LoadConfigReport

use of com.glitchcog.fontificator.config.loadreport.LoadConfigReport in project ChatGameFontificator by GlitchCog.

the class FontificatorProperties method loadConfigs.

/**
     * Load properties into specialized config objects. This method returns its own report.
     * 
     * @return success
     */
private LoadConfigReport loadConfigs(boolean loadNonFontConfig) {
    LoadConfigReport report = new LoadConfigReport();
    if (loadNonFontConfig) {
        ircConfig.load(this, report);
        chatConfig.load(this, report);
        messageConfig.load(this, report);
        emojiConfig.load(this, report);
        censorConfig.load(this, report);
    }
    fontConfig.load(this, report);
    colorConfig.load(this, report);
    if (!report.isErrorFree()) {
        ChatWindow.popup.handleProblem(report);
    }
    return report;
}
Also used : LoadConfigReport(com.glitchcog.fontificator.config.loadreport.LoadConfigReport)

Aggregations

LoadConfigReport (com.glitchcog.fontificator.config.loadreport.LoadConfigReport)16 IOException (java.io.IOException)4 LabeledInput (com.glitchcog.fontificator.gui.component.LabeledInput)3 GridBagLayout (java.awt.GridBagLayout)3 ActionEvent (java.awt.event.ActionEvent)3 ActionListener (java.awt.event.ActionListener)3 JButton (javax.swing.JButton)3 JCheckBox (javax.swing.JCheckBox)3 JPanel (javax.swing.JPanel)3 TitledBorder (javax.swing.border.TitledBorder)3 LabeledSlider (com.glitchcog.fontificator.gui.component.LabeledSlider)2 GridBagConstraints (java.awt.GridBagConstraints)2 File (java.io.File)2 FileInputStream (java.io.FileInputStream)2 InputStream (java.io.InputStream)2 ChangeEvent (javax.swing.event.ChangeEvent)2 ChangeListener (javax.swing.event.ChangeListener)2 DocumentEvent (javax.swing.event.DocumentEvent)2 DocumentListener (javax.swing.event.DocumentListener)2 MessageCasing (com.glitchcog.fontificator.config.MessageCasing)1