Examples of ExampleModelRole


Examples of org.acme.example.component.ExampleModelRole

  // 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());      
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.