Class SsDbComboBox2.AbstractBuilder<K, D, D2, T extends SsDbComboBox2.AbstractBuilder<K,D,D2,T>>

java.lang.Object
dev.visdb.seesaw.SsComboBox2.AbstractBuilder<K,D,D2,T>
dev.visdb.seesaw.SsDbComboBox2.AbstractBuilder<K,D,D2,T>
Type Parameters:
K -
D -
D2 -
T -
Direct Known Subclasses:
SsDbComboBox2.Builder
Enclosing class:
SsDbComboBox2<K,D,D2>

public abstract static class SsDbComboBox2.AbstractBuilder<K, D, D2, T extends SsDbComboBox2.AbstractBuilder<K,D,D2,T>> extends SsComboBox2.AbstractBuilder<K,D,D2,T>
To build a SsDbComboBox2 with the specified parameters.
  • Constructor Details

  • Method Details

    • connection

      public T connection(Connection val)
      Database connection to use to populate the combobox. If not set, use shared connection from lookup.
      Parameters:
      val -
      Returns:
    • query

      public T query(String val)
      query used to retrieve the values to display in the combo from the database.
      Parameters:
      val -
      Returns:
    • primaryKeyColumnName

      column name from the query to populate the Key field of the combobox list item.
      Parameters:
      val -
      Returns:
    • displayColumnName

      public T displayColumnName(String val)
      column name from the query to populate the displayValue field of the combobox list item.
      Parameters:
      val -
      Returns:
    • d2ColumnName

      public T d2ColumnName(String val)
      Sets the column name from the query to populate the <D2> field of the combobox list item. If null, the default, or blank then there is no <D2> Use this if there's extra data to store in the combobox list item.
      Parameters:
      val -
      Returns:
    • dateFormat

      public T dateFormat(String val)
      When a displayed column is of type date use this format to display it. For the pattern refer SimpleDateFormat in java.text package.
      Parameters:
      val -
      Returns: