38 lines
881 B
Java
Raw Normal View History

2014-07-04 13:44:33 +02:00
/*
* 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;
2014-08-20 15:02:20 +02:00
private static final String basePath="com/jme3/gde/gui/multiview/icons";
2014-07-04 13:44:33 +02:00
public GUINode(GUI gui) {
super(Children.create(new ScreenChildFactory(gui),false));
this.gui = gui;
2014-08-20 15:02:20 +02:00
this.setIconBaseWithExtension(basePath+"/"+"game-monitor"+".png");
2014-07-04 13:44:33 +02:00
}
/**
* @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.
}
}