Added `selected` property

This is used in the Swing module to set the `selected` state
of button-like widgets like `CheckBox` or `RadioButton`