Class ET_FilterHandler

java.lang.Object
com.sun.javatest.exec.ET_FilterHandler
All Implemented Interfaces:
ET_Control, ET_FilterControl, HarnessAware, Session.Observer

public class ET_FilterHandler extends Object implements ET_FilterControl, Session.Observer
This class handles all the special filter juggling that exec tool needs to do.
  • Field Details

  • Constructor Details

  • Method Details

    • setHarness

      public void setHarness(Harness h)
      Specified by:
      setHarness in interface HarnessAware
    • getUsersFilters

      protected List<TestFilter> getUsersFilters()
      Subclasses may override this method to insert filters like TemplateFilter
      Returns:
      list of filters defined for the User's TestSuite, or null
    • getFilterMenu

      public JMenu getFilterMenu()
      Specified by:
      getFilterMenu in interface ET_FilterControl
      Returns:
      a menu of available filters
    • updateFilters

      protected void updateFilters()
    • getMenu

      public JMenu getMenu()
      Description copied from interface: ET_Control
      Returts menu to be added to the menu mar
      Specified by:
      getMenu in interface ET_Control
    • getFilterConfig

      public FilterConfig getFilterConfig()
    • save

      public void save(Map<String,String> m)
      Save internal state.
      Specified by:
      save in interface ET_Control
    • restore

      public void restore(Map<String,String> m)
      Description copied from interface: ET_Control
      Restores saved state from the map
      Specified by:
      restore in interface ET_Control
    • updateGUI

      public void updateGUI()
      Description copied from interface: ET_Control
      Invoked when some change has happened
      Specified by:
      updateGUI in interface ET_Control
    • getToolBarActionList

      public List<Action> getToolBarActionList()
      Description copied from interface: ET_Control
      Returns list of actions to be added to the tool bar
      Specified by:
      getToolBarActionList in interface ET_Control
    • dispose

      public void dispose()
      Specified by:
      dispose in interface ET_Control
    • updated

      public void updated(Session.Event ev)
      Description copied from interface: Session.Observer
      Invoked when state of config has changed
      Specified by:
      updated in interface Session.Observer
      Parameters:
      ev - - Event describing the change