コード例 #1
0
ファイル: PlainHtmlPeer.java プロジェクト: radekcz/echolot
  /** @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);
 }