Earlier in this section, we saw how to use the various methods of
Style to specify a component's appearance by setting attributes in the style instance associated with it. Under the new scheme of things, a component will have two styles associated with it and not just one style as at present—one style for the selected (focused) state and the other for the unselected state. For example, at present we use the
setBgColor method for setting the background color for the unselected state and the
setBgSelectionColor method to set the background color for the selected state. With the new version, there will not be a
setBgSelectionColor method, and we will need to use the
setBgColor method for the two distinct style instances.