程序包 weka.gui.sql

类 QueryPanel

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CaretListener, ConnectionListener

public class QueryPanel extends JPanel implements ConnectionListener, CaretListener
Represents a panel for entering an SQL query.
版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • HISTORY_NAME

      public static final String HISTORY_NAME
      the name of the history.
      另请参阅:
    • MAX_ROWS

      public static final String MAX_ROWS
      the name for the max rows in the history.
      另请参阅:
  • 构造器详细资料

    • QueryPanel

      public QueryPanel(JFrame parent)
      initializes the panel.
      参数:
      parent - the parent of this panel
  • 方法详细资料

    • setFocus

      public void setFocus()
      sets the focus in a designated control.
    • connectionChange

      public void connectionChange(ConnectionEvent evt)
      This method gets called when the connection is either established or disconnected.
      指定者:
      connectionChange 在接口中 ConnectionListener
      参数:
      evt - the event
    • execute

      public void execute()
      executes the current query.
    • clear

      public void clear()
      clears the textarea.
    • setHistory

      public void setHistory(DefaultListModel history)
      sets the local history to the given one.
      参数:
      history - the history to use
    • getHistory

      public DefaultListModel getHistory()
      returns the history.
      返回:
      the current history
    • showHistory

      public void showHistory()
      displays the query history.
    • setQuery

      public void setQuery(String query)
      sets the query in the textarea.
      参数:
      query - the query to display
    • getQuery

      public String getQuery()
      returns the currently displayed query.
      返回:
      the query
    • setMaxRows

      public void setMaxRows(int rows)
      sets the maximum number of rows to display. 0 means unlimited.
      参数:
      rows - the maximum number of rows
    • getMaxRows

      public int getMaxRows()
      returns the current value for the maximum number of rows. 0 means unlimited.
      返回:
      the maximum number of rows
    • addQueryExecuteListener

      public void addQueryExecuteListener(QueryExecuteListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeQueryExecuteListener

      public void removeQueryExecuteListener(QueryExecuteListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • addHistoryChangedListener

      public void addHistoryChangedListener(HistoryChangedListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeHistoryChangedListener

      public void removeHistoryChangedListener(HistoryChangedListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • caretUpdate

      public void caretUpdate(CaretEvent event)
      Called when the caret position is updated.
      指定者:
      caretUpdate 在接口中 CaretListener
      参数:
      event - the event