|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.form.flexible.impl.rules.FormItemDependencyRuleImpl
public abstract class FormItemDependencyRuleImpl
Description:
TODO: patrickb Class Description for FormItemDependencyRuleImpl
Initial Date: 09.02.2007
| Field Summary | |
|---|---|
static int |
CUSTOM
|
static int |
HIDE_ERROR
|
static int |
MAKE_INVISIBLE
|
static int |
MAKE_READONLY
|
static int |
MAKE_VISIBLE
|
static int |
MAKE_WRITABLE
|
static int |
RESET
|
| Constructor Summary | |
|---|---|
FormItemDependencyRuleImpl(FormItem triggerElement,
java.lang.Object triggerValue,
java.util.Set<FormItem> targets,
int type)
|
|
| Method Summary | |
|---|---|
boolean |
applyRule(FormItemContainer formLayout)
Checks if rule is triggered and executes the desired actions on the target elements. |
java.lang.String |
getIdentifier()
identify this rule without taking the target elements into account. |
java.util.Set<FormItem> |
getTargetElements()
|
FormItem |
getTriggerElement()
which form element triggers this rule |
java.lang.Object |
getTriggerValue()
which trigger value in the form element |
void |
setDependencyRuleApplayable(DependencyRuleApplayable applayable)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAKE_INVISIBLE
public static final int MAKE_VISIBLE
public static final int MAKE_READONLY
public static final int MAKE_WRITABLE
public static final int HIDE_ERROR
public static final int RESET
public static final int CUSTOM
| Constructor Detail |
|---|
public FormItemDependencyRuleImpl(FormItem triggerElement,
java.lang.Object triggerValue,
java.util.Set<FormItem> targets,
int type)
triggerElement - triggerValue - targets - | Method Detail |
|---|
public boolean applyRule(FormItemContainer formLayout)
FormItemDependencyRule
applyRule in interface FormItemDependencyRuleorg.olat.core.gui.components.form.flexible.api.FormItemDependencyRule#applyRule()public void setDependencyRuleApplayable(DependencyRuleApplayable applayable)
setDependencyRuleApplayable in interface FormItemDependencyRulepublic java.lang.String getIdentifier()
FormItemDependencyRule
getIdentifier in interface FormItemDependencyRuleorg.olat.core.gui.components.form.flexible.api.FormItemDependencyRule#getIdentifier()public java.util.Set<FormItem> getTargetElements()
getTargetElements in interface FormItemDependencyRuleorg.olat.core.gui.components.form.flexible.api.FormItemDependencyRule#getTargetElements()public FormItem getTriggerElement()
FormItemDependencyRule
getTriggerElement in interface FormItemDependencyRuleorg.olat.core.gui.components.form.flexible.api.FormItemDependencyRule#getTriggerElement()public java.lang.Object getTriggerValue()
FormItemDependencyRule
getTriggerValue in interface FormItemDependencyRuleorg.olat.core.gui.components.form.flexible.api.FormItemDependencyRule#getTriggerValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||