SiLeBAT/FSK-Lab

View on GitHub
de.bund.bfr.knime.pmm.bfrdbiface.lib/src/de/bund/bfr/knime/pmm/ui/handlers/SettingsDialog.jfd

Summary

Maintainability
Test Coverage
JFDML JFormDesigner: "5.2.0.0.109" Java: "1.7.0_07" encoding: "UTF-8"

new FormModel {
    contentType: "form/swing"
    root: new FormRoot {
        add( new FormWindow( "javax.swing.JDialog", new FormLayoutManager( class java.awt.BorderLayout ) ) {
            name: "this"
            "title": "Settings"
            "alwaysOnTop": true
            add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
                name: "dialogPane"
                "border": sfield com.jgoodies.forms.factories.Borders DIALOG_BORDER
                add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jgoodies.forms.layout.FormLayout ) {
                    "$columnSpecs": "default, labelcompgap, default, labelcompgap, default"
                    "$rowSpecs": "default, linegap, default, linegap, default, linegap, default, linegap, default"
                } ) {
                    name: "contentPanel"
                    add( new FormComponent( "javax.swing.JLabel" ) {
                        name: "label1"
                        "text": "DB Path:"
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 1
                        "gridY": 1
                    } )
                    add( new FormComponent( "javax.swing.JTextField" ) {
                        name: "dbPath"
                        "columns": 50
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 3
                        "gridY": 1
                    } )
                    add( new FormComponent( "javax.swing.JButton" ) {
                        name: "button1"
                        "text": "..."
                        addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "button1ActionPerformed", true ) )
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 5
                        "gridY": 1
                    } )
                    add( new FormComponent( "javax.swing.JLabel" ) {
                        name: "label3"
                        "text": "Username:"
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 1
                        "gridY": 3
                    } )
                    add( new FormComponent( "javax.swing.JTextField" ) {
                        name: "username"
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 3
                        "gridY": 3
                        "gridWidth": 3
                    } )
                    add( new FormComponent( "javax.swing.JLabel" ) {
                        name: "label4"
                        "text": "Password:"
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 1
                        "gridY": 5
                    } )
                    add( new FormComponent( "javax.swing.JPasswordField" ) {
                        name: "password"
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 3
                        "gridY": 5
                        "gridWidth": 3
                    } )
                    add( new FormComponent( "javax.swing.JButton" ) {
                        name: "button2"
                        "text": "Change Username/password"
                        addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "button2ActionPerformed", true ) )
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 3
                        "gridY": 7
                    } )
                    add( new FormComponent( "javax.swing.JLabel" ) {
                        name: "label2"
                        "text": "DB Read-only:"
                        "visible": false
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 1
                        "gridY": 9
                    } )
                    add( new FormComponent( "javax.swing.JCheckBox" ) {
                        name: "readOnly"
                        "visible": false
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 3
                        "gridY": 9
                        "gridWidth": 3
                    } )
                }, new FormLayoutConstraints( class java.lang.String ) {
                    "value": "Center"
                } )
                add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jgoodies.forms.layout.FormLayout ) {
                    "$columnSpecs": "glue, button, relgap, button"
                    "$rowSpecs": "pref"
                } ) {
                    name: "buttonBar"
                    "border": sfield com.jgoodies.forms.factories.Borders BUTTON_BAR_GAP_BORDER
                    add( new FormComponent( "javax.swing.JButton" ) {
                        name: "okButton"
                        "text": "OK"
                        addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "okButtonActionPerformed", true ) )
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 2
                        "gridY": 1
                    } )
                    add( new FormComponent( "javax.swing.JButton" ) {
                        name: "cancelButton"
                        "text": "Cancel"
                        addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "cancelButtonActionPerformed", true ) )
                    }, new FormLayoutConstraints( class com.jgoodies.forms.layout.CellConstraints ) {
                        "gridX": 4
                        "gridY": 1
                    } )
                }, new FormLayoutConstraints( class java.lang.String ) {
                    "value": "South"
                } )
            }, new FormLayoutConstraints( class java.lang.String ) {
                "value": "Center"
            } )
        }, new FormLayoutConstraints( null ) {
            "location": new java.awt.Point( 0, 0 )
            "size": new java.awt.Dimension( 400, 300 )
        } )
    }
}