Package com.salas.bb.views.mainframe

Examples of com.salas.bb.views.mainframe.MainFrame$FocusDispatcher


                         oldBriefSentences != aPrefs.getBriefSentences()))
                    {
                        oldBriefSentences = aPrefs.getBriefSentences();
                        oldBriefMaxLength = aPrefs.getBriefMaxLength();

                        MainFrame frame = GlobalController.SINGLETON.getMainFrame();
                        IFeedDisplay feedView = frame.getArticlesListPanel().getFeedView();
                        feedView.repaintIfInMode(true);
                    }
                }
            });
        }
View Full Code Here


        final ITaggable[] taggables = getSelectedTaggables();

        if (taggables != null)
        {
            GlobalController controller = GlobalController.SINGLETON;
            MainFrame mainFrame = controller.getMainFrame();
            ITagsStorage tagsNetworker = controller.getTagsStorage();
            final AbstractTagsDialog dialog = getTagsDialog(mainFrame, tagsNetworker);

            GlobalModel model = GlobalModel.SINGLETON;
            final UserPreferences userPreferences = model.getUserPreferences();
View Full Code Here

            int newType = (Integer)evt.getNewValue();
            controller.changeTagsStorage(newType);
        } else if (UserPreferences.PROP_SHOW_TOOLBAR_LABELS.equals(prop))
        {
            boolean visible = (Boolean)evt.getNewValue();
            MainFrame mainFrame = controller.getMainFrame();
            if (mainFrame != null) mainFrame.setToolbarLabelsVisible(visible);
        } else if (UserPreferences.PROP_SHOW_UNREAD_BUTTON_MENU.equals(prop))
        {
            boolean visible = (Boolean)evt.getNewValue();
            UnreadButton.setShowMenuOnClick(visible);
        } else if (UserPreferences.PROP_SHOW_TOOLBAR.equals(prop))
        {
            boolean visible = (Boolean)evt.getNewValue();
            MainFrame mainFrame = controller.getMainFrame();
            if (mainFrame != null) mainFrame.setToolbarVisible(visible);
        } else if (UserPreferences.PROP_UPDATE_FEEDS.equals(prop))
        {
            boolean update = (Boolean)evt.getNewValue();
            controller.getPoller().setUpdateFeedsManually(update);
        } else if (UserPreferences.PROP_UPDATE_READING_LISTS.equals(prop))
        {
            boolean update = (Boolean)evt.getNewValue();
            controller.getPoller().setUpdateReadingListsManually(update);
        } else if (UserPreferences.PROP_PROXY_ENABLED.equals(prop) ||
            UserPreferences.PROP_PROXY_HOST.equals(prop) ||
            UserPreferences.PROP_PROXY_PORT.equals(prop))
        {
            controller.setProxySettings((UserPreferences)evt.getSource());
        } else if (UserPreferences.PROP_SHOW_APPICON_IN_SYSTRAY.equals(prop))
        {
            NotificationArea.setAppIconAlwaysVisible((Boolean)evt.getNewValue());
        } else if (UserPreferences.PROP_MINIMIZE_TO_SYSTRAY.equals(prop))
        {
            MainFrame mainFrame = controller.getMainFrame();
            if (mainFrame != null) mainFrame.setMinimizeToSystemTray((Boolean)evt.getNewValue());
        } else if (UserPreferences.PROP_DIB_MODE.equals(prop))
        {
            int mode = (Integer)evt.getNewValue();
            if (controller.dockIconUnreadMonitor != null) controller.dockIconUnreadMonitor.setMode(mode);
        }
View Full Code Here

     *
     * @return Main Window Frame.
     */
    protected AbstractFrame createMainFrame()
    {
        MainFrame mainFrame = new MainFrame(connectionState);

        Application.setDefaultParentFrame(mainFrame);
        GlobalController.SINGLETON.setMainFrame(mainFrame);

        return mainFrame;
View Full Code Here

                // See if the user wants to change the template dynamically
                if ((e.getModifiers() & KeyEvent.SHIFT_MASK) != 0 && type.isTemplateChangeSupported())
                {
                    // Ask for mode in a popup menu and repeat the event
                    MainFrame frame = controller.getMainFrame();
                    Point point = MouseInfo.getPointerInfo().getLocation();
                    SwingUtilities.convertPointFromScreen(point, frame);

                    JPopupMenu menu = new JPopupMenu();
                    Collection<Template> templates = Templates.getUserTemplates().values();
                    for (Template template : templates)
                    {
                        menu.add(new PostToBlogTemplateAction(template.getName()));
                    }
                    menu.show(frame, (int)point.getX(), (int)point.getY());

                    return;
                }
            }

            AbstractPostEditor editor;
            MainFrame frame = controller.getMainFrame();
            FeatureManager fm = controller.getFeatureManager();
            boolean isRichEditor = bloggingPreferences.isRichEditor() || !fm.isPtbAdvanced();
            if (fm.isPtbAdvanced())
            {
                PostEditorAdv edAdv = new PostEditorAdv(frame, isRichEditor);
View Full Code Here

            KeyboardFocusManager keyFocusManager =
                KeyboardFocusManager.getCurrentKeyboardFocusManager();
            Component current = keyFocusManager.getFocusOwner();

            // Pass the event to someone
            MainFrame mf = GlobalController.SINGLETON.getMainFrame();
            if (mf.getGudiesPanel().getFocusableComponent() == current)
            {
                instanceForGuide.actionPerformed(e);
            } else if (mf.getFeedsPanel().getFeedsList() == current)
            {
                instanceForFeed.actionPerformed(e);
            } else
            {
                instanceForArticle.actionPerformed(e);
View Full Code Here

     */
    protected void doAction(ActionEvent event)
    {
        List<String> oldExpr = ImageBlocker.getExpressions();

        MainFrame frame = GlobalController.SINGLETON.getMainFrame();
        ImageBlockerDialog dialog = new ImageBlockerDialog(frame, null);
        dialog.open();

        if (!oldExpr.equals(ImageBlocker.getExpressions()))
        {
View Full Code Here

     *
     * @param e event object.
     */
    public void actionPerformed(ActionEvent e)
    {
        MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
        ManagerDialog dialog = new ManagerDialog(mainFrame);
        boolean changed = dialog.openDialog();

        if (changed)
        {
View Full Code Here

     */
    public void actionPerformed(ActionEvent event)
    {
        if (url == null) return;

        MainFrame frame = GlobalController.SINGLETON.getMainFrame();
        ImageBlockerDialog dialog = new ImageBlockerDialog(frame, url);
        dialog.open();
    }
View Full Code Here

     * @param event original event object.
     */
    protected void doAction(ActionEvent event)
    {
        GlobalController controller = GlobalController.SINGLETON;
        final MainFrame mainFrame = controller.getMainFrame();
        final GlobalModel model = controller.getModel();
        new BlogStarzDialog(mainFrame, model).open();
    }
View Full Code Here

TOP

Related Classes of com.salas.bb.views.mainframe.MainFrame$FocusDispatcher

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.