|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.eclipse.actf.validation.core.AbstractValidationProcess
org.eclipse.actf.validation.core.FocusValidationProcess
public class FocusValidationProcess
FocusValidationProcess handles all focus validation processes.
Field Summary |
---|
Fields inherited from class org.eclipse.actf.validation.core.AbstractValidationProcess |
---|
context, contextCache, execPoint, lastNotification, notificationIncrement, notificationPercent, progress, ruleBase, workEstimate |
Constructor Summary | |
---|---|
protected |
FocusValidationProcess()
|
|
FocusValidationProcess(IRuleBase iRuleBase,
ExecutionPoint execPoint,
IValidationContext context)
|
Method Summary | |
---|---|
void |
cacheControlList(Composite composite,
List ctrlList)
|
protected void |
calculateWork(ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context)
visit the objects in the tree with the given target as the root. |
IValidationContext |
cloneContext(IRuleBase iRuleBase,
IValidationContext context)
|
boolean |
computeKeyboardTraversalList(Object target)
|
void |
getArrowTraversables(Control ctrl,
List ctrlList)
|
protected Control[] |
getChildren(Control control,
IGuiModel model)
|
protected boolean |
getEnabled(Control control,
IGuiModel model)
|
protected Control |
getFocusControl(Control control,
IGuiModel model)
|
protected int |
getStyle(Control control,
IGuiModel model)
|
void |
init()
perform any initialization necessary for the process. |
boolean |
isArrowTraversable(Control control,
IGuiModel model)
|
boolean |
isControlInFocusableList(Control ctrl)
|
boolean |
isNonfocusableControl(Control ctrl)
|
boolean |
listContainsString(String str,
List strList)
|
protected boolean |
pathMatchesExpression(Object target,
String regexp)
used by child classes within the model to determine if their path matches a reqular expression that identifies a rule base. |
void |
run()
launch the validation process |
protected boolean |
setFocus(Control control,
IGuiModel model)
|
protected boolean |
traverse(Control control,
IGuiModel model,
int traversal)
|
void |
validate(ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context)
validate the objects in the tree with the given target as the root. |
protected void |
validateChildren(Object target,
ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context,
boolean validate)
Validate the child components of the given target. |
void |
validateComponent(Object target,
ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context)
used to validate single components. |
protected void |
visitComponent(Object target,
ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context)
used to visit a single component. |
Methods inherited from class org.eclipse.actf.validation.core.AbstractValidationProcess |
---|
getExecutionPoint, getNotificationPercent, getProgress, getRuleBase, getValidationContext, getWorkEstimate, incrementProgress, initProgressEstimates, isTerminated, resetProgress, setExecutionPoint, setNotificationPercent, setProgress, setRuleBase, setValidationContext |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FocusValidationProcess(IRuleBase iRuleBase, ExecutionPoint execPoint, IValidationContext context)
protected FocusValidationProcess()
Method Detail |
---|
public void init() throws ValidationProcessException
IValidationProcess
ValidationProcessException
public void run() throws ValidationProcessException
IValidationProcess
ValidationProcessException
public void validate(ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
execPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
public void validateComponent(Object target, ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
target
- --
the target object to validateexecPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
protected void validateChildren(Object target, ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context, boolean validate) throws ValidationProcessException
target
- --
the target object whose children are to be validatedexecPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rulesvalidate
- --
validate (true) or visit only
ValidationProcessException
public IValidationContext cloneContext(IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
iRuleBase
- context
-
ValidationProcessException
protected boolean pathMatchesExpression(Object target, String regexp)
target
- -
target object we are trying to matchregexp
- -
the regular expression that identifies a rule base
protected void calculateWork(ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
execPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
protected void visitComponent(Object target, ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
target
- --
the target object to validateexecPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
public boolean computeKeyboardTraversalList(Object target) throws ValidationProcessException
ValidationProcessException
public void getArrowTraversables(Control ctrl, List ctrlList)
public void cacheControlList(Composite composite, List ctrlList)
public boolean listContainsString(String str, List strList)
public boolean isControlInFocusableList(Control ctrl)
public boolean isNonfocusableControl(Control ctrl)
public boolean isArrowTraversable(Control control, IGuiModel model)
protected int getStyle(Control control, IGuiModel model)
protected Control getFocusControl(Control control, IGuiModel model)
protected Control[] getChildren(Control control, IGuiModel model)
protected boolean getEnabled(Control control, IGuiModel model)
protected boolean setFocus(Control control, IGuiModel model)
protected boolean traverse(Control control, IGuiModel model, int traversal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |