Class SwingLinker

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
    void bind​(FieldReference<?> reference, FieldReference<?> target)
    Tries to add the given component stored in a FieldReference object to the target component.
    static void readEntry​(Entry<?> entry)
    Executes all 'init' methods defined in the Option annotations and tries to add the fields to their target components.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • readEntry

      public static void readEntry​(Entry<?> entry) throws java.lang.Exception
      Executes all 'init' methods defined in the Option annotations and tries to add the fields to their target components.
      Parameters:
      entry - the GUI entry
      Throws:
      java.lang.NullPointerException - if the given entry is null
      java.lang.Exception
      See Also:
      Option.target(), Option.init()
    • bind

      public void bind​(FieldReference<?> reference, FieldReference<?> target) throws java.lang.NullPointerException
      Tries to add the given component stored in a FieldReference object to the target component.
      Parameters:
      reference - the source reference
      target - the target reference
      Throws:
      java.lang.NullPointerException - if any of the provided arguments is null