Examples of broadcast()


Examples of org.exoplatform.webui.core.UIComponent.broadcast()

            UIComponent uiComp = event.getSource();
            UIGroupMembershipSelector uiSelector = uiComp.getParent();
            uiSelector.changeGroup(groupId);
            UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
            uiPermission.setRenderSibling(uiPermission.getClass());
            uiPermission.broadcast(event, Event.Phase.PROCESS);
            UIPopupWindow uiPopup = uiSelector.getParent();
            uiPopup.setShow(true);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);// TODO: Update relevant tab panes
        }
    }
View Full Code Here

Examples of org.exoplatform.webui.core.UIComponent.broadcast()

                uiPopup.setShow(true);
                return;
            }
            event.getRequestContext().addUIComponentToUpdateByAjax(uiPermission);

            uiPermission.broadcast(event, event.getExecutionPhase());
            uiPopup.setShow(false);

        }
    }
View Full Code Here

Examples of org.exoplatform.webui.core.UIComponent.broadcast()

                event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
                uiForm.broadcast(event, event.getExecutionPhase());
            } else {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);
                UIComponent uiParent = uiPopup.getParent();
                uiParent.broadcast(event, event.getExecutionPhase());
            }

        }
    }
View Full Code Here

Examples of org.exoplatform.webui.form.UIForm.broadcast()

            String membershipType = event.getRequestContext().getRequestParameter(OBJECTID);
            uiSelector.setMembership(uiMemebershipSelector.getCurrentGroup().getId(), membershipType);
            UIForm uiForm = uiSelector.getAncestorOfType(UIForm.class);
            if (uiForm != null) {
                // event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
                uiForm.broadcast(event, event.getExecutionPhase());
            }
        }
    }

}
View Full Code Here

Examples of org.exoplatform.webui.form.UIForm.broadcast()

            UIPopupWindow uiPopup = uiSelector.getParent();
            uiPopup.setShow(false);
            UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);
            if (uiForm != null) {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
                uiForm.broadcast(event, event.getExecutionPhase());
            } else {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);
                UIComponent uiParent = uiPopup.getParent();
                uiParent.broadcast(event, event.getExecutionPhase());
            }
View Full Code Here

Examples of org.exoplatform.webui.form.UIForm.broadcast()

            int currentPage = pageIterator.getCurrentPage();
            uiPermissions.removePermission(permission);
            UIContainer uiParent = uiPermissions.getParent();
            uiParent.setRenderedChild(UIListPermissionSelector.class);
            UIForm uiForm = uiPermissions.getAncestorOfType(UIForm.class);
            uiForm.broadcast(event, event.getExecutionPhase());
            while (currentPage > pageIterator.getAvailablePage()) {
                currentPage--;
            }
            pageIterator.setCurrentPage(currentPage);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
View Full Code Here

Examples of org.exoplatform.webui.form.UIForm.broadcast()

            if (uiPermission != null) {
                uiPermission.setRendered(false);
            }

            // julien: UIForm cannot be null otherwise the uiForm.findFirstComponentOfType would have thrown an NPE
            uiForm.broadcast(event, event.getExecutionPhase());
            // event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
            event.getRequestContext().addUIComponentToUpdateByAjax(uicom);
        }

    }
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.broadcast()

        String ename = String.format("%s @ %s", event.getRightClicked().getType().getName(),
          LocationUtil.toBlockCoords(event.getRightClicked().getLocation()));

        // save the entity's unique id
        UUID uid; match.toggleProtection(uid = event.getRightClicked().getUniqueId());
        match.broadcast(ChatColor.RED + ename + ChatColor.RESET + " is " +
          (match.isProtected(uid) ? "" : "not ") + "a protected entity");


        break;
View Full Code Here

Examples of org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster.broadcast()

                    public void run() {
                        try {
                            Thread.sleep(300);
                         
                          GeneralBroadcaster delayedBroadcaster = (GeneralBroadcaster) BroadcasterFactory.getDefault().lookup(GeneralBroadcaster.class, delayedBroadcasterName);
                          delayedBroadcaster.broadcast(message, resource);
                         
                 
                } catch (Exception e) {
                  logger.error(e.getMessage());
                }
View Full Code Here

Examples of org.prevayler.cluster.Node.broadcast()

    int numberOfMessages = 100;
    for (int i = 0; i < numberOfMessages; i++) {
      if (numberOfMessages % 2 == 0) {
        node.broadcast(new Integer(i));
      } else {
        node2.broadcast(new Integer(i));
      }
    }
    node2.shutdown();
    assertEquals(100, receivedMessages.size());
    for (int i = 0; i < numberOfMessages; i++) {
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.