Class QueryPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener

public class QueryPanel extends JPanel implements DocumentListener
A GUI panel to compose and execute selection expressions.
See Also:
Serialized Form
  • Constructor Details

    • QueryPanel

      public QueryPanel(Window owner, AttributeStore store, int period, String editField)
      Parameters:
      owner - the parent object of this panel
      store - the AttributeStore being queried
      period - the period of interest
      editField - the initial query string
    • QueryPanel

      public QueryPanel(Window owner, AttributeStore store, int period, boolean controls)
  • Method Details

    • getStore

      public AttributeStore getStore()
      Returns the attribute store bound to this query builder
      Returns:
      the AtrributeStore object
    • setPeriod

      public void setPeriod(int period)
      Set the period of interest.
      Parameters:
      period - the period of interest
    • getButtonPanel

      public JPanel getButtonPanel()
      Get the panel that contains the actions buttons. Use this to customize the behaviour of this widget.
      Returns:
      the JPanel object that contains extra buttons
    • getActions

      public Actions getActions()
    • getExpression

      public String getExpression()
    • setExpression

      public void setExpression(String exp)
    • changedUpdate

      public void changedUpdate(DocumentEvent e)
      Specified by:
      changedUpdate in interface DocumentListener
    • insertUpdate

      public void insertUpdate(DocumentEvent e)
      Specified by:
      insertUpdate in interface DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent e)
      Specified by:
      removeUpdate in interface DocumentListener