| com.jeta.open.rules.JETARule
All known Subclasses: com.jeta.swingbuilder.gui.components.GridSizePanel, com.jeta.swingbuilder.gui.beanmgr.BeanDefinitionValidator, com.jeta.swingbuilder.gui.project.ProjectSettingsRule, com.jeta.swingbuilder.gui.components.line.CompoundLineValidator, com.jeta.swingbuilder.gui.images.ImagePropertiesValidator, com.jeta.open.rules.AbstractRule, com.jeta.open.rules.EmptyRule,
JETARule | public interface JETARule (Code) | | This interface defines a generic rule for an application. Rules are generally
used to check for valid inputs on GUIs. We provide a generic interface
because the Rule system needs to be flexible. For example, rules can stand on
their own or be composed of multiple sub-rules.
author: Jeff Tassin |
check | public RuleResult check(Object[] params)(Code) | | Runs the rule. If the rule succeeds, then null is returned. Otherwise an
error message is returned.
Parameters: params - an array of parameters needed by this rule. The rule definesthe parameters that it needs. null or RuleResult.SUCCESS if the rule passes. Otherwise, returna RuleResult with a failed error code and an option error message |
|
|