public static < P > Setting of ( String description , ListProperty < P > items , ObjectProperty < P > selection ) { return new Setting <> ( description , Field . ofSingleSelectionType ( items , selection ) . label ( description ) . render ( new SimpleComboBoxControl <> ( ) ) , selection ) ; }
Creates a combobox with single selection .