Package org.acme.example.component

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

Related Classes of org.acme.example.component.ExampleModelRole

Copyright © 2018 www.massapicom. 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.