public void setMandatory ( final boolean mandatory , final String message ) { setFlag ( ComponentModel . MANDATORY_FLAG , mandatory ) ; getOrCreateComponentModel ( ) . errorMessage = message ; }
Set whether or not this field set is mandatory and customise the error message that will be displayed .