src/authoring/factories/ElementFactory.java
public Element buildClickElement(ClickElementType elementName, String text, Consumer<Void> event) throws Exception {
		String builderName = PACKAGE_NAME+elementName+ELEMENT;
		Class<?> elementClass = Class.forName(builderName);
		ClickableElement element = (ClickableElement) elementClass.getConstructor(text.getClass()).newInstance(text);		
		element.handleConsumer(event);
		return element;
	}
/**
	 * Builds a clickable element of a particular type containing a specific action and text.
	 * @param elementName Type of Element to be created
	 * @param text {@code String} text to be placed in the new Element
	 * @param event {@code Consumer} event that the element will perform on action
	 * @return Desired clickable element
	 * @throws Exception
	 */
Builds a clickable element of a particular type containing a specific action and text.
Builds a clickable element of a particular type containing a specific action and text .
public Element buildClickElement(ClickElementType elementName, String text, Consumer<Void> event) throws Exception {
		String builderName = PACKAGE_NAME+elementName+ELEMENT;
		Class<?> elementClass = Class.forName(builderName);
		ClickableElement element = (ClickableElement) elementClass.getConstructor(text.getClass()).newInstance(text);		
		element.handleConsumer(event);
		return element;
	}
public Element buildClickElement ( ClickElementType elementName , String text , Consumer < Void > event ) throws Exception { String builderName = PACKAGE_NAME + elementName + ELEMENT ; Class < ? > elementClass = Class . forName ( builderName ) ; ClickableElement element = ( ClickableElement ) elementClass . getConstructor ( text . getClass ( ) ) . newInstance ( text ) ; element . handleConsumer ( event ) ; return element ; }
Builds a clickable element of a particular type containing a specific action and text.
Builds a clickable element of a particular type containing a specific action and text .