ontopoly.utils
Class FocusOnLoadBehaviour

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by ontopoly.utils.FocusOnLoadBehaviour
All Implemented Interfaces:
java.io.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:
Serialized Form

Constructor Summary
FocusOnLoadBehaviour()
           
 
Method Summary
 void bind(org.apache.wicket.Component component)
           
 boolean isTemporary()
           
 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 Detail

FocusOnLoadBehaviour

public FocusOnLoadBehaviour()
Method Detail

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


Copyright © 2000-2012 Ontopia.