|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<LocatorTypeStrategy>
com.smartgwt.client.types.LocatorTypeStrategy
public enum LocatorTypeStrategy
When attempting to identify a component from within a list of possible candidates as described
com.smartgwt.client..LocatorStrategy, 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:
com.smartgwt.client..Class#isFrameworkClass, does the core
framework superclass match?role match?com.smartgwt.client..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 stratgy
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:
| Enum Constant Summary | |
|---|---|
CLASS
Match by class if possible |
|
NONE
Don't attempt to compare type in any way |
|
ROLE
Ignore class altogether and attempt to match by role |
|
SCCLASS
Ignore specific class and match by the Smart GWT framework superclass. |
|
| Method Summary | |
|---|---|
String |
getValue()
|
static LocatorTypeStrategy |
valueOf(String name)
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LocatorTypeStrategy CLASS
public static final LocatorTypeStrategy SCCLASS
public static final LocatorTypeStrategy ROLE
public static final LocatorTypeStrategy NONE
| Method Detail |
|---|
public static LocatorTypeStrategy[] values()
for (LocatorTypeStrategy c : LocatorTypeStrategy.values()) System.out.println(c);
public static LocatorTypeStrategy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getValue()
getValue in interface ValueEnum
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||