public ToolBar(MainPane parent) { super(); this.parent = parent; add(newButton()); add(openButton()); add(saveButton()); add(closeButton()); addSeparator(); add(cutButton()); add(copyButton()); add(pasteButton()); addSeparator(); modeBar = new ElementaryNetEditingModeBar(parent); modeBar.addTo(this); addSeparator(); UndoBar undoBar = new UndoBar(parent); undoBar.addTo(this); addSeparator(); ExecuteBar executeBar = new ExecuteBar(parent); executeBar.addTo(this); createUpdateCheckBar(); setFloatable(false); }
public void select(ComposeMode cm) { modeBar.select(cm); }