SELECTABLE_ITEMS_HOLDER_KEY
SELECTED_ITEMS_HOLDER_KEY
SELECTED_ITEM_TYPE_KEY
COMPARATOR_KEY
RENDERER_KEY
FORM_ID
<bean id="binderSelectionStrategy" class="org.springframework.richclient.form.binding.swing.SwingBinderSelectionStrategy"> <property name="bindersForControlTypes"> <map> <entry> <key> <value type="java.lang.Class">org.springframework.richclient.components.ShuttleList</value> </key> <bean class="org.springframework.richclient.components.ShuttleListBinder" /> </entry> </map> </property> </bean>
Also, see {@link SwingBindingFactoryProvider} and{@link SwingBindingFactoryProvider} for how to configure and use that bindingfactory, which offers convenience methods for constructing a bound shuttle list. With the provider, factory, and binder registered, the following code can be used to add a bound shuttle list to a form:
final SandboxSwingBindingFactory bf = (SandboxSwingBindingFactory) getBindingFactory(); TableFormBuilder formBuilder = new TableFormBuilder( bf ); ... String[] languages = new String[] { "java", "perl", "ruby", "C#" }; List languagesList = Arrays.asList( languages ); formBuilder.add( bf.createBoundShuttleList( "languageSkills", languagesList ), "align=left" );@author Larry Streepy @author Benoit Xhenseval
|
|