Module org.autogui

Annotation Interface GuiInitTableColumnString


public @interface GuiInitTableColumnString
initial settings for a column of string
     @GuiIncluded
     public class MyApp {
          public List<MyElem> getMyTable() { ... }
     }

     @GuiIncluded
     public class MyElem {
         @GuiIncluded
         public void setColumn1(String s) { ...} // Column 1 is editable

         @GuiIncluded
         @GuiInits(tableColumn = @GuiInitTableColumnString(editFinishByEnterAndKey=true))
         public String getColumn1() { ... }  //To finish editing the column, users will need to type Enter+Alt or Option key,
                                             // and typing the Enter key will insert a new-line.
     }
 
Since:
1.8
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • editFinishByEnterAndKey

      boolean editFinishByEnterAndKey
      Returns:
      if true, users need to type "Enter + Alt or Option key" for finishing editing in the text-field of the column, and typing the single Enter key insert a new-line. This is useful for multiline texts in the column. Default is false; the attribute swaps the meaning, as for false, users need to type a single "Enter key" for finishing editing, and "Enter + Alt or Option key" for inserting a new-line.
      Default:
      false