Package org.jnode.nntp.event

Examples of org.jnode.nntp.event.GroupSelectedEvent


    @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) {
View Full Code Here


        NewsGroup group = dataProvider.newsGroup(groupName, auth);
        if (group == null) {
            return responseNotFound();
        }

        Notifier.INSTANSE.notify(new GroupSelectedEvent(group));

        return responseGroup(groupName, group);
    }
View Full Code Here

TOP

Related Classes of org.jnode.nntp.event.GroupSelectedEvent

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.