Package jnode.event

Examples of jnode.event.IEventHandler


        }
    }

    @Override
    public void run() {
        Notifier.INSTANSE.register(GroupSelectedEvent.class, new IEventHandler() {
            @Override
            public void handle(IEvent event) {
                GroupSelectedEvent groupSelectedEvent = (GroupSelectedEvent) event;
                selectedGroupId = groupSelectedEvent.getSelectedGroup().getId();
            }
        });
        Notifier.INSTANSE.register(ArticleSelectedEvent.class, new IEventHandler() {
            @Override
            public void handle(IEvent event) {
                selectedArticleId = ((ArticleSelectedEvent) event).getSelectedArticleId();
            }
        });
        Notifier.INSTANSE.register(AuthUserEvent.class, new IEventHandler() {
            @Override
            public void handle(IEvent event) {
                auth = ((AuthUserEvent) event).getAuth();
            }
        });
        Notifier.INSTANSE.register(PostStartEvent.class, new IEventHandler() {
            @Override
            public void handle(IEvent event) {
                isPost = true;
                postParams = Lists.newLinkedList();
            }
        });
        Notifier.INSTANSE.register(PostEndEvent.class, new IEventHandler() {
            @Override
            public void handle(IEvent event) {
                isPost = false;
            }
        });
View Full Code Here

TOP

Related Classes of jnode.event.IEventHandler

Copyright © 2018 www.massapicom. 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.