Package com.sun.javatest.exec
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 java.lang.Object implements ET_FilterControl, Session.Observer
This class handles all the special filter juggling that exec tool needs to do.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector<TestFilter>allFilters
-
Constructor Summary
Constructors Modifier Constructor Description protectedET_FilterHandler(javax.swing.JComponent parent, ExecModel model, UIFactory uif)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()FilterConfiggetFilterConfig()javax.swing.JMenugetFilterMenu()javax.swing.JMenugetMenu()Returts menu to be added to the menu marjava.util.List<javax.swing.Action>getToolBarActionList()Returns list of actions to be added to the tool barprotected java.util.List<TestFilter>getUsersFilters()Subclasses may override this method to insert filters like TemplateFiltervoidrestore(java.util.Map<java.lang.String,java.lang.String> m)Restores saved state from the mapvoidsave(java.util.Map<java.lang.String,java.lang.String> m)Save internal state.voidsetHarness(Harness h)voidupdated(Session.Event ev)Invoked when state of config has changedprotected voidupdateFilters()voidupdateGUI()Invoked when some change has happened
-
-
-
Field Detail
-
allFilters
protected java.util.Vector<TestFilter> allFilters
-
-
Method Detail
-
setHarness
public void setHarness(Harness h)
- Specified by:
setHarnessin interfaceHarnessAware
-
getUsersFilters
protected java.util.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 javax.swing.JMenu getFilterMenu()
- Specified by:
getFilterMenuin interfaceET_FilterControl- Returns:
- a menu of available filters
-
updateFilters
protected void updateFilters()
-
getMenu
public javax.swing.JMenu getMenu()
Description copied from interface:ET_ControlReturts menu to be added to the menu mar- Specified by:
getMenuin interfaceET_Control
-
getFilterConfig
public FilterConfig getFilterConfig()
-
save
public void save(java.util.Map<java.lang.String,java.lang.String> m)
Save internal state.- Specified by:
savein interfaceET_Control
-
restore
public void restore(java.util.Map<java.lang.String,java.lang.String> m)
Description copied from interface:ET_ControlRestores saved state from the map- Specified by:
restorein interfaceET_Control
-
updateGUI
public void updateGUI()
Description copied from interface:ET_ControlInvoked when some change has happened- Specified by:
updateGUIin interfaceET_Control
-
getToolBarActionList
public java.util.List<javax.swing.Action> getToolBarActionList()
Description copied from interface:ET_ControlReturns list of actions to be added to the tool bar- Specified by:
getToolBarActionListin interfaceET_Control
-
dispose
public void dispose()
- Specified by:
disposein interfaceET_Control
-
updated
public void updated(Session.Event ev)
Description copied from interface:Session.ObserverInvoked when state of config has changed- Specified by:
updatedin interfaceSession.Observer- Parameters:
ev- - Event describing the change
-
-