Package com.smartgwt.client.types
Enum LocatorTypeStrategy
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<LocatorTypeStrategy>
,Constable
When attempting to identify a component from within a list of possible candidates as described
here
, if we are unable to find a unique match by name or title, we will use
the recorded "type" of the component to verify an apparent match. By default we check the following properties in order:
- Does the Class match?
- If this is not a framework class, does the core framework superclass match?
- Does the
role
match?
LocatorStrategy
,
if we are unable to match using the specified type strategy we continue to test against the remaining strategies in
order - so if a type strategy of "scClass" was specified but we were unable to find a match with the appropriate core
superclass, we will attempt to match by role. Possible values are:-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static LocatorTypeStrategy
Returns the enum constant of this type with the specified name.static LocatorTypeStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLASS
Match by class if possibleIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "Class". -
SCCLASS
Ignore specific class and match by the Smart GWT framework superclass.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "scClass". -
ROLE
Ignore class altogether and attempt to match by roleIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "role". -
NONE
Don't attempt to compare type in any wayIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "none".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-