Package com.palantir.ptoss.cinch.swing
Class JListSelectionWiringHarness
java.lang.Object
com.palantir.ptoss.cinch.swing.JListSelectionWiringHarness
- All Implemented Interfaces:
- WiringHarness<BoundSelection,- Field> 
- Direct Known Subclasses:
- CheckBoxListSelectionWiringHarness
public class JListSelectionWiringHarness
extends Object
implements WiringHarness<BoundSelection,Field> 
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classprotected static class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static ObjectgetSelectedValue(JList list, ListSelectionModel selectionModel) protected static Object[]getSelectedValues(JList list, ListSelectionModel selectionModel) Collection<? extends Binding>wire(BoundSelection bound, BindingContext context, Field field) Performs the wiring of a specific component based on the passed binding annotation.
- 
Constructor Details- 
JListSelectionWiringHarnesspublic JListSelectionWiringHarness()
 
- 
- 
Method Details- 
wirepublic Collection<? extends Binding> wire(BoundSelection bound, BindingContext context, Field field) throws IllegalAccessException, IntrospectionException Description copied from interface:WiringHarnessPerforms the wiring of a specific component based on the passed binding annotation.- Specified by:
- wirein interface- WiringHarness<BoundSelection,- Field> 
- Parameters:
- bound- annotation containing the data needed to wire this component to the context.
- context- metadata about the context for wiring.
- field- the component to be wired by this harness.
- Returns:
- one or more Bindingobjects represent the wirings performed by this harness.
- Throws:
- IllegalAccessException
- IntrospectionException
 
- 
getSelectedValue
- 
getSelectedValues
 
-