Package com.palantir.ptoss.cinch.swing
Class PasswordEditorWiringHarness
- java.lang.Object
-
- com.palantir.ptoss.cinch.swing.PasswordEditorWiringHarness
-
- All Implemented Interfaces:
WiringHarness<Bound,java.lang.reflect.Field>
public class PasswordEditorWiringHarness extends java.lang.Object implements WiringHarness<Bound,java.lang.reflect.Field>
-
-
Constructor Summary
Constructors Constructor Description PasswordEditorWiringHarness()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<Binding>
bindJPasswordField(BindableModel model, javax.swing.JPasswordField pwdField, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
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.
-
-
-
Method Detail
-
wire
public java.util.Collection<Binding> wire(Bound bound, BindingContext context, java.lang.reflect.Field field) throws java.lang.IllegalAccessException, java.beans.IntrospectionException
Description copied from interface:WiringHarness
Performs the wiring of a specific component based on the passed binding annotation.- Specified by:
wire
in interfaceWiringHarness<Bound,java.lang.reflect.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
Binding
objects represent the wirings performed by this harness. - Throws:
java.lang.IllegalAccessException
java.beans.IntrospectionException
-
bindJPasswordField
public static java.util.Collection<Binding> bindJPasswordField(BindableModel model, javax.swing.JPasswordField pwdField, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
-
-