Package edu.wpi.grip.core.settings
Class AppSettingsBeanInfo
- java.lang.Object
-
- java.beans.SimpleBeanInfo
-
- edu.wpi.grip.core.settings.SimpleSettingsBeanInfo
-
- edu.wpi.grip.core.settings.AppSettingsBeanInfo
-
- All Implemented Interfaces:
java.beans.BeanInfo
public class AppSettingsBeanInfo extends SimpleSettingsBeanInfo
BeanInfo class forAppSettings
. This inspects annotations on the properties in AppSettings to produce PropertyDescriptors with proper display names and descriptions. ControlsFX's PropertySheet control uses JavaBean properties to generate the settings editor, so we need this class in order to make the properties have user-presentable names and descriptions. Another way to do this without annotations would be to hardcode a bunch of PropertyDescriptors here, but that would be error-prone (we would get no warning if we add a new setting and forget to add a descriptor here).
-
-
Constructor Summary
Constructors Constructor Description AppSettingsBeanInfo()
-
Method Summary
-
Methods inherited from class edu.wpi.grip.core.settings.SimpleSettingsBeanInfo
getPropertyDescriptors
-
-