类 ArffTable

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class ArffTable extends JTable
A specialized JTable for the Arff-Viewer.
版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • ArffTable

      public ArffTable()
      initializes with no model
    • ArffTable

      public ArffTable(TableModel model)
      initializes with the given model
      参数:
      model - the model to use
  • 方法详细资料

    • setModel

      public void setModel(TableModel model)
      sets the new model
      覆盖:
      setModel 在类中 JTable
      参数:
      model - the model to use
    • getCellEditor

      public TableCellEditor getCellEditor(int row, int column)
      returns the cell editor for the given cell
      覆盖:
      getCellEditor 在类中 JTable
      参数:
      row - the row index
      column - the column index
      返回:
      the cell editor
    • isReadOnly

      public boolean isReadOnly()
      returns whether the model is read-only
      返回:
      true if model is read-only
    • setReadOnly

      public void setReadOnly(boolean value)
      sets whether the model is read-only
      参数:
      value - if true the model is set to read-only
    • getPlainColumnName

      public String getPlainColumnName(int columnIndex)
      returns the basically the attribute name of the column and not the HTML column name via getColumnName(int)
      参数:
      columnIndex - the column index
      返回:
      the plain name
    • getStringSelection

      public StringSelection getStringSelection()
      returns the selected content in a StringSelection that can be copied to the clipboard and used in Excel, if nothing is selected the whole table is copied to the clipboard
      返回:
      the current selection
    • setSearchString

      public void setSearchString(String searchString)
      sets the search string to look for in the table, NULL or "" disables the search
      参数:
      searchString - the search string to use
    • getSearchString

      public String getSearchString()
      returns the search string, can be NULL if no search string is set
      返回:
      the current search string
    • setSelectedColumn

      public void setSelectedColumn(int index)
      sets the selected column
      参数:
      index - the column to select
    • tableChanged

      public void tableChanged(TableModelEvent e)
      This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.
      指定者:
      tableChanged 在接口中 TableModelListener
      覆盖:
      tableChanged 在类中 JTable
      参数:
      e - the table event
    • addChangeListener

      public void addChangeListener(ChangeListener l)
      Adds a ChangeListener to the panel
      参数:
      l - the listener to add
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
      Removes a ChangeListener from the panel
      参数:
      l - the listener to remove