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 protected
ET_FilterHandler(javax.swing.JComponent parent, ExecModel model, UIFactory uif)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
FilterConfig
getFilterConfig()
javax.swing.JMenu
getFilterMenu()
javax.swing.JMenu
getMenu()
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 TemplateFiltervoid
restore(java.util.Map<java.lang.String,java.lang.String> m)
Restores saved state from the mapvoid
save(java.util.Map<java.lang.String,java.lang.String> m)
Save internal state.void
setHarness(Harness h)
void
updated(Session.Event ev)
Invoked when state of config has changedprotected void
updateFilters()
void
updateGUI()
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:
setHarness
in 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:
getFilterMenu
in interfaceET_FilterControl
- Returns:
- a menu of available filters
-
updateFilters
protected void updateFilters()
-
getMenu
public javax.swing.JMenu getMenu()
Description copied from interface:ET_Control
Returts menu to be added to the menu mar- Specified by:
getMenu
in 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:
save
in interfaceET_Control
-
restore
public void restore(java.util.Map<java.lang.String,java.lang.String> m)
Description copied from interface:ET_Control
Restores saved state from the map- Specified by:
restore
in interfaceET_Control
-
updateGUI
public void updateGUI()
Description copied from interface:ET_Control
Invoked when some change has happened- Specified by:
updateGUI
in interfaceET_Control
-
getToolBarActionList
public java.util.List<javax.swing.Action> getToolBarActionList()
Description copied from interface:ET_Control
Returns list of actions to be added to the tool bar- Specified by:
getToolBarActionList
in interfaceET_Control
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceET_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 interfaceSession.Observer
- Parameters:
ev
- - Event describing the change
-
-