Changes the data model of this component.
Current data model is disconnected from this component, and the new
data model is bound to this component, every change is tracked and
updates the user interfaces accordingly.
If the specified data model is the same instance as the current data model,
then is reset, component listener is removed and added again. Use this technique if
you want to add a data model listener to be executed before the default component listener.
Parameters: dataModel - the new data model. See Also: ItsNatButtonToggle.getToggleButtonModel() |