Package edu.wpi.grip.core.settings
Class ProjectSettingsBeanInfo
- java.lang.Object
-
- java.beans.SimpleBeanInfo
-
- edu.wpi.grip.core.settings.SimpleSettingsBeanInfo
-
- edu.wpi.grip.core.settings.ProjectSettingsBeanInfo
-
- All Implemented Interfaces:
java.beans.BeanInfo
public class ProjectSettingsBeanInfo extends SimpleSettingsBeanInfo
BeanInfo class forProjectSettings
. This inspects annotations on the properties in ProjectSettings 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 ProjectSettingsBeanInfo()
-
Method Summary
-
Methods inherited from class edu.wpi.grip.core.settings.SimpleSettingsBeanInfo
getPropertyDescriptors
-
-