Package com.palantir.ptoss.cinch.swing
Class JToggleButtonWiringHarness
java.lang.Object
com.palantir.ptoss.cinch.swing.JToggleButtonWiringHarness
- All Implemented Interfaces:
WiringHarness<Bound,Field>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BindingbindJToggleButtonToBoolean(String value, Mutator mutator, AbstractButton button) static BindingbindJToggleButtonToEnum(String value, Class<?> enumType, Mutator mutator, AbstractButton button) wire(Bound bound, BindingContext context, Field field) Performs the wiring of a specific component based on the passed binding annotation.
-
Constructor Details
-
JToggleButtonWiringHarness
public JToggleButtonWiringHarness()
-
-
Method Details
-
wire
public Collection<Binding> wire(Bound 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 interfaceWiringHarness<Bound,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:
IllegalAccessExceptionIntrospectionException
-
bindJToggleButtonToBoolean
public static Binding bindJToggleButtonToBoolean(String value, Mutator mutator, AbstractButton button) -
bindJToggleButtonToEnum
public static Binding bindJToggleButtonToEnum(String value, Class<?> enumType, Mutator mutator, AbstractButton button)
-