java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.factorypmi.designer.property.configurators.DBBrowseTable
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener

public class DBBrowseTable extends JPanel implements ListSelectionListener
See Also:
  • Field Details

  • Constructor Details

    • DBBrowseTable

      public DBBrowseTable(Component parent, boolean multiSelect)
  • Method Details

    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class JComponent
    • initComponents

      protected void initComponents()
    • setTableParams

      public void setTableParams(String dsn, DatabaseVendor dsnType, String tableName, boolean notify)
    • setKeyColumns

      public void setKeyColumns(String[] keyColumns)
    • setSelection

      public void setSelection(String dsn, DatabaseVendor dsnType, String tableName, String[] selectedColumns, String[] keyCols, String[] keyVals)
      This function should be used to re-initialize the tree to the state it was in when a query was generated. Note that the table selection changes caused by actions of this function are NOT reported. That is, no property change events will be thrown as the result of calling this function.
    • setSelectedColumns

      protected void setSelectedColumns(String[] selCols, String[] keyCols, String[] keyVals)
      Sets the selected rows to be selected. If row selection is allowed (keys present), the first row is selected.
    • setSelectedColumns

      public void setSelectedColumns(String[] selCols)
      Sets the selected rows to be selected. If row selection is allowed (keys present), the first row is selected.
    • getKeyValue

      public Object getKeyValue(String key)
      Returns the value for the column named 'key' given the current selection
    • getSelectedColumns

      public String[] getSelectedColumns()
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      This listens to the table's column model's list selection model
      Specified by:
      valueChanged in interface ListSelectionListener