Package com.salas.bb.dialogs

Examples of com.salas.bb.dialogs.SearchFeedPropertiesDialog


     * @param searchFeed serach feed.
     */
    private void showSearchFeedProperties(final SearchFeed searchFeed)
    {
        GlobalController controller = GlobalController.SINGLETON;
        SearchFeedPropertiesDialog dialog =
            new SearchFeedPropertiesDialog(searchFeed, controller.getMainFrame());

        int articlesLimit = searchFeed.getArticlesLimit();
        String title = searchFeed.getBaseTitle();
        Query query = searchFeed.getQuery();
        boolean dedupEnabled = searchFeed.isDedupEnabled();
        int dedupFrom = searchFeed.getDedupFrom();
        int dedupTo = searchFeed.getDedupTo();

        if (dialog.open(title, query, articlesLimit, dedupEnabled, dedupFrom, dedupTo))
        {
            final String feedTitle = dialog.getFeedTitle();
            final Query feedSearchQuery = dialog.getFeedSearchQuery();
            final int feedArticlesLimit = dialog.getFeedArticlesLimit();

            final boolean feedDedupEnabled = dialog.isDedupEnabled();
            final int feedDedupFrom = dialog.getDedupFrom();
            final int feedDedupTo = dialog.getDedupTo();

            new SetSearchFeedProperties(searchFeed, feedTitle,
                feedSearchQuery, feedArticlesLimit,
                feedDedupEnabled, feedDedupFrom, feedDedupTo).start();
        }
View Full Code Here

TOP

Related Classes of com.salas.bb.dialogs.SearchFeedPropertiesDialog

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.