Example usage for com.jgoodies.forms.debug FormDebugUtils dumpAll

List of usage examples for com.jgoodies.forms.debug FormDebugUtils dumpAll

Introduction

In this page you can find the example usage for com.jgoodies.forms.debug FormDebugUtils dumpAll.

Prototype

public static void dumpAll(Container container) 

Source Link

Document

Dumps all layout state to the console: column and row specifications, column and row groups, grid bounds and cell constraints.

Usage

From source file:de.dfki.dmas.owls2wsdl.gui.ConfigurationFrame.java

License:Open Source License

private JPanel buildSubPanel4ApplicationConfigs(boolean debugmode) {
    FormLayout layout = new FormLayout("10dlu, right:pref, 10px, fill:pref:grow, 5px, pref");
    DefaultFormBuilder builder = null;/*from   www .j  a  va2s  .c o  m*/
    if (debugmode)
        builder = new DefaultFormBuilder(layout, new FormDebugPanel());
    else
        builder = new DefaultFormBuilder(layout);

    builder.setDefaultDialogBorder();
    builder.setLeadingColumnOffset(1);

    builder.appendSeparator("Application Properties");
    builder.append("Application path", this.applPathField, this.applPathBrowseButton);
    builder.append("Export directory", this.exportDirectoryField, this.exportDirectoryBrowseButton);
    builder.append("Log file", this.logPathField, 3);
    builder.append("Persistent datatype directory", this.persistentDatatypeDirectoryField, 3);
    builder.append("Project directory", this.persistentProjectDirectoryField, 3);
    builder.append("Persistence", this.persistentDatatypeCheckBox, 3);
    builder.append("JConsole", this.jconsoleCheckBox, 3);

    // builder.append("", this.buildRelativePathCheckBox, 1);

    builder.appendSeparator("Language");
    JPanel langPanel = new JPanel();
    langPanel.add(this.deLangButton);
    langPanel.add(this.enLangButton);
    builder.setHAlignment(CellConstraints.LEFT);
    builder.append("", langPanel, 3);

    builder.appendSeparator("Look and Feel");
    JPanel lfPanel = new JPanel();
    lfPanel.add(this.plasticLfButton);
    lfPanel.add(this.windowsLfButton);
    lfPanel.add(this.motifLfButton);
    builder.setHAlignment(CellConstraints.LEFT);
    builder.append("", lfPanel, 3);

    if (debugmode)
        FormDebugUtils.dumpAll(builder.getPanel());

    return builder.getPanel();
}

From source file:de.dfki.dmas.owls2wsdl.gui.ConfigurationFrame.java

License:Open Source License

private JPanel buildSubPanel4XsdGenerationConfigs(boolean debugmode) {
    FormLayout layout = new FormLayout("10dlu, right:pref, 10px, fill:pref:grow");
    DefaultFormBuilder builder = null;/*ww w  .j a v a 2s  . co  m*/
    if (debugmode)
        builder = new DefaultFormBuilder(layout, new FormDebugPanel());
    else
        builder = new DefaultFormBuilder(layout);

    builder.setDefaultDialogBorder();
    builder.setLeadingColumnOffset(1);

    builder.appendSeparator("General Properties");
    builder.append("Default inheritance depth", this.defaultElementDepthField, 1);
    builder.append("Pattern Usage", this.shortButton, 1);
    builder.append("", this.hierarchyButton, 1);
    builder.append("Enhance WSDL Matchmaking", this.addMetaTypesCheckBox, 1);
    builder.append("Enhance WSDL Matchmaking", this.addAnnotationCheckBox, 1);

    builder.appendSeparator("Project Properties (saved in project)");
    builder.append("Use this depth to add elements", this.projectElementDepthField, 1);
    builder.append("Inherit XSD Type from", this.xsdTypeInheritanceBehaviour, 1);
    builder.append("Default XSD Type", this.projectDefaultXsdTypeField, 1);

    if (debugmode)
        FormDebugUtils.dumpAll(builder.getPanel());

    return builder.getPanel();
}

From source file:de.dfki.dmas.owls2wsdl.gui.ConfigurationFrame.java

License:Open Source License

private JPanel buildExportSettingsTab(boolean debugmode) {
    FormLayout layout = new FormLayout("10dlu, right:pref, 10px, fill:pref:grow");
    DefaultFormBuilder builder = null;//from ww  w  .java  2  s .  c om
    if (debugmode)
        builder = new DefaultFormBuilder(layout, new FormDebugPanel());
    else
        builder = new DefaultFormBuilder(layout);

    builder.setDefaultDialogBorder();
    builder.setLeadingColumnOffset(1);

    builder.appendSeparator("Namespace setting for WSDL Builder");
    builder.append("Change Namespace (tns)", this.autoNamespaceBaseSelectButton, 1);
    builder.append("", this.newNamespaceBaseSelectButton, 1);
    builder.append("New Namespace base_path", this.wsdlNamespaceField, 1);

    // builder.append("Axis service path", this.axisServicePathField, 1);

    builder.appendSeparator("XML Base setting for OWL-S Builder (Re-Engineering)");
    builder.append("Change XML Base", this.autoOWLSBaseSelectButton, 1);
    builder.append("", this.newOWLSBaseSelectButton, 1);
    builder.append("New XML base_path", this.owlsBaseField, 1);

    builder.appendSeparator("Grounding setting for OWL-S Builder (Re-Engineering)");
    builder.append("Set grounding path", this.autoWsdldocPathSelectButton, 1);
    builder.append("", this.setWsdlDocPathSelectButton, 1);
    builder.append("New grounding path", this.wsdldocPathField, 1);

    if (debugmode)
        FormDebugUtils.dumpAll(builder.getPanel());

    return builder.getPanel();
}

From source file:de.dfki.dmas.owls2wsdl.gui.ExportWSDLFrame.java

License:Open Source License

private JPanel buildExportSubPanel(boolean debugmode) {
    FormLayout layout = new FormLayout("left:10dlu, fill:pref:grow, 10px, fill:pref");

    DefaultFormBuilder builder = null;//w w w  .j  a  va2  s.c o m
    if (debugmode)
        builder = new DefaultFormBuilder(layout, new FormDebugPanel());
    else
        builder = new DefaultFormBuilder(layout);

    builder.setDefaultDialogBorder();
    builder.setLeadingColumnOffset(1);

    builder.appendSeparator("Translatable Services");
    JScrollPane scrollPane_1 = new JScrollPane(translatableServiceList);
    scrollPane_1.setPreferredSize(translatableServiceList.getPreferredScrollableViewportSize());
    builder.append(scrollPane_1, 3);

    builder.appendSeparator("Non-Translatable Services");
    JScrollPane scrollPane_2 = new JScrollPane(nonTranslatableServiceList);
    scrollPane_2.setPreferredSize(nonTranslatableServiceList.getPreferredScrollableViewportSize());
    builder.append(scrollPane_2, 3);

    builder.appendSeparator("Export Settings");
    JPanel checkPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    // checkPanel.setBackground(Color.blue);
    checkPanel.add(generateWSDLCheckBox);
    checkPanel.add(generateOWLSCheckBox);
    // checkPanel.add(buildRelativePathCheckBox);
    builder.append(checkPanel, 3);
    builder.nextLine();

    JButton browseButton = new JButton("Path...");
    browseButton.setActionCommand(SET_EXPORT_PATH);
    browseButton.addActionListener(this);

    builder.append(urlField, 1);
    builder.append(browseButton, 1);

    // builder.appendGlueColumn();

    builder.appendSeparator("Export Log");

    JScrollPane scrollPane_3 = new JScrollPane(exportLog);
    // scrollPane_3.setPreferredSize(exportLog.getPreferredScrollableViewportSize());
    builder.append(scrollPane_3, 3);

    layout.setRowSpec(17, new com.jgoodies.forms.layout.RowSpec("fill:pref:grow"));

    // builder.append("Export Status #: ", new JLabel("n"), true);

    if (debugmode)
        FormDebugUtils.dumpAll(builder.getPanel());

    return builder.getPanel();
}

From source file:de.dfki.dmas.owls2wsdl.gui.ProjectDetailPanel.java

License:Open Source License

private JScrollPane buildOntInfoTab(boolean debugmode) {
    JPanel ontInfoPanel = new JPanel();
    JPanel debugPanel = new FormDebugPanel();

    FormLayout layout = new FormLayout("fill:pref:grow", "pref, 3dlu, pref, 5dlu, " + "pref, 3dlu, pref");

    PanelBuilder builder = null;//from  w w w .j  a v  a  2s  .c  o m

    if (debugmode)
        builder = new PanelBuilder(layout, debugPanel);
    else
        builder = new PanelBuilder(layout, ontInfoPanel);

    builder.setDefaultDialogBorder();

    CellConstraints cc = new CellConstraints();
    builder.addSeparator("Parsed ontologies", cc.xy(1, 1));
    builder.add(new JScrollPane(parsedOntologiesList), cc.xy(1, 3));

    builder.addSeparator("Knowledgebase changes (LOG)", cc.xy(1, 5));
    builder.add(new JScrollPane(changesList), cc.xy(1, 7));

    if (debugmode) {
        FormDebugUtils.dumpAll(this);
        return new JScrollPane(debugPanel);
    } else {
        return new JScrollPane(ontInfoPanel);
    }
}

From source file:de.dfki.dmas.owls2wsdl.gui.ProjectDetailPanel.java

License:Open Source License

private JScrollPane buildServiceDependenciesInfoTab(boolean debugmode) {
    JPanel ontInfoPanel = new JPanel();
    JPanel debugPanel = new FormDebugPanel();

    FormLayout layout = new FormLayout(
            "fill:40dlu, right:pref, 4dlu, pref, 10dlu:grow, right:pref, 4dlu, pref, 10dlu",
            "pref, 3dlu, pref, 5dlu," + "pref, 3dlu, pref, 3dlu,  pref, 3dlu,  pref");

    PanelBuilder builder = null;/*from   w  w  w .  j a v  a 2 s . c o m*/

    if (debugmode)
        builder = new PanelBuilder(layout, debugPanel);
    else
        builder = new PanelBuilder(layout, ontInfoPanel);

    builder.setDefaultDialogBorder();

    CellConstraints cc = new CellConstraints();
    builder.addSeparator("Service dependencies and missing types", cc.xyw(1, 1, 9));
    builder.add(new JScrollPane(serviceDependencyTypesTable), cc.xyw(1, 3, 9));

    builder.addSeparator("Project, Datatype summary", cc.xyw(1, 5, 9));
    builder.add(new JLabel("Total count"), cc.xy(2, 7));
    builder.add(datatypesTotalCountField, cc.xy(4, 7));
    builder.add(new JLabel("Service dependencies count"), cc.xy(2, 9));
    builder.add(serviceDependencyTypesCountField, cc.xy(4, 9));
    builder.add(new JLabel("Missing types count"), cc.xy(6, 9));
    builder.add(serviceMissingTypesCountField, cc.xy(8, 9));

    if (debugmode) {
        FormDebugUtils.dumpAll(this);
        return new JScrollPane(debugPanel);
    } else {
        return new JScrollPane(ontInfoPanel);
    }
}

From source file:org.tsho.dmc2.ui.bifurcation.BifVerticalAxisForm.java

License:Open Source License

private void createForm(String[] labels) {

    boolean debug = false;

    FormLayout layout = new FormLayout(
            //"l:9dlu:n, r:p:g, l:4dlu:n, c:49dlu:n,  l:9dlu:n",
            FormHelper.JGOODIES_SHORT_COLUMN_SPECS, "");

    DefaultFormBuilder builder;/*from  w w  w .j  a  va  2s .  c om*/
    if (debug)
        builder = new DefaultFormBuilder(new FormDebugPanel(), layout);
    else
        builder = new DefaultFormBuilder(this, layout);

    builder.setDefaultDialogBorder();
    builder.setLeadingColumnOffset(1);

    builder.appendSeparator("Vertical axis");
    builder.nextLine();

    builder.appendRow(builder.getLineGapSpec());
    builder.nextLine(1);

    box1 = new JComboBox(labels);
    builder.append("variable", box1);
    builder.nextLine();

    //        box2 = new JComboBox(labels);
    //        box2.addItemListener(myListener);
    //        builder.append("Range axis", box2);
    //        builder.nextLine();
    //
    //        int box1Width = box1.getPreferredSize().width;
    //        int box1Height = box1.getPreferredSize().height;
    //        int box2Width = box2.getPreferredSize().width;
    //        int box2Height = box2.getPreferredSize().height;
    //        
    //        int max = (box1Width > box2Width ? box1Width : box2Width);
    //        box1.setPreferredSize(new Dimension(max, box1Height));
    //        box2.setPreferredSize(new Dimension(max, box2Height));

    if (debug) {
        setLayout(new BorderLayout());
        add(builder.getContainer());
        FormDebugUtils.dumpAll(builder.getPanel());
    }
}

From source file:org.tsho.dmc2.ui.coweb.CowebAlgorithmForm.java

License:Open Source License

private void createForm(boolean step) {
    boolean debug = false;

    FormLayout layout = new FormLayout(
            //"l:9dlu:n, r:p:g, l:4dlu:n, c:49dlu:n,  l:9dlu:n",
            FormHelper.JGOODIES_SHORT_COLUMN_SPECS, "");

    DefaultFormBuilder builder;//from   w  ww . jav  a 2  s .c  o m

    if (debug)
        builder = new DefaultFormBuilder(new FormDebugPanel(), layout);
    else
        builder = new DefaultFormBuilder(this, layout);

    builder.setDefaultDialogBorder();
    builder.setLeadingColumnOffset(1);

    builder.appendSeparator("Algorithm");
    builder.nextLine();

    builder.appendRow(builder.getLineGapSpec());
    builder.nextLine();

    builder.append(LABEL_POWER_SIZE, fieldPower);
    builder.nextLine();

    builder.appendRow(builder.getLineGapSpec());
    builder.appendRow(builder.getLineGapSpec());
    builder.nextLine(2);

    if (step) {
        builder.append(LABEL_STEP_SIZE, fieldStepSize);
        builder.nextLine();

        builder.appendRow(builder.getLineGapSpec());
        builder.appendRow(builder.getLineGapSpec());
        builder.nextLine(2);
    }

    builder.append(LABEL_TRANSIENTS, fieldTransients);
    builder.nextLine();

    builder.append(LABEL_ITERATIONS, fieldIterations);
    builder.nextLine();

    if (debug) {
        setLayout(new BorderLayout());
        add(builder.getContainer());
        FormDebugUtils.dumpAll(builder.getPanel());
    }
}