Class FocusOnLoadBehaviour

java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
ontopoly.utils.FocusOnLoadBehaviour
All Implemented Interfaces:
Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class FocusOnLoadBehaviour extends org.apache.wicket.behavior.AbstractBehavior
Behaviour that uses JavaScript to assign focus to component on page load.
Author:
grove
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bind(org.apache.wicket.Component component)
     
    boolean
     
    void
    renderHead(org.apache.wicket.markup.html.IHeaderResponse iHeaderResponse)
     

    Methods inherited from class org.apache.wicket.behavior.AbstractBehavior

    afterRender, beforeRender, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, onComponentTag, onException, onRendered, rendered

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FocusOnLoadBehaviour

      public FocusOnLoadBehaviour()
  • Method Details

    • bind

      public void bind(org.apache.wicket.Component component)
      Specified by:
      bind in interface org.apache.wicket.behavior.IBehavior
      Overrides:
      bind in class org.apache.wicket.behavior.AbstractBehavior
    • renderHead

      public void renderHead(org.apache.wicket.markup.html.IHeaderResponse iHeaderResponse)
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
      Overrides:
      renderHead in class org.apache.wicket.behavior.AbstractBehavior
    • isTemporary

      public boolean isTemporary()
      Specified by:
      isTemporary in interface org.apache.wicket.behavior.IBehavior
      Overrides:
      isTemporary in class org.apache.wicket.behavior.AbstractBehavior