MarginallyClever / Robot-Overlord-App

Simulation and control software for robots
https://www.marginallyclever.com/
GNU General Public License v2.0
157 stars 48 forks source link

Add views #231

Closed i-make-robots closed 6 months ago

i-make-robots commented 6 months ago

Work on #228.

Suppose there are one or more classes that provide a view of a model, in the sense of a model-view-controller design pattern.

When class A provides a GUI for class B, A should be Annotated View(of=B.class). A must also implement the ViewProvider interface. ViewProvider then empowers other systems to locate and build the Swing GUIs for A.

Annotating a View and failing to implement the ViewProvider interface will cause a test to fail.