Examples of ClientComponent


Examples of com.liferay.faces.util.component.ClientComponent

      responseWriter.write(StringPool.FORWARD_SLASH);
    }

    if (ajax) {

      ClientComponent clientComponent = (ClientComponent) uiComponent;
      String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
      String clientKey = clientComponent.getClientKey();

      if (clientKey == null) {
        clientKey = clientVarName;
      }
View Full Code Here

Examples of com.liferay.faces.util.component.ClientComponent

   */
  public static void encodeJavaScriptMain(FacesContext facesContext, UIComponent uiComponent, String alloyClassName,
    AlloyRenderer alloyRenderer) throws IOException {

    ResponseWriter responseWriter = facesContext.getResponseWriter();
    ClientComponent clientComponent = (ClientComponent) uiComponent;
    String clientKey = clientComponent.getClientKey();

    if (clientKey == null) {
      clientKey = ComponentUtil.getClientVarName(facesContext, clientComponent);
    }

View Full Code Here

Examples of com.liferay.faces.util.component.ClientComponent

    if ((tooltip.getFor() == null) && facesContext.isProjectStage(ProjectStage.Development)) {
      logger.error("The 'for' attribute is required for alloy:outputTooltip");
    }

    ClientComponent clientComponent = (ClientComponent) uiComponent;
    String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
    String clientKey = clientComponent.getClientKey();

    if (clientKey == null) {
      clientKey = clientVarName;
    }
View Full Code Here

Examples of com.liferay.faces.util.component.ClientComponent

  public void encodeJavaScriptCustom(FacesContext facesContext, UIComponent uiComponent) throws IOException {

    ResponseWriter responseWriter = facesContext.getResponseWriter();

    Dialog dialog = (Dialog) uiComponent;
    ClientComponent clientComponent = (ClientComponent) uiComponent;
    String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
    String clientKey = clientComponent.getClientKey();

    if (clientKey == null) {
      clientKey = clientVarName;
    }
View Full Code Here

Examples of com.liferay.faces.util.component.ClientComponent

  public void encodeJavaScriptCustom(FacesContext facesContext, UIComponent uiComponent) throws IOException {

    ResponseWriter responseWriter = facesContext.getResponseWriter();

    Popover popover = (Popover) uiComponent;
    ClientComponent clientComponent = (ClientComponent) uiComponent;
    String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
    String clientKey = clientComponent.getClientKey();

    if (clientKey == null) {
      clientKey = clientVarName;
    }
View Full Code Here

Examples of com.liferay.faces.util.component.ClientComponent

    // If the developer has specified a server-side filtering, then
    if (isServerFilteringEnabled(uiComponent)) {

      ResponseWriter responseWriter = facesContext.getResponseWriter();
      ClientComponent clientComponent = (ClientComponent) uiComponent;
      String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
      String clientKey = clientComponent.getClientKey();

      if (clientKey == null) {
        clientKey = clientVarName;
      }
View Full Code Here

Examples of com.liferay.faces.util.component.ClientComponent

            }
          }
        }

        // Build up a fragment of JavaScript that gets the client-side component.
        ClientComponent clientComponent = (ClientComponent) uiComponent;
        String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
        String clientKey = clientComponent.getClientKey();

        if (clientKey == null) {
          clientKey = clientVarName;
        }
View Full Code Here

Examples of org.terasology.network.ClientComponent

    }

    @Command(shortDescription = "Reduce the player's health to zero", runOnServer = true)
    public void kill(EntityRef client) {
        ClientComponent clientComp = client.getComponent(ClientComponent.class);
        HealthComponent health = clientComp.character.getComponent(HealthComponent.class);
        if (health != null) {
            clientComp.character.send(new DestroyEvent(clientComp.character, EntityRef.NULL, EngineDamageTypes.DIRECT.get()));
        }
    }
View Full Code Here

Examples of org.terasology.network.ClientComponent

        }
    }

    @Command(shortDescription = "Teleports you to a location", runOnServer = true)
    public void teleport(@CommandParam("x") float x, @CommandParam("y") float y, @CommandParam("z") float z, EntityRef client) {
        ClientComponent clientComp = client.getComponent(ClientComponent.class);
        LocationComponent location = clientComp.character.getComponent(LocationComponent.class);
        if (location != null) {
            location.setWorldPosition(new Vector3f(x, y, z));
            clientComp.character.saveComponent(location);
        }
View Full Code Here

Examples of org.terasology.network.ClientComponent

            if (value.startsWith("\"") && value.endsWith("\"")) {
                params.set(i, value.substring(1, value.length() - 1));
            }
        }

        ClientComponent cc = callingClient.getComponent(ClientComponent.class);
        if (cc.local) {
            localCommandHistory.add(command);
        }

        return execute(commandName, params, callingClient);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.