// Its job is to refresh all the GUI manifestations of this view role. In the case of updating the model,
// the refresh is done by copying new data from the model to the GUI visual elements.
// In our example, the visual elements are a text field and a double value field.
@Override
public void updateMonitoredGUI() {
ExampleModelRole mr = ExampleComponent.class.cast(getManifestedComponent()).getModel();
doubleDataTextField.setText(String.valueOf(mr.getData().getDoubleData()));
descriptionTextField.setText(mr.getData().getDataDescription());
}