@ JsOverlay public final void addJavaProp ( String propName , String fieldName , boolean required , String exposedTypeName ) { if ( propsToProxy == null ) { propsToProxy = new HashSet <> ( ) ; } PropOptions propDefinition = new PropOptions ( ) ; propDefinition . required = required ; if ( exposedTypeName != null ) { propDefinition . type = ( ( JsPropertyMap < Object > ) DomGlobal . window ) . get ( exposedTypeName ) ; } propsToProxy . add ( new PropProxyDefinition ( propName , fieldName ) ) ; addProp ( propName , propDefinition ) ; }
Add a prop to our ComponentOptions . This will allow to receive data from the outside of our Component .