src/authoring/views/popups/SelectionBox.java
private void fill(String[] options, Consumer consumer, String[] exceptions) {
		for(String o: options) {
			if (!Arrays.asList(exceptions).contains(o)) {
				try {
					Label label = (Label) eFactory.buildElement(ElementType.Label, o);
					label.getStyleClass().add("selection-label");
					label.setAlignment(Pos.CENTER);
					label.setPrefWidth(WIDTH);
					label.setOnMouseClicked(e->{
						selection = label.getId();
						this.onClose(consumer);
						stage.close();
					});
					this.getChildren().add(label);
					elements.add((Element) label);
				} catch (Exception e) {
					LOGGER.log(java.util.logging.Level.SEVERE, e.toString(), e);
				}
			}
		}
	}
/**
	 * Builds the list of options
	 * @param options
	 */
Builds the list of options
@param options
Builds the list of options @param options
private void fill(String[] options, Consumer consumer, String[] exceptions) {
		for(String o: options) {
			if (!Arrays.asList(exceptions).contains(o)) {
				try {
					Label label = (Label) eFactory.buildElement(ElementType.Label, o);
					label.getStyleClass().add("selection-label");
					label.setAlignment(Pos.CENTER);
					label.setPrefWidth(WIDTH);
					label.setOnMouseClicked(e->{
						selection = label.getId();
						this.onClose(consumer);
						stage.close();
					});
					this.getChildren().add(label);
					elements.add((Element) label);
				} catch (Exception e) {
					LOGGER.log(java.util.logging.Level.SEVERE, e.toString(), e);
				}
			}
		}
	}
private void fill ( String [ ] options , Consumer consumer , String [ ] exceptions ) { for ( String o : options ) { if ( ! Arrays . asList ( exceptions ) . contains ( o ) ) { try { Label label = ( Label ) eFactory . buildElement ( ElementType . Label , o ) ; label . getStyleClass ( ) . add ( "selection-label" ) ; label . setAlignment ( Pos . CENTER ) ; label . setPrefWidth ( WIDTH ) ; label . setOnMouseClicked ( e -> { selection = label . getId ( ) ; this . onClose ( consumer ) ; stage . close ( ) ; } ) ; this . getChildren ( ) . add ( label ) ; elements . add ( ( Element ) label ) ; } catch ( Exception e ) { LOGGER . log ( java . util . logging . Level . SEVERE , e . toString ( ) , e ) ; } } } }
Builds the list of options
 @param options
Builds the list of options @param options