public interface IDataDriven
Modifier and Type | Field and Description |
---|---|
static int |
INCLUDE_ALL
Flag to include the top proxy and all decendents with data drivable commands.
|
static int |
INCLUDE_JUSTOBJECT
Flag to include only the one proxy as a data drivable command.
|
static int |
INCLUDE_SIBLINGS
Flag to include the top proxy and all immediate children with data drivable commands.
|
Modifier and Type | Method and Description |
---|---|
MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
MethodSpecification[] |
getDataDrivableCommands(int includeChildren)
Walks the proxy parent-child hierarchy and returns a command for each
control that is data drivable.
|
static final int INCLUDE_JUSTOBJECT
static final int INCLUDE_SIBLINGS
static final int INCLUDE_ALL
MethodSpecification[] getDataDrivableCommands(int includeChildren)
null
.
The reason that the proxies are left with doing the walk instead of it happening at a higher level is because they have a better understanding of the hierarchy they expose. Domains like HTML can take advantage of internal knowledge to allow them better control the traversal of interesting child proxies relative to data driving. By default this method will perform a standard traversal of the proxy hierarchy and does not need to be overridden unless necessary.
includeChildren
- Flag to control which child objects are considered
for data driving. Must be INCLUDE_JUSTOBJECT
,
INCLUDE_SIBLINGS
or INCLUDE_ALL
.getDataDrivableCommand()
MethodSpecification getDataDrivableCommand()
null
value is returned.getDataDrivableCommands(int)