/** * @param theToggle * @param theValue * @return */ public RadioButton addItem(final Toggle theToggle, final float theValue) { theToggle.setGroup(this); theToggle.isMoveable = false; theToggle.setInternalValue(theValue); theToggle.isBroadcast = false; _myRadioToggles.add(theToggle); updateLayout(); getColor().copyTo(theToggle); theToggle.addListener(this); updateValues(false); cp5.removeProperty(theToggle); return this; }