Exemple #1
0
  /** @inheritDoc */
  @Override
  public void init(Context context, Component component) {
    super.init(context, component);
    // Obtain outgoing 'ServerMessage' for initial render.
    final ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
    serverMessage.addLibrary(SharedService.ECHOCOMPONENTS_SERVICE.getId());

    serverMessage.addLibrary(PLAINHTML_SYNC_SERVICE.getId());
  }
 public void storeInputProperty(
     Context context,
     Component component,
     String propertyName,
     int propertyIndex,
     Object newValue) {
   final ClientUpdateManager clientUpdateManager =
       (ClientUpdateManager) context.get(ClientUpdateManager.class);
   clientUpdateManager.setComponentProperty(component, propertyName, newValue);
 }
 /**
  * @see nextapp.echo.webcontainer.ComponentSynchronizePeer#init(nextapp.echo.app.util.Context,
  *     Component)
  */
 public void init(Context context, Component component) {
   super.init(context, component);
   ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
   serverMessage.addLibrary(ONLOAD_SERVICE.getId());
 }
 /**
  * {@inheritDoc}
  *
  * @see nextapp.echo.webcontainer.AbstractComponentSynchronizePeer#init
  */
 @Override
 public void init(final Context context, final Component component) {
   super.init(context, component);
   ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
   serverMessage.addLibrary(CommonService.JQUERY_SERVICE.getId());
 }
 /** {@inheritDoc} */
 @Override
 public void init(final Context context, final Component component) {
   super.init(context, component);
   final ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
   serverMessage.addLibrary(COMPONENT_NAME);
 }