public boolean getStatelessHint(Component component) { for (IValidator<T> validator : validators) { if (validator instanceof Behavior && ((Behavior)validator).getStatelessHint(component) == false) { return false; } } return super.getStatelessHint(component); }
@Override public boolean getStatelessHint(Component component) { for (IValidator<T> validator : validators) { if (validator instanceof Behavior && ((Behavior)validator).getStatelessHint(component) == false) { return false; } } return super.getStatelessHint(component); }
/** * {@inheritDoc} */ @Override public boolean getStatelessHint(final Component arg0) { boolean back = true; for (final Behavior behavior : behaviors_) back = back && behavior.getStatelessHint(arg0); return back; }
private void internalAdd(final Behavior behavior) { component.data_add(behavior); if (behavior.getStatelessHint(component) == false) { getBehaviorId(behavior); } }
private void internalAdd(final Behavior behavior) { component.data_add(behavior); if (behavior.getStatelessHint(component) == false) { getBehaviorId(behavior); } }
public boolean isStateless() { if (node instanceof Page) { return ((Page)node).isPageStateless(); } else if (node instanceof Component) { return ((Component)node).isStateless(); } else { Behavior behavior = (Behavior)node; Component parent = (Component)this.parent.node; return behavior.getStatelessHint(parent); } }
public boolean isStateless() { if (node instanceof Page) { return ((Page)node).isPageStateless(); } else if (node instanceof Component) { return ((Component)node).isStateless(); } else { Behavior behavior = (Behavior)node; Component parent = (Component)this.parent.node; return behavior.getStatelessHint(parent); } }
if (!showStatefulAndParentsOnly || !behavior.getStatelessHint(node)) children.add(new TreeNode(behavior, treeNode));
if (!showStatefulAndParentsOnly || !behavior.getStatelessHint(node)) children.add(new TreeNode(behavior, treeNode));
/** * Returns if the component is stateless or not. It checks the stateless hint if that is false * it returns directly false. If that is still true it checks all its behaviors if they can be * stateless. * * @return whether the component is stateless. */ public final boolean isStateless() { if ((isVisibleInHierarchy() && isEnabledInHierarchy()) == false && canCallListener() == false) { // the component is either invisible or disabled and it can't call listeners // then pretend the component is stateless return true; } if (!getStatelessHint()) { return false; } for (Behavior behavior : getBehaviors()) { if (!behavior.getStatelessHint(this)) { return false; } } return true; }
/** * Returns if the component is stateless or not. It checks the stateless hint if that is false * it returns directly false. If that is still true it checks all its behaviors if they can be * stateless. * * @return whether the component is stateless. */ public final boolean isStateless() { if ((isVisibleInHierarchy() && isEnabledInHierarchy()) == false && canCallListener() == false) { // the component is either invisible or disabled and it can't call listeners // then pretend the component is stateless return true; } if (!getStatelessHint()) { return false; } for (Behavior behavior : getBehaviors()) { if (!behavior.getStatelessHint(this)) { return false; } } return true; }
for (Behavior b : component.getBehaviors()) if (b.getStatelessHint(component) == false)
for (Behavior b : component.getBehaviors()) if (b.getStatelessHint(component) == false)