Examples of createEvent()


Examples of javax.microedition.pim.EventList.createEvent()

            } else {
                eventList = (EventList) PIM.getInstance().openPIMList( PIM.EVENT_LIST, PIM.READ_WRITE );
            }

            if( _event == null )
                _event = eventList.createEvent();

            if( _event.countValues( Event.LOCATION ) > 0 ) {
                if( location.length() > 0 ) {
                    _event.setString( Event.LOCATION, 0, Event.ATTR_NONE, location );
                } else {
View Full Code Here

Examples of org.apache.cocoon.caching.validity.EventFactory.createEvent()

        EventFactory factory = (EventFactory) m_types.get(eventType);
        if (factory == null) {
            throw new ProcessingException("No such type of event: " + eventType);
        }
        try {
            m_event = factory.createEvent(par);
        } catch (ParameterException e) {
            final String message = "Failure creating Event";
            throw new ProcessingException(message,e);
        }
       
View Full Code Here

Examples of org.apache.cocoon.portal.event.ConvertableEventFactory.createEvent()

        ConvertableEventFactory factory = null;
        ConvertableEvent event;
        try {
            selector = (ServiceSelector) this.manager.lookup(ConvertableEventFactory.ROLE + "Selector");
            factory = (ConvertableEventFactory) selector.select(factoryName);
            event = factory.createEvent(service, eventData);
        } catch (ServiceException ce) {
            if (getLogger().isErrorEnabled()) {
                getLogger().error("Unable to create event for " + factoryName +
                    " using " + eventData);
            }
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.events.WefFactory.createEvent()

        throws SoapFault
    {
        Resource advertiser = getResource();
       
        WefFactory factory = createWefFactory();
        ManagementEvent event = factory.createEvent();
       
        event.addExtendedElement(payload);

        Component source = factory.createComponent();
        source.setName(WefConstants.SOURCE_COMP_QNAME);
View Full Code Here

Examples of org.encog.ml.bayesian.BayesianNetwork.createEvent()

 
  public double probabilitySpam(String m) {
    List<String> words = separateSpaces(m);
   
    BayesianNetwork network = new BayesianNetwork();
    BayesianEvent spamEvent = network.createEvent("spam");
   
    int index = 0;
    for( String word: words) {
      BayesianEvent event = network.createEvent(word+index);
      network.createDependency(spamEvent, event);
View Full Code Here

Examples of org.exoplatform.portal.webui.application.UIPortlet.createEvent()

      {
         UIPortal uiPortal = event.getSource();
         String portletId = event.getRequestContext().getRequestParameter("portletId");
         UIPortlet uiPortlet = uiPortal.findComponentById(portletId);
         WebuiRequestContext context = event.getRequestContext();
         uiPortlet.createEvent("ChangeWindowState", event.getExecutionPhase(), context).broadcast();
      }
   }

   public static class AccountSettingsActionListener extends EventListener<UIPortal>
   {
View Full Code Here

Examples of org.exoplatform.portal.webui.portal.UIPortalComposer.createEvent()

            UIConfirmation uiConfirmation = uiEditInlineWorkspace.getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();

            UIPortalComposer uiPortalComposer = uiEditInlineWorkspace.getChild(UIPortalComposer.class);
            Event<UIComponent> abortEvent = uiPortalComposer.createEvent("Abort", event.getExecutionPhase(),
                    event.getRequestContext());
            abortEvent.broadcast();
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIMaskWorkspace.createEvent()

            uiPage.setAccessPermissions(page.getAccessPermissions());
            uiPage.setEditPermission(page.getEditPermission());
            uiPage.setTitle(page.getTitle());
            uiPage.setShowMaxWindow(page.isShowMaxWindow());

            uiMaskWS.createEvent("Close", Phase.DECODE, pcontext).broadcast();
            pcontext.getJavascriptManager().require("SHARED/portalComposer", "portalComposer")
                    .addScripts("portalComposer.toggleSaveButton();");
        }

        protected void findAllPortlet(List<UIPortlet> list, UIContainer uiContainer) {
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIMaskWorkspace.createEvent()

            UIFormInputThemeSelector uiThemeSelector = uiPortletForm.getChild(UIFormInputThemeSelector.class);
            uiPortlet.putSuitedTheme(null, uiThemeSelector.getChild(UIItemThemeSelector.class).getSelectedTheme());
            uiPortletForm.savePreferences();
            UIMaskWorkspace uiMaskWorkspace = uiPortletForm.getParent();
            PortalRequestContext pcontext = (PortalRequestContext) event.getRequestContext();
            uiMaskWorkspace.createEvent("Close", Phase.DECODE, pcontext).broadcast();
            if (uiPortletForm.hasEditMode()) {
                uiPortlet.setCurrentPortletMode(PortletMode.VIEW);
            }

            String width = uiPortletForm.getUIStringInput("width").getValue();
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIMaskWorkspace.createEvent()

            UIContainer uiContainer = uiForm.getContainer();
            uiForm.invokeSetBindingBean(uiContainer);
            PortalRequestContext pcontext = (PortalRequestContext) event.getRequestContext();

            UIMaskWorkspace uiMaskWorkspace = uiForm.getParent();
            uiMaskWorkspace.createEvent("Close", Phase.DECODE, pcontext).broadcast();

            UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            pcontext.getJavascriptManager().require("SHARED/portalComposer", "portalComposer")
                    .addScripts("portalComposer.toggleSaveButton();");
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.