public class JSpinnerWiringHarness extends java.lang.Object implements WiringHarness<Bound,java.lang.reflect.Field>
WiringHarness for binding a JSpinner to a value in a BindableModel. Only knows how to deal
with numbers.| Constructor and Description |
|---|
JSpinnerWiringHarness() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<Binding> |
bindJSpinner(javax.swing.JSpinner spinner,
Mutator mutator) |
java.util.Collection<Binding> |
wire(Bound bound,
BindingContext context,
java.lang.reflect.Field field)
Performs the wiring of a specific component based on the passed binding annotation.
|
public java.util.Collection<Binding> wire(Bound bound, BindingContext context, java.lang.reflect.Field field) throws java.lang.IllegalAccessException, java.beans.IntrospectionException
WiringHarnesswire in interface WiringHarness<Bound,java.lang.reflect.Field>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.Binding objects represent the wirings performed by this harness.java.lang.IllegalAccessExceptionjava.beans.IntrospectionException