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-gui/src/com/jme3/gde/gui/nodes/GUINode.java

38 lines
881 B

11 years ago
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.gui.nodes;
import jada.ngeditor.model.GUI;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
/**
*
* @author cris
*/
public class GUINode extends AbstractNode{
private final GUI gui;
11 years ago
private static final String basePath="com/jme3/gde/gui/multiview/icons";
11 years ago
public GUINode(GUI gui) {
super(Children.create(new ScreenChildFactory(gui),false));
this.gui = gui;
11 years ago
this.setIconBaseWithExtension(basePath+"/"+"game-monitor"+".png");
11 years ago
}
/**
* @return the gui
*/
public GUI getGui() {
return gui;
}
@Override
public String getName() {
return super.getName()+" "+this.gui; //To change body of generated methods, choose Tools | Templates.
}
}