==== Controller for MultiChoice ==== The MultiChoiceController is build around a specific control created for Adichatz. This is a FieldController that means that it can be linked to the databinding service. ==== Control ==== The control org.adichatz.engine.widgets.MultiChoice was developped by Adichatz based on [[https://github.com/lcaron/opal/tree/master/src/main/java/org/mihalis/opal/multiChoice|Laurent Caron's work]].\\ The MultiChoice class represents a selectable user interface object that combines a read-only text-field and a set of checkboxes accessible thru a popup window. * determine the number of columns in choices list. * decide if tool bar must be shown or hidden. * Set popup window size. * Set the type of the return value (String or Array) depending on database storage. ==== Usage: ==== == Code == == Overview == {{:controllers:multichoice.png |Multichoice - Store and display selection of items of a set of values}} \\ == Explanations == |< 100% 10em - >| ^popupToolbar="true":|@#eff5fb:A tool bar is displayed.| ^multiChoiceType="String":|@#eff5fb:The return value is a string (Options are String or Array).| ^values="Trailers,Commentaries...":|@#eff5fb:exaustive list of proposed values.|