Class AbstractFilterQueryJPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Comparable<IPanel>, Accessible, IPanel
Direct Known Subclasses:
FilterQueryJPanel, TableFilterQueryJPanel

public abstract class AbstractFilterQueryJPanel extends AbstractPanel implements Serializable
This abstract class represents the common components of the FilterQuery panels
Author:
Pablo Piqueras Bartolomé (p_queras@hotmail.com)
See Also:
  • Field Details

  • Constructor Details

    • AbstractFilterQueryJPanel

      public AbstractFilterQueryJPanel(String _title)
      This is the default constructor
    • AbstractFilterQueryJPanel

      public AbstractFilterQueryJPanel()
      This is the default constructor
  • Method Details

    • initialize

      protected void initialize()
      This method initializes this
      Specified by:
      initialize in class AbstractPanel
    • getTopJPanel

      protected abstract JPanel getTopJPanel()
      This method initializes topJPanel
      Returns:
      javax.swing.JPanel
    • getBottomJPanel

      protected abstract JPanel getBottomJPanel()
      This method initializes bottomJPanel
      Returns:
      javax.swing.JPanel
    • getFieldsJLabel

      protected JLabel getFieldsJLabel()
      This method initializes fieldsJLabel
      Returns:
      javax.swing.JLabel
    • getValuesJList

      protected abstract JList getValuesJList()
      This method initializes valuesJList
      Returns:
      javax.swing.JList
    • getFieldsJPanel

      protected abstract JPanel getFieldsJPanel()
      This method initializes fieldsJPanel
      Returns:
      javax.swing.JPanel
    • getFieldsJScrollPane

      protected abstract JScrollPane getFieldsJScrollPane()
      This method initializes jScrollPane
      Returns:
      javax.swing.JScrollPane
    • getValuesJLabel

      protected JLabel getValuesJLabel()
      This method initializes valuesJLabel
      Returns:
      javax.swing.JLabel
    • getValuesJPanel

      protected abstract JPanel getValuesJPanel()
      This method initializes valuesJPanel
      Returns:
      javax.swing.JPanel
    • getValuesJScrollPane

      protected abstract JScrollPane getValuesJScrollPane()
      This method initializes jScrollPane1
      Returns:
      javax.swing.JScrollPane
    • getFilterJScrollPane

      protected abstract JScrollPane getFilterJScrollPane()
      This method initializes filterJScrollPane
      Returns:
      javax.swing.JScrollPane
    • getTxtExpression

      protected abstract JTextArea getTxtExpression()
      This method initializes txtExpression
      Returns:
      javax.swing.JTextArea
    • putSymbol

      protected void putSymbol(String symbol)
      Adds a symbol to the filter expression.
      Parameters:
      symbol - symbol to add
    • getFieldsJTree

      protected JTree getFieldsJTree()
      This method initializes fieldsJTree
      Returns:
      org.gvsig.gui.beans.swing.jTree
    • insert

      protected static String insert(String base, int position, String graft)
      Inserts an string at a position of another one.
      Parameters:
      base - original string where will be inserted
      position - position at the string where will be inserted
      graft - string to insert
      Returns:
      the new string with the graft inserted in
    • getFilterButtonsJPanel

      protected JPanel getFilterButtonsJPanel()
      This method initializes filterButtonsJPanel
      Returns:
      javax.swing.JPanel
    • getAllOperatorSymbols

      protected Set<String> getAllOperatorSymbols()
      Returns a set with all symbols used as operators
      Returns:
      A set
    • resizeHeight

      public void resizeHeight(int new_Height)
      Sets new height to the 'topJPanel', (new Height must be bigger than default, else do nothing)
      Parameters:
      new_Height - New height
    • resizeWidth

      public abstract void resizeWidth(int new_Width)
      Sets the width to this JPanel
      Parameters:
      new_Width - New width
    • resize

      public void resize(int width, int height)
      Overrides:
      resize in class Component
    • resize

      public void resize(Dimension d)
      Overrides:
      resize in class Component
    • accept

      public void accept()
      Description copied from interface: IPanel

      Notifies to this panel of an accept action.

      Specified by:
      accept in interface IPanel
    • apply

      public void apply()
      Description copied from interface: IPanel

      Notifies this panel of an apply action.

      Specified by:
      apply in interface IPanel
    • cancel

      public void cancel()
      Description copied from interface: IPanel

      Notifies this panel of a cancel action.

      Specified by:
      cancel in interface IPanel
    • selected

      public void selected()
      Description copied from interface: IPanel

      Notifies this panel that has been selected at the AbstractPanelGroup

      Specified by:
      selected in interface IPanel