A complete 3D game development suite written purely in Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jmonkeyengine/sdk/jme3-navmesh-gen/src/com/jme3/gde/nmgen/wizard/NewNavMeshVisualPanel1.java

51 lines
1.5 KiB

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.nmgen.wizard;
import com.jme3.gde.nmgen.NavMeshGenerator;
import javax.swing.JPanel;
import org.openide.WizardDescriptor;
import org.openide.explorer.propertysheet.PropertySheet;
import org.openide.nodes.Node;
public final class NewNavMeshVisualPanel1 extends JPanel {
private PropertySheet ps;
/** Creates new form NewNavMeshVisualPanel1 */
public NewNavMeshVisualPanel1() {
initComponents();
ps = new PropertySheet();
ps.setNodes(new Node[]{});
add(ps);
}
@Override
public String getName() {
return "Specify Settings";
}
public void loadSettings(WizardDescriptor wiz){
NavMeshGenerator gen = (NavMeshGenerator)wiz.getProperty("generator");
ps.setNodes(new Node[]{new NavMeshGeneratorNode(gen)});
}
public void saveSettings(WizardDescriptor wiz){
}
/** 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() {
setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.LINE_AXIS));
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
}