Class AbstractCRUDTable.Column<C>

java.lang.Object
com.inductiveautomation.ignition.client.util.gui.AbstractCRUDTable.Column<C>
Direct Known Subclasses:
TermTable.KeyColumn, TermTable.ValueColumn
Enclosing class:
AbstractCRUDTable<T>

protected abstract class AbstractCRUDTable.Column<C> extends Object
  • Field Details

    • type

      protected Class<C> type
  • Constructor Details

    • Column

      public Column(Class<C> type, String headerKey)
      Parameters:
      type - The type of the column
      headerKey - A resource bundle key for the column header
    • Column

      public Column(Class<C> type, String header, boolean doKeyLookup)
  • Method Details

    • getHeader

      public String getHeader()
    • getWidth

      public int getWidth()
    • setHeader

      public void setHeader(String header)
    • getValue

      public abstract C getValue(T item)
      The main function of the Column class: to retrieve the proper value from the object
    • getType

      public Class<C> getType()
    • isEditable

      public boolean isEditable()
      Override this if you want your column to be editable
    • onCellEdited

      public void onCellEdited(T item, C value)
      If your column is editable, implement this.
    • isLoadOptions

      public boolean isLoadOptions()
      If this column should be editable by a dropdown, override this to return true and also override loadOptions()
    • loadOptions

      public List<C> loadOptions() throws Exception
      If you've overridden isLoadOptions(), then you also need to override this to proved the options. will be run on a background thread.
      Throws:
      Exception
    • isVisible

      public boolean isVisible()
      If you change this, you'll need to call updateColumns()