/* The format is based on 1.5 release behavior
* which can be revealed by the following code:
*
* Checkbox c = new Checkbox("Checkbox", true);
* ItemEvent e = new ItemEvent(c, ItemEvent.ITEM_STATE_CHANGED,
* c, ItemEvent.SELECTED);
* System.out.println(e);
*/
String stateString = null;
switch (stateChange) {
case SELECTED:
stateString = "SELECTED"; //$NON-NLS-1$
break;
case DESELECTED:
stateString = "DESELECTED"; //$NON-NLS-1$
break;
default:
stateString = "unknown type"; //$NON-NLS-1$
}
return ((id == ITEM_STATE_CHANGED ? "ITEM_STATE_CHANGED" : "unknown type") + //$NON-NLS-1$ //$NON-NLS-2$
",item=" + item + ",stateChange=" + stateString); //$NON-NLS-1$ //$NON-NLS-2$