Examples of broadCast()


Examples of chatroom.server.dataclass.Room.broadcast()

        if (to != null) {
            Jid jid = new Jid(to);
            if (jid.isRoom()) {
                Room room = server.getRoom(jid.getRoom());
                User user = server.getUserByConnection(connection);
                room.broadcast(msg, user.getNicknameByRoom(room));
            }
        }
    }

    public void onSendMessage(String roomName, String nickname, String sender, String type, String msg) {
View Full Code Here

Examples of com.tommytony.war.Warzone.broadcast()

    if (zone == null) {
      return false;
    }

    zone.clearThieves();
    zone.broadcast("zone.battle.next", zone.getName());
   
    PartialZoneResetJob.setSenderToNotify(zone, this.getSender());
   
    zone.reinitialize();
   
View Full Code Here

Examples of javax.faces.component.UICommand.broadcast()

                    UICommand childCommand = (UICommand) child;
                    ActionEvent actionEvent = new ActionEvent(childCommand);
                    // if the immediate attribute is set than event should be broadcasted on the second phase APPLY_REQUEST_VALUES
                    // in other case it should be queued to be executed on
                    if(isImmediate()){
                        childCommand.broadcast(actionEvent);
                    } else {
                        actionEvent.queue();
                    }
                    break;
                }
View Full Code Here

Examples of javax.faces.component.UIComponent.broadcast()

            }

            setupEventContext(context);

            targetComponent.pushComponentToEL(context, null);
            targetComponent.broadcast(event);
        } finally {
            try {
                dataAdaptor.setRowKey(context, initialRowKey);
            } catch (Exception e) {
                LOGGER.error(e.getMessage(), e);
View Full Code Here

Examples of javax.faces.component.UIComponent.broadcast()

      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == ANY_PHASE_ORDINAL
          || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

Examples of javax.faces.component.UIComponent.broadcast()

      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == ANY_PHASE_ORDINAL
          || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

Examples of javax.faces.component.UIComponent.broadcast()

    while (havePhaseEvents) {
      try {
        event = (FacesEvent) phaseEventsQueue.remove();
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (AbortProcessingException e) {
          if (_log.isErrorEnabled()) {
            UIComponent component = event.getComponent();
            String id = null != component ? component
                .getClientId(context) : "";
View Full Code Here

Examples of javax.faces.component.UIComponent.broadcast()

      FacesEvent event = listiterator.next();
      int ordinal = event.getPhaseId().getOrdinal();
      if (ordinal == PhaseId.ANY_PHASE.getOrdinal() || ordinal == phaseIdOrdinal) {
        UIComponent source = event.getComponent();
        try {
          source.broadcast(event);
        } catch (FacesException e) {
          Throwable fe = e;
          while (fe != null) {
            if (fe instanceof AbortProcessingException) {
              if (LOG.isTraceEnabled()) {
View Full Code Here

Examples of javax.faces.component.behavior.Behavior.broadcast()

        try
        {
            if (event instanceof BehaviorEvent && event.getComponent() == this)
            {
                Behavior behavior = ((BehaviorEvent) event).getBehavior();
                behavior.broadcast((BehaviorEvent) event);
            }
           
            if (_facesListeners == null)
            {
                return;
View Full Code Here

Examples of javax.faces.component.behavior.Behavior.broadcast()

        }
       
        if (event instanceof BehaviorEvent && event.getComponent() == this)
        {
            Behavior behavior = ((BehaviorEvent) event).getBehavior();
            behavior.broadcast((BehaviorEvent) event);
        }

        if (_facesListeners == null)
        {
            return;
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.