@Override public Object checkBoxBut(final FormObject form){
  final ToggleButton checkBut=new ToggleButton();
  final JavaFXControlListener controlListener=new JavaFXControlListener(checkBut);
  final StringBuilder styleBuilder=new StringBuilder(200);
  checkBut.setUserData(CHECKBOXBUTTON);
  setupUniversalFeatures(checkBut,form,styleBuilder,controlListener);
  setupButton(checkBut,form,controlListener);
  setupToggleGroup(form,checkBut);
  addFont(form,false,false,styleBuilder);
  final boolean[] flags=form.getFieldFlags();
  if ((flags != null) && (flags[FormObject.READONLY_ID])) {
    checkBut.setDisable(true);
  }
  styleBuilder.append("-fx-padding:0;-fx-border:none;-fx-background-color:transparent;");
  checkBut.setStyle(styleBuilder.toString());
  return checkBut;
}

@ Override public Object checkBoxBut ( final FormObject form ) { final ToggleButton checkBut = new ToggleButton ( ) ; final JavaFXControlListener controlListener = new JavaFXControlListener ( checkBut ) ; final StringBuilder styleBuilder = new StringBuilder ( 200 ) ; checkBut . setUserData ( CHECKBOXBUTTON ) ; setupUniversalFeatures ( checkBut , form , styleBuilder , controlListener ) ; setupButton ( checkBut , form , controlListener ) ; setupToggleGroup ( form , checkBut ) ; addFont ( form , false , false , styleBuilder ) ; final boolean [ ] flags = form . getFieldFlags ( ) ; if ( ( flags != null ) && ( flags [ FormObject . READONLY_ID ] ) ) { checkBut . setDisable ( true ) ; } styleBuilder . append ( "-fx-padding:0;-fx-border:none;-fx-background-color:transparent;" ) ; checkBut . setStyle ( styleBuilder . toString ( ) ) ; return checkBut ; }
setup and return the checkbox button specified in the formobject
