@Override
 public void setTitle(String title) {
   dialog.setTitle(title);
 }
 @Override
 public void close() {
   dialog.hide();
 }
 @Override
 public Tool addButton() {
   ControlsFxTool tool = new ControlsFxTool();
   dialog.getActions().add(tool.getAction());
   return tool;
 }
 @Override
 public void show() {
   dialog.setContent(component);
   dialog.show();
 }