Examples of HUDEvent


Examples of org.jdesktop.wonderland.client.hud.HUDEvent

     */
    public void addComponent(HUDComponent component) {
        components.add(component);
        component.addEventListener(this);

        HUDObjectChanged(new HUDEvent(component, HUDEventType.ADDED, new Date()));
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUDEvent

    public void removeComponent(HUDComponent component) {
        if (component != null) {
            component.removeEventListener(this);
            components.remove(component);

            HUDObjectChanged(new HUDEvent(component, HUDEventType.REMOVED, new Date()));
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUDEvent

    /**
     * {@inheritDoc}
     */
    public void notifyEventListeners(final HUDEvent e) {
        if (listeners != null) {
            eventQueue.add(new HUDEvent(e));
            if (notifying) {
                // already notifying, let the current notification loop handle
                // this new event as well
                return;
            } else {
                notifying = true;
            }

            //logger.finest("=== [" + id + "] START notifying listeners");

            while (!eventQueue.isEmpty()) {
                HUDEvent ev = (HUDEvent) eventQueue.remove();
                //HUDEventType type = ev.getEventType();
                Iterator<HUDEventListener> iterator = listeners.iterator();
                //int num = listeners.size();
                //int i = 1;
                while (iterator.hasNext()) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUDEvent

    /**
     * Convenience methods for notifying listeners
     * @param eventType the type of the notification event
     */
    public void notifyEventListeners(HUDEventType eventType) {
        notifyEventListeners(new HUDEvent(this, eventType, new Date()));
    }
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.