src/authoring/factories/Toolbar.java
private Menu createMenu(String s, Properties p) {
		Menu m = new Menu();
		m.setText(s);
		m.setId(s);
		this.applyCss();
		for(Entry<Object, Object> entry : p.entrySet()) {
			MenuItem menuItem = new MenuItem();
			menuItem.setText((String) entry.getValue());
			menuItem.setId((String)entry.getKey());
			menuItem.setOnAction(e->consumerMap.get(entry.getKey()).accept(e));
			m.getItems().add(menuItem);
		}
		return m;
	}
/**
	 * Dynamically create a menu
	 * @param name the name of the menu
	 * @param items the items in a given menu
	 * @return a Node with the menu
	 */
Dynamically create a menu
@param name the name of the menu
@param items the items in a given menu
@return a Node with the menu
Dynamically create a menu @param name the name of the menu @param items the items in a given menu @return a Node with the menu
private Menu createMenu(String s, Properties p) {
		Menu m = new Menu();
		m.setText(s);
		m.setId(s);
		this.applyCss();
		for(Entry<Object, Object> entry : p.entrySet()) {
			MenuItem menuItem = new MenuItem();
			menuItem.setText((String) entry.getValue());
			menuItem.setId((String)entry.getKey());
			menuItem.setOnAction(e->consumerMap.get(entry.getKey()).accept(e));
			m.getItems().add(menuItem);
		}
		return m;
	}
private Menu createMenu ( String s , Properties p ) { Menu m = new Menu ( ) ; m . setText ( s ) ; m . setId ( s ) ; this . applyCss ( ) ; for ( Entry < Object , Object > entry : p . entrySet ( ) ) { MenuItem menuItem = new MenuItem ( ) ; menuItem . setText ( ( String ) entry . getValue ( ) ) ; menuItem . setId ( ( String ) entry . getKey ( ) ) ; menuItem . setOnAction ( e -> consumerMap . get ( entry . getKey ( ) ) . accept ( e ) ) ; m . getItems ( ) . add ( menuItem ) ; } return m ; }
Dynamically create a menu
 @param name the name of the menu
 @param items the items in a given menu
 @return a Node with the menu
Dynamically create a menu @param name the name of the menu @param items the items in a given menu @return a Node with the menu