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 java.lang.Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHeader()java.lang.Class<C>getType()abstract CgetValue(T item)The main function of the Column class: to retrieve the proper value from the objectintgetWidth()booleanisEditable()Override this if you want your column to be editablebooleanisLoadOptions()If this column should be editable by a dropdown, override this to return true and also overrideloadOptions()booleanisVisible()If you change this, you'll need to call updateColumns()java.util.List<C>loadOptions()If you've overriddenisLoadOptions(), then you also need to override this to proved the options.voidonCellEdited(T item, C value)If your column is editable, implement this.voidsetHeader(java.lang.String header)
-
-
-
Field Detail
-
header
protected java.lang.String header
-
type
protected java.lang.Class<C> type
-
-
Method Detail
-
getHeader
public java.lang.String getHeader()
-
getWidth
public int getWidth()
-
setHeader
public void setHeader(java.lang.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 java.lang.Class<C> getType()
-
isEditable
public boolean isEditable()
Override this if you want your column to be editable
-
isLoadOptions
public boolean isLoadOptions()
If this column should be editable by a dropdown, override this to return true and also overrideloadOptions()
-
loadOptions
public java.util.List<C> loadOptions() throws java.lang.Exception
If you've overriddenisLoadOptions(), then you also need to override this to proved the options. will be run on a background thread.- Throws:
java.lang.Exception
-
isVisible
public boolean isVisible()
If you change this, you'll need to call updateColumns()
-
-