public EntityListMenu(Engine engine) { super(); setTitle("EntityMenu"); tree = new Tree(); tsm = new TreeDragNodeEntity(tree.getTable()); tsm.addActionListener(this); tree.setTreeSelectionManager(tsm); entity_tree = new DialogLayout(); entity_tree.setTheme("entitymenu"); property_editor = new ScrollPane(); property_editor.setTheme("propertymenu"); split_pane = new SplitPane(); split_pane.setDirection(SplitPane.Direction.VERTICAL); split_pane.setTheme("splitpane"); split_pane.add(entity_tree); split_pane.add(property_editor); this.add(split_pane); setEngine(engine); resourceMenuInit(); engine.getEntityList().addActionListener(this); }
public void setEngine(Engine engine) { this.engine = engine; tsm.setEngine(engine); }