Package org.netbeans.jemmy.drivers
Class LightSupportiveDriver
- java.lang.Object
-
- org.netbeans.jemmy.drivers.LightSupportiveDriver
-
- All Implemented Interfaces:
LightDriver
- Direct Known Subclasses:
AbstractScrollDriver,APIFocusDriver,ButtonMouseDriver,ChoiceDriver,DefaultFrameDriver,DefaultInternalFrameDriver,DefaultJMenuDriver,DefaultWindowDriver,EventDriver,JComboMouseDriver,JListMouseDriver,JSpinnerDriver,JSplitPaneDriver,JTabAPIDriver,JTableHeaderDriver,JTableMouseDriver,JTabMouseDriver,JTreeAPIDriver,JTreeMouseDriver,ListAPIDriver,MouseFocusDriver,QueueJMenuDriver,RobotDriver,TextAPIDriver,TextKeyboardDriver
public abstract class LightSupportiveDriver extends Object implements LightDriver
Allows to declare supported operator classes.
-
-
Constructor Summary
Constructors Constructor Description LightSupportiveDriver(String[] supported)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckSupported(ComponentOperator oper)ThrowsUnsupportedOperatorExceptionexception if parameter's class is not in list of supported classes.String[]getSupported()Returns array of operator classes which are supported by this driver.
-
-
-
Constructor Detail
-
LightSupportiveDriver
public LightSupportiveDriver(String[] supported)
Creates an instance.- Parameters:
supported- Array of operator classes which are supported by this driver.
-
-
Method Detail
-
checkSupported
public void checkSupported(ComponentOperator oper)
ThrowsUnsupportedOperatorExceptionexception if parameter's class is not in list of supported classes.- Parameters:
oper- Operator whose class should be checked.- Throws:
UnsupportedOperatorException
-
getSupported
public String[] getSupported()
Returns array of operator classes which are supported by this driver.- Specified by:
getSupportedin interfaceLightDriver- Returns:
- an array of supported operator classes' names.
-
-