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_FilterControlcreateFilterControl()Creates a control over filters.ET_HelpControlcreateHelpControl()Creates a control over help.ET_ReportControlcreateReportControl()Creates a report controls.ET_SessionControlcreateSessionControl()Creates a control over session.ET_ViewControlcreateViewControl()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_ControlFactoryCreates a control over session.- Specified by:
createSessionControlin 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_ControlFactoryCreates a control over filters. Due to internal reasons the returned object must be instance of ET_FilterHandler. Sorry for the inconveniences caused.- Specified by:
createFilterControlin interfaceET_ControlFactory- Returns:
- ET_FilterHandler instance, unless overriden
-
createHelpControl
public ET_HelpControl createHelpControl()
Description copied from interface:ET_ControlFactoryCreates a control over help.- Specified by:
createHelpControlin interfaceET_ControlFactory- Returns:
- ET_DefaultHelpControl instance, unless overriden
-
createViewControl
public ET_ViewControl createViewControl()
Description copied from interface:ET_ControlFactoryCreates a view controls.- Specified by:
createViewControlin interfaceET_ControlFactory- Returns:
- ET_DefaultViewControl instance, unless overriden
-
createReportControl
public ET_ReportControl createReportControl()
Description copied from interface:ET_ControlFactoryCreates a report controls.- Specified by:
createReportControlin interfaceET_ControlFactory- Returns:
- ReportHandler instance, unless overriden
-
createCustomControls
public java.util.List<ET_Control> createCustomControls()
No custom controls by default.- Specified by:
createCustomControlsin interfaceET_ControlFactory- Returns:
- null
-
-