Package com.sun.javatest.exec
Class ET_DefaultControlFactory
java.lang.Object
com.sun.javatest.exec.ET_DefaultControlFactory
- All Implemented Interfaces:
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.
All createXXX() methods construct new object only when invoked the first time. All consequent calls will return the instances previously created.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionET_DefaultControlFactory
(JComponent parent, UIFactory uif, TestSuite ts, ContextManager cm, ExecModel execModel, Tool tool) Initializes fields, does not create any instances. -
Method Summary
Modifier and TypeMethodDescriptionNo custom controls by default.Creates a control over filters.Creates a control over help.Creates a report controls.Creates a control over session.Creates a view controls.
-
Field Details
-
parent
-
uif
-
ts
-
cm
-
execModel
-
tool
-
-
Constructor Details
-
ET_DefaultControlFactory
public ET_DefaultControlFactory(JComponent parent, UIFactory uif, TestSuite ts, ContextManager cm, ExecModel execModel, Tool tool) Initializes fields, does not create any instances.
-
-
Method Details
-
createSessionControl
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
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
Description copied from interface:ET_ControlFactory
Creates a control over help.- Specified by:
createHelpControl
in interfaceET_ControlFactory
- Returns:
- ET_DefaultHelpControl instance, unless overriden
-
createViewControl
Description copied from interface:ET_ControlFactory
Creates a view controls.- Specified by:
createViewControl
in interfaceET_ControlFactory
- Returns:
- ET_DefaultViewControl instance, unless overriden
-
createReportControl
Description copied from interface:ET_ControlFactory
Creates a report controls.- Specified by:
createReportControl
in interfaceET_ControlFactory
- Returns:
- ReportHandler instance, unless overriden
-
createCustomControls
No custom controls by default.- Specified by:
createCustomControls
in interfaceET_ControlFactory
- Returns:
- null
-