Skip to content

Commit

Permalink
Added a Wizard for Freimap Configuration
Browse files Browse the repository at this point in the history
Now is in a broken version.

Next Commit should be ok.

with this Wizard we I can resolve some problem with the olsrd, nameservice plugin and dotdraw port configurations.

Resolved other issues with Start panel and MySqlCredential form.
  • Loading branch information
stefano authored and stefano committed Aug 7, 2010
1 parent 2973a44 commit e58abc0
Show file tree
Hide file tree
Showing 23 changed files with 2,307 additions and 231 deletions.
42 changes: 42 additions & 0 deletions src/Wizard/Bundle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
OpenIDE-Module-Name=Wizard
FreimapVisualPanel1.jLabel1.text=Information About Freimap and this Wizard - SKIP BUTTON?
FreimapVisualPanel2.logLabel.text=\
FreimapVisualPanel2.jLabel5.text=Host:
FreimapVisualPanel2.jLabel2.text=Password:
FreimapVisualPanel2.jLabel6.text=:
FreimapVisualPanel2.jLabel1.text=UserName:
FreimapVisualPanel2.loadDb.text=Load Avaible Databse
FreimapVisualPanel2.jButton1.text=Example
FreimapVisualPanel2.jLabel7.text=Avaible Database:
FreimapVisualPanel2.portText.text=3306
FreimapVisualPanel2.jLabel4.text=For security reason you cannot store User/Pass
FreimapVisualPanel2.connectButton.text=Connect
FreimapVisualPanel2.jLabel3.text=Insert MySQL Requirements to store data
FreimapVisualPanel3.jLabel1.text=Name Service Plugin:
FreimapVisualPanel3.jLabel2.text=Olsr Config File:
FreimapVisualPanel3.jLabel3.text=DotDraw Plugin Port:
FreimapVisualPanel4.jLabel1.text=UserName:
FreimapVisualPanel4.jLabel2.text=MySQL Database:
FreimapVisualPanel4.jLabel3.text=Password:
FreimapVisualPanel4.jLabel4.text=OLSRd Config file path:
FreimapVisualPanel4.jLabel5.text=Nameservice LatLon.js file path:
FreimapVisualPanel4.jLabel6.text=DotDraw Plugin port:
FreimapVisualPanel3.jButton1.text=Browse
FreimapVisualPanel3.jButton2.text=Read Config File
FreimapVisualPanel3.olsrdPath.text=
FreimapVisualPanel3.nameServicePath.text=
FreimapVisualPanel3.dotDrawPort.text=
FreimapVisualPanel2.jLabel5.text=Database:
FreimapVisualPanel4.mySQLLabel.text=\
FreimapVisualPanel4.UserNameLabel.text=jLabel7
FreimapVisualPanel4.passwordLabel.text=\
FreimapVisualPanel4.olsrdLabel.text=jLabel7
FreimapVisualPanel4.NameServiceLabel.text=\
FreimapVisualPanel4.dotDrawPortLabel.text=jLabel7
FreimapVisualPanel4.UserNameLabel.text=\
FreimapVisualPanel4.olsrdLabel.text=\
FreimapVisualPanel4.dotDrawPortLabel.text=\
FreimapVisualPanel4.jLabel7.text=jLabel7
FreimapVisualPanel4.jLabel7.text=You have put this information:
FreimapVisualPanel4.jLabel8.text=HostName/port:
FreimapVisualPanel4.hostNameLabel.text=\
45 changes: 45 additions & 0 deletions src/Wizard/FreimapVisualPanel1.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" ?>

<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" pref="260" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="Freimap/wizard/Bundle.properties" key="FreimapVisualPanel1.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
</Properties>
</Component>
</SubComponents>
</Form>
54 changes: 54 additions & 0 deletions src/Wizard/FreimapVisualPanel1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Wizard;

import javax.swing.JPanel;

public final class FreimapVisualPanel1 extends JPanel {

/** Creates new form FreimapVisualPanel1 */
public FreimapVisualPanel1() {
initComponents();
}

@Override
public String getName() {
return "Step #1";
}

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

jLabel1 = new javax.swing.JLabel();

org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(FreimapVisualPanel1.class, "FreimapVisualPanel1.jLabel1.text")); // NOI18N

org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
.addContainerGap())
);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
}

Loading

0 comments on commit e58abc0

Please sign in to comment.