Package com.sun.javatest.exec
Class ET_DefaultControlFactory
- java.lang.Object
-
- com.sun.javatest.exec.ET_DefaultControlFactory
-
- All Implemented Interfaces:
ET_ControlFactory
public class ET_DefaultControlFactory extends java.lang.Object implements ET_ControlFactory
Default implementation of ET_ControlFactory interface. Subclasses might reuse it overriding necessary methods to provide their own controls.
All createXXX() methods construct new object only when invoked the first time. All consequent calls will return the instances previously created.
-
-
Constructor Summary
Constructors Constructor Description ET_DefaultControlFactory(javax.swing.JComponent parent, UIFactory uif, TestSuite ts, ContextManager cm, ExecModel execModel, Tool tool)
Initializes fields, does not create any instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ET_Control>
createCustomControls()
No custom controls by default.ET_FilterControl
createFilterControl()
Creates a control over filters.ET_HelpControl
createHelpControl()
Creates a control over help.ET_ReportControl
createReportControl()
Creates a report controls.ET_SessionControl
createSessionControl()
Creates a control over session.ET_ViewControl
createViewControl()
Creates a view controls.
-
-
-
Field Detail
-
parent
protected final javax.swing.JComponent parent
-
uif
protected final UIFactory uif
-
ts
protected final TestSuite ts
-
cm
protected final ContextManager cm
-
execModel
protected final ExecModel execModel
-
tool
protected final Tool tool
-
-
Constructor Detail
-
ET_DefaultControlFactory
public ET_DefaultControlFactory(javax.swing.JComponent parent, UIFactory uif, TestSuite ts, ContextManager cm, ExecModel execModel, Tool tool)
Initializes fields, does not create any instances.
-
-
Method Detail
-
createSessionControl
public ET_SessionControl createSessionControl() throws Session.Fault
Description copied from interface:ET_ControlFactory
Creates a control over session.- Specified by:
createSessionControl
in interfaceET_ControlFactory
- Returns:
- BasicSessionControl instance, unless overriden
- Throws:
Session.Fault
- if failed to create session
-
createFilterControl
public ET_FilterControl createFilterControl()
Description copied from interface:ET_ControlFactory
Creates a control over filters. Due to internal reasons the returned object must be instance of ET_FilterHandler. Sorry for the inconveniences caused.- Specified by:
createFilterControl
in interfaceET_ControlFactory
- Returns:
- ET_FilterHandler instance, unless overriden
-
createHelpControl
public ET_HelpControl createHelpControl()
Description copied from interface:ET_ControlFactory
Creates a control over help.- Specified by:
createHelpControl
in interfaceET_ControlFactory
- Returns:
- ET_DefaultHelpControl instance, unless overriden
-
createViewControl
public ET_ViewControl createViewControl()
Description copied from interface:ET_ControlFactory
Creates a view controls.- Specified by:
createViewControl
in interfaceET_ControlFactory
- Returns:
- ET_DefaultViewControl instance, unless overriden
-
createReportControl
public ET_ReportControl createReportControl()
Description copied from interface:ET_ControlFactory
Creates a report controls.- Specified by:
createReportControl
in interfaceET_ControlFactory
- Returns:
- ReportHandler instance, unless overriden
-
createCustomControls
public java.util.List<ET_Control> createCustomControls()
No custom controls by default.- Specified by:
createCustomControls
in interfaceET_ControlFactory
- Returns:
- null
-
-