Examples of StarzPreferences


Examples of com.salas.bb.domain.prefs.StarzPreferences

     * @param prefs preferences map.
     */
    private void storeAdvancedPreferences(Map prefs)
    {
        UserPreferences up = model.getUserPreferences();
        StarzPreferences sp = model.getStarzPreferences();

        setInt(prefs, UserPreferences.PROP_FEED_SELECTION_DELAY, up.getFeedSelectionDelay());
        setBoolean(prefs, UserPreferences.PROP_AA_TEXT, up.isAntiAliasText());

        setInt(prefs, StarzPreferences.PROP_TOP_ACTIVITY, sp.getTopActivity());
        setInt(prefs, StarzPreferences.PROP_TOP_HIGHLIGHTS, sp.getTopHighlights());

        setBoolean(prefs, UserPreferences.PROP_SHOW_TOOLBAR_LABELS, up.isShowToolbarLabels());
        setBoolean(prefs, UserPreferences.PROP_SHOW_UNREAD_BUTTON_MENU, up.isShowUnreadButtonMenu());
        setInt(prefs, UserPreferences.PROP_FEED_IMPORT_LIMIT, up.getFeedImportLimit());
    }
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

        final Object source = evt.getSource();
        boolean invalidate = false;

        if (source instanceof StarzPreferences)
        {
            StarzPreferences prefs = (StarzPreferences)source;

            if (StarzPreferences.PROP_ACTIVITY_WEIGHT.equals(prop))
            {
                activityWeight = prefs.getActivityWeight();
                invalidate = true;
            } else if (StarzPreferences.PROP_INLINKS_WEIGHT.equals(prop))
            {
                inlinksWeight = prefs.getInlinksWeight();
                invalidate = true;
            } else if (StarzPreferences.PROP_TOP_ACTIVITY.equals(prop))
            {
                topActivity = prefs.getTopActivity();
                invalidate = true;
            } else if (StarzPreferences.PROP_CLICKTHROUGHS_WEIGHT.equals(prop))
            {
                clickthroughsWeight = prefs.getClickthroughsWeight();
                invalidate = true;
            } else if (StarzPreferences.PROP_FEED_VIEWS_WEIGHT.equals(prop))
            {
                feedViewsWeight = prefs.getFeedViewsWeight();
                invalidate = true;
            }

            if (invalidate) invalidateAll();
        }
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

     */
    protected JComponent buildMainPanel()
    {
        if (starzPanel == null)
        {
            final StarzPreferences settings = model.getStarzPreferences();
            final ValueModel triggerChannel = getTriggerChannel();

            starzPanel = new StarzPanel(settings, triggerChannel);
        }

View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

     * @param prefs preferences.
     */
    private void loadAdvancedPreferences(Map prefs)
    {
        UserPreferences up = model.getUserPreferences();
        StarzPreferences sp = model.getStarzPreferences();

        up.setFeedSelectionDelay(getInt(prefs,
            UserPreferences.PROP_FEED_SELECTION_DELAY, up.getFeedSelectionDelay()));
        up.setAntiAliasText(getBoolean(prefs,
            UserPreferences.PROP_AA_TEXT, up.isAntiAliasText()));

        sp.setTopActivity(getInt(prefs,
            StarzPreferences.PROP_TOP_ACTIVITY, sp.getTopActivity()));
        sp.setTopHighlights(getInt(prefs,
            StarzPreferences.PROP_TOP_HIGHLIGHTS, sp.getTopHighlights()));

        up.setShowToolbarLabels(getBoolean(prefs,
            UserPreferences.PROP_SHOW_TOOLBAR_LABELS, up.isShowToolbarLabels()));
        up.setShowUnreadButtonMenu(getBoolean(prefs,
            UserPreferences.PROP_SHOW_UNREAD_BUTTON_MENU, up.isShowUnreadButtonMenu()));
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

     * @return pane.
     */
    private JComponent buildMainPane()
    {
        final UserPreferences prefs = model.getUserPreferences();
        final StarzPreferences starzPreferences = model.getStarzPreferences();
        final FeedRenderingSettings feedRS = model.getGlobalRenderingSettings();

        final ValueModel trigger = getTriggerChannel();

        GeneralPreferencesPanel generalPanel = new GeneralPreferencesPanel(prefs, feedRS, trigger);
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

        double views = calc.calcFeedViewsScore(feed);
        double clickthroughs = calc.calcClickthroughsScore(feed);
        blogStarzScore = calc.calcBlogStarzScore(feed);
        rating = feed.getRating();

        StarzPreferences prefs = GlobalModel.SINGLETON.getStarzPreferences();
        int activityWeight = prefs.getActivityWeight();
        int inlinksWeight = prefs.getInlinksWeight();
        int viewsWeight = prefs.getFeedViewsWeight();
        int clickthroughsWeight = prefs.getClickthroughsWeight();

        String msg = feed.getTextualInboundLinks();

        lbFinalScore = new JLabel();
        lbFinalScore.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

     */
    public GlobalModel(ScoresCalculator scoresCalculator, boolean full)
    {
        userPreferences = new UserPreferences();
        servicePreferences = new ServicePreferences();
        starzPreferences = new StarzPreferences();
        globalRenderingSettings = new FeedRenderingSettings();
        globalRenderingSettings.setParent(new DefaultFRS());

        if (full)
        {
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

    /** Installs new model. */
    private void installModel()
    {
        final GuidesSet guidesSet = model.getGuidesSet();
        final StarzPreferences starzPreferences = model.getStarzPreferences();
        final UserPreferences userPreferences = model.getUserPreferences();

        userPreferences.addPropertyChangeListener(propertyChangeDispatcher);
        starzPreferences.addPropertyChangeListener(propertyChangeDispatcher);

        scoresCalculator.loadPreferences(starzPreferences);

        ArticleFilterProtector.init();
       
View Full Code Here

Examples of com.salas.bb.domain.prefs.StarzPreferences

    }

    /** Uninstalls the model. */
    private void uninstallModel()
    {
        final StarzPreferences starzPreferences = model.getStarzPreferences();
        final UserPreferences userPreferences = model.getUserPreferences();

        starzPreferences.removePropertyChangeListener(propertyChangeDispatcher);
        userPreferences.removePropertyChangeListener(propertyChangeDispatcher);

        navigator.setViewModel(null);
        navigator.setGuidesSet(null);
        navigator.guideSelected(null);
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.