java.lang.Object
org.proto4j.swing.core.SwingLinker
public class SwingLinker
extends java.lang.Object
This class is the next level handler in the generation process of every
gui. It is called after the
SwingReader and should add the given
components to their parent component.- Since:
- 1.0
- See Also:
SwingReader
-
Constructor Summary
Constructors Constructor Description SwingLinker() -
Method Summary
Modifier and Type Method Description voidbind(FieldReference<?> reference, FieldReference<?> target)Tries to add the given component stored in aFieldReferenceobject to the target component.static voidreadEntry(Entry<?> entry)Executes all 'init' methods defined in theOptionannotations and tries to add the fields to their target components.
-
Constructor Details
-
SwingLinker
public SwingLinker()
-
-
Method Details
-
readEntry
Executes all 'init' methods defined in theOptionannotations and tries to add the fields to their target components.- Parameters:
entry- the GUI entry- Throws:
java.lang.NullPointerException- if the given entry isnulljava.lang.Exception- See Also:
Option.target(),Option.init()
-
bind
public void bind(FieldReference<?> reference, FieldReference<?> target) throws java.lang.NullPointerExceptionTries to add the given component stored in aFieldReferenceobject to the target component.- Parameters:
reference- the source referencetarget- the target reference- Throws:
java.lang.NullPointerException- if any of the provided arguments isnull
-