Пример #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());
  }
Пример #2
0
 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);
 }
Пример #3
0
 /**
  * @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());
 }
Пример #4
0
 /**
  * {@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());
 }
Пример #5
0
 /** {@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);
 }