private void restoreStates(byte b, AbstractButton... switches) {
		int value = b & 0xFF;
		for (int i = 0; i < switches.length; i++) {
			int realValue = (value >> i) & 0x01;
			switches[i].setSelected(realValue == 0x01);
		}
	}