Package org.noos.xing.mydoggy.plaf.ui.cmp

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ToolWindowTitleButton


        titleLabel = new ToolWindowTabTitle(tab);
        titleLabel.setName(name + ".title");
        toolWindowTabButton.add(titleLabel, "0,0,FULL,FULL");

        // Buttons
        closeButton = new ToolWindowTitleButton();
        closeButton.setName(name + ".closeButton");
        closeButton.setActionCommand("close");
        closeButton.setToolTipText(SwingUtil.getString("@@tool.tab.close"));
        closeButton.setIcon(UIManager.getIcon(MyDoggyKeySpace.TAB_CLOSE));

        minimizeButton = new ToolWindowTitleButton();
        minimizeButton.setName(name + ".minimizeButton");
        minimizeButton.setActionCommand("minimize");
        minimizeButton.setToolTipText(SwingUtil.getString("@@tool.tab.minimize"));
        minimizeButton.setIcon(UIManager.getIcon(MyDoggyKeySpace.TAB_MINIMIZE));
View Full Code Here


        descriptor.getCleaner().removeCleaner(this);
    }

    protected void uninstallComponents() {
        for (Component component : toolWindowTitleButtonPanel.getComponents()) {
            ToolWindowTitleButton toolWindowTitleButton = (ToolWindowTitleButton) component;
            toolWindowTitleButton.getAction().removePropertyChangeListener(this);
        }

        toolWindowTitleButtonPanel.removeAll();
    }
View Full Code Here

        }

        layout.clear();

        for (Component component : toolWindowTitleButtonPanel.getComponents()) {
            ToolWindowTitleButton toolWindowTitleButton = (ToolWindowTitleButton) component;

            layout.put((ToolWindowAction) toolWindowTitleButton.getAction(),
                       toolWindowTitleButtonPanel.getComponentCount() - 1 - containerLayout.getConstraints(toolWindowTitleButton).col1 / 2);
        }
    }
View Full Code Here

            col = colIndex;

            containerLayout.setColumn(newCols);
        }

        ToolWindowTitleButton button = new ToolWindowTitleButton(toolWindowAction);
        button.setFocusable(false);
        button.setName(toolWindowAction.getActionName());
        if (!toolWindowAction.isShowTextOnTitleBar())
            button.setText(null);

        toolWindowAction.putValue("component", button);
        toolWindowAction.addPropertyChangeListener(this);

        toolWindowTitleButtonPanel.add(button, col + ",1,FULL,FULL");
View Full Code Here

    protected void removeToolWindowAction(ToolWindowAction toolWindowAction) {
        toolWindowAction.removePropertyChangeListener(this);

        for (Component component : toolWindowTitleButtonPanel.getComponents()) {
            ToolWindowTitleButton toolWindowTitleButton = (ToolWindowTitleButton) component;

            if (toolWindowTitleButton.getAction() == toolWindowAction) {
                // We found the action

                double[] newCols = null;
                if (toolWindowTitleButtonPanel.getComponentCount() == 1) {
                    newCols = new double[]{0, 0};
View Full Code Here

        }
    }

    protected void replaceToolWindowAction(ToolWindowAction oldToolWindowAction, ToolWindowAction newToolWindowAction) {
        for (Component component : toolWindowTitleButtonPanel.getComponents()) {
            ToolWindowTitleButton toolWindowTitleButton = (ToolWindowTitleButton) component;

            if (toolWindowTitleButton.getAction() == oldToolWindowAction) {
                // We found the action...replace it
                toolWindowTitleButton.setAction(newToolWindowAction);
                break;
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.cmp.ToolWindowTitleButton

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.