CRESS-Surrey / eXtraWidgets

An extension for creating additional interface tabs in the NetLogo GUI and putting custom widgets on them.
MIT License
13 stars 4 forks source link

Add validation for non recognized property keys? #39

Closed nicolaspayette closed 9 years ago

nicolaspayette commented 10 years ago

Those can't be in state, because state doesn't know about widget kinds (and their properties), but could be defined in api.ExtraWidget.

The user would be warned through the GUI. When running headless, we would just let it slide.

The different widget kinds would just extend the set of recognized properties.

Maybe other types of validations (e.g. validating the type of propertie values?) could be added as well.

nicolaspayette commented 9 years ago

This is related to #102, but should also be dealt with for all the xw:set-<key> setters. Right now, the property is silently added to the map.