Package de.kopis.jusenet.ui.models

Examples of de.kopis.jusenet.ui.models.ArticleListModel


        });
       
        createMenu();
        createToolbar();
       
        ArticleListModel articlemodel = new ArticleListModel();
        articleList = new JList(articlemodel);
        articleList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        articleList.setCellRenderer(new ArticleCellRenderer());
        articleList.addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
View Full Code Here


                // reload Group from session, because lazy fetching of inner Set<Article>
                // won't work otherwise
                Group g = (Group) session.load(Group.class, gid);

                statusbar.setAction("Entering " + g + "...");
                ArticleListModel model = (ArticleListModel)articleList.getModel();
                model.clear();
                Iterator it = g.getArticles().iterator();
                while(it.hasNext()) {
                    model.addElement(it.next());
                    try {
                        Thread.sleep(5);
                    } catch (InterruptedException e) {
                        GuiUtils.showError(e);
                    }
View Full Code Here

TOP

Related Classes of de.kopis.jusenet.ui.models.ArticleListModel

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.