Module org.autogui
Package org.autogui

Annotation Interface GuiListSelectionUpdater


@Retention(RUNTIME) @Target(METHOD) public @interface GuiListSelectionUpdater
indicates that the method returns a list of elements or indices of elements which become selected elements of a target list after the execution of the method.
   @GuiIncluded public class Table {
         @GuiIncluded public List<E> list;
         ...
         @GuiListSelectionUpdater @GuiIncluded
         public List<E> select() { //the "list" property becomes the target by the element type E
             ...
         }
         @GuiListSelectionUpdater(index = true, target = "list") @GuiIncluded
         public List<Integer> selectRowIndices() { //the "list" property becomes the target by the target parameter
             ...
         }
         @GuiListSelectionUpdater(index = true, target = "list") @GuiIncluded
         public List<int[]> selectRowAndColumnsIndices() { //the "list" property becomes the target by the target parameter
             ...
         }

         @GuiListSelectionUpdater(index = true) @GuiIncluded
         public List<Integer> selectList() { //the "list" property becomes the target by the method name "selectList" -> "list"
             ...
         }

         @GuiIncluded public class E {
              ...
              @GuiListSelectionUpdater @GuiIncluded
              public List<E> select() {
                  ...
              }
         }
   }
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    specifying the updating target list by its name
  • Element Details

    • index

      boolean index
      Default:
      false
    • target

      String target
      specifying the updating target list by its name
      Returns:
      the name of a list property or the empty string for obtaining the name from the attached method name ("selectXyz" as "xyz")
      Since:
      1.5
      Default:
      ""