Examples of postEvent()


Examples of org.jdesktop.wonderland.client.input.InputManager.postEvent()

        // If an enter/exit event, then note the Entity we are entering or
        // exiting and repost the event.
        if (event instanceof EnterExitEvent) {
            if (((EnterExitEvent)event).isEnter() == true) {
                enterEntity = entity;
                inputManager.postEvent(new EnterExitEvent(entity, true));
            }
            else {
                Entity eventEntity = enterEntity;
                enterEntity = null;
                inputManager.postEvent(new EnterExitEvent(eventEntity, false));
View Full Code Here

Examples of org.jdesktop.wonderland.client.input.InputManager.postEvent()

                inputManager.postEvent(new EnterExitEvent(entity, true));
            }
            else {
                Entity eventEntity = enterEntity;
                enterEntity = null;
                inputManager.postEvent(new EnterExitEvent(eventEntity, false));
            }
            return;
        }

        // If an activation event, the simply repost the event
View Full Code Here

Examples of org.jdesktop.wonderland.client.input.InputManager.postEvent()

            return;
        }

        // If an activation event, the simply repost the event
        if (event instanceof ActivatedEvent) {
            inputManager.postEvent(new ActivatedEvent(entity));
            return;
        }

        // If a context event, then set the list of entities associated with
        // the context and re-post the event.
View Full Code Here

Examples of org.jdesktop.wonderland.client.input.InputManager.postEvent()

            // If there is an entity for the mouse event, then add the entity to
            // the list and pass a Selection event too.
            if (entity != null) {
                selectedEntityList.add(entity);
                LinkedList entityList = new LinkedList(selectedEntityList);
                inputManager.postEvent(new SelectionEvent(entityList));
            }

            // Pass the mouse event for now so we know where the event was
            // fired. We sent this even if the entity is null, so the context
            // menu can be cleared.
View Full Code Here

Examples of org.jdesktop.wonderland.client.input.InputManager.postEvent()

            // Pass the mouse event for now so we know where the event was
            // fired. We sent this even if the entity is null, so the context
            // menu can be cleared.
            LinkedList entityList = new LinkedList(selectedEntityList);
            MouseEvent mouseEvent = (MouseEvent) ((ContextEvent) event).getMouseEvent();
            inputManager.postEvent(event);
            return;
        }
    }

    /**
 
View Full Code Here

Examples of org.onemind.awtbridge.event.BridgeEventQueue.postEvent()

     * @param evt the event
     */
    protected final void postEvent(BridgeInputContext context, AWTEvent evt)
    {
        BridgeEventQueue q = (BridgeEventQueue) context.getEventQueue();
        q.postEvent(evt);
    }

    /**
     * Post an event with specific priority
     * @param context the context
View Full Code Here

Examples of org.onemind.awtbridge.event.BridgeEventQueue.postEvent()

     * @param priority the priority
     */
    protected final void postEvent(BridgeInputContext context, AWTEvent evt, int priority)
    {
        BridgeEventQueue q = (BridgeEventQueue) context.getEventQueue();
        q.postEvent(evt, priority);
    }
}
View Full Code Here

Examples of org.osgi.service.event.EventAdmin.postEvent()

  public void run()
  {
    EventAdmin ea = (EventAdmin) eventAdminTracker.getService();
    if (null!=ea) {
      ea.postEvent( getEvent() );
    }

    for (Enumeration en = listeners.elements(); en.hasMoreElements();) {
      ServiceReference sr = (ServiceReference) en.nextElement();
      UserAdminListener ual = (UserAdminListener) bc.getService(sr);
View Full Code Here

Examples of org.osgi.service.event.EventAdmin.postEvent()

        properties.put(SlingConstants.PROPERTY_USERID, authInfo.getUser());
        properties.put(AuthenticationInfo.AUTH_TYPE, authInfo.getAuthType());

        EventAdmin localEA = this.eventAdmin;
        if (localEA != null) {
            localEA.postEvent(new Event(AuthConstants.TOPIC_LOGIN, properties));
        }
    }

    /**
     * Ensures the cookie value is properly quoted for transmission to the
View Full Code Here

Examples of org.osgi.service.event.EventAdmin.postEvent()

        final EventAdmin localEA = this.eventAdmin;
        if ( localEA != null ) {
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            props.put(SlingConstants.PROPERTY_ADAPTABLE_CLASSES, adaptables);
            props.put(SlingConstants.PROPERTY_ADAPTER_CLASSES, adapters);
            localEA.postEvent(new Event(SlingConstants.TOPIC_ADAPTER_FACTORY_ADDED,
                    props));
        }
    }

    /**
 
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.