org.wicketstuff.push.cometd
Class CometdTarget

java.lang.Object
  extended by org.wicketstuff.push.cometd.CometdTarget
All Implemented Interfaces:
IChannelTarget

public class CometdTarget
extends java.lang.Object
implements IChannelTarget

This merthod is a wrapper of AjaxRequestTarget on IChannelTarget used in CometdBehavior.

Author:
Vincent Demay

Constructor Summary
CometdTarget(org.apache.wicket.ajax.AjaxRequestTarget target)
           
 
Method Summary
 void addComponent(org.apache.wicket.Component component)
          Adds a component to the list of components to be rendered
 void addComponent(org.apache.wicket.Component component, java.lang.String markupId)
          Adds a component to the list of components to be rendered
 void appendJavascript(java.lang.String javascript)
          Adds javascript that will be evaluated on the client side after components are replaced
 void focusComponent(org.apache.wicket.Component component)
          Sets the focus in the browser to the given component.
 void prependJavascript(java.lang.String javascript)
          Adds javascript that will be evaluated on the client side before components are replaced
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CometdTarget

public CometdTarget(org.apache.wicket.ajax.AjaxRequestTarget target)
Method Detail

addComponent

public void addComponent(org.apache.wicket.Component component)
Description copied from interface: IChannelTarget
Adds a component to the list of components to be rendered

Specified by:
addComponent in interface IChannelTarget
Parameters:
component - component to be rendered

addComponent

public void addComponent(org.apache.wicket.Component component,
                         java.lang.String markupId)
Description copied from interface: IChannelTarget
Adds a component to the list of components to be rendered

Specified by:
addComponent in interface IChannelTarget
Parameters:
component - component to be rendered
markupId - id of client-side dom element that will be updated

appendJavascript

public void appendJavascript(java.lang.String javascript)
Description copied from interface: IChannelTarget
Adds javascript that will be evaluated on the client side after components are replaced

Specified by:
appendJavascript in interface IChannelTarget

focusComponent

public void focusComponent(org.apache.wicket.Component component)
Description copied from interface: IChannelTarget
Sets the focus in the browser to the given component. The markup id must be set.

Specified by:
focusComponent in interface IChannelTarget
Parameters:
component - The component to get the focus.

prependJavascript

public void prependJavascript(java.lang.String javascript)
Description copied from interface: IChannelTarget
Adds javascript that will be evaluated on the client side before components are replaced

Specified by:
prependJavascript in interface IChannelTarget


Copyright © 2010. All Rights Reserved.