@Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component, response); if (isStopped() == false) { setTimeout(response); } }
@Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component, response); if (isStopped() == false) { setTimeout(response); } }
private void internalExecuteAllTimerBehaviors(final Component component) { List<AbstractAjaxTimerBehavior> behaviors = component .getBehaviors(AbstractAjaxTimerBehavior.class); for (AbstractAjaxTimerBehavior timer : behaviors) { checkUsability(component, true); if (!timer.isStopped()) { if (log.isDebugEnabled()) { log.debug("Triggering AjaxSelfUpdatingTimerBehavior: {}", component.getClassRelativePath()); } executeBehavior(timer); } } }
private void internalExecuteAllTimerBehaviors(final Component component) { List<AbstractAjaxTimerBehavior> behaviors = component.getBehaviors(AbstractAjaxTimerBehavior.class); for (AbstractAjaxTimerBehavior timer : behaviors) { checkUsability(component, true); if (!timer.isStopped()) { if (log.isDebugEnabled()) { log.debug("Triggering AjaxSelfUpdatingTimerBehavior: {}", component.getClassRelativePath()); } executeBehavior(timer); } } }
private void internalExecuteAllTimerBehaviors(final Component component) { List<IBehavior> behaviors = BehaviorsUtil.getBehaviors(component, AbstractAjaxTimerBehavior.class); for (IBehavior b : behaviors) { AbstractAjaxTimerBehavior timer = (AbstractAjaxTimerBehavior) b; if (!timer.isStopped()) { if (log.isDebugEnabled()) { log.debug("Triggering AjaxSelfUpdatingTimerBehavior: {}", component.getClassRelativePath()); } checkUsability(component); executeBehavior(timer); } } }
/** * Decides whether the timer behavior should render its JavaScript to re-trigger it after the * update interval. * * @return {@code true} if the behavior is not stopped, it is enabled and still attached to any * component in the page or to the page itself */ protected boolean shouldTrigger() { return isStopped() == false && isEnabled(getComponent()) && (getComponent() instanceof Page || getComponent().findParent(Page.class) != null); }
/** * Decides whether the timer behavior should render its JavaScript to re-trigger it after the * update interval. * * @return {@code true} if the behavior is not stopped, it is enabled and still attached to any * component in the page or to the page itself */ protected boolean shouldTrigger() { return isStopped() == false && isEnabled(getComponent()) && (getComponent() instanceof Page || getComponent().findParent(Page.class) != null); }