code: protected void addAttributesForSwitch(ResponseWriter rw, SelectBooleanCheckbox selectBooleanCheckbox)
  			throws IOException {
  		Switch switchComponent = (Switch) selectBooleanCheckbox;
  		writeAttribute(rw, "data-off-text", switchComponent.getOffText());
  		writeAttribute(rw, "data-on-text", switchComponent.getOnText());
  		writeAttribute(rw, "data-on-color", switchComponent.getOnColor());
  		writeAttribute(rw, "data-off-color", switchComponent.getOffColor());
  		if (switchComponent.isIndeterminate())
  			writeAttribute(rw, "data-indeterminate", switchComponent.isIndeterminate());
  		if (switchComponent.isInverse())
  			writeAttribute(rw, "data-inverse", switchComponent.isInverse());
  		writeAttribute(rw, "data-size", switchComponent.getSwitchsize());
  		if (!switchComponent.isAnimate())
  			writeAttribute(rw, "data-animate", switchComponent.isAnimate());
  		if (switchComponent.isDisabled())
  			writeAttribute(rw, "data-disabled", switchComponent.isDisabled());
  		if (switchComponent.isReadonly())
  			writeAttribute(rw, "data-readonly", switchComponent.isReadonly());
  		writeAttribute(rw, "data-label-text", switchComponent.getLabelText());
  		if (switchComponent.getHandleWidth() > 0)
  			writeAttribute(rw, "data-handle-width", switchComponent.getHandleWidth());
  		if (switchComponent.getLabelWidth() > 0)
  			writeAttribute(rw, "data-label-width", switchComponent.getLabelWidth());
  	}
docs: The b:switch and the b:selectBooleanCheckbox share most of their code.
  This method allows to add extra attributes for the switch.
  
  @param rw
  @param selectBooleanCheckbox
  @throws IOException