Package org.noos.xing.mydoggy.plaf.ui.content.tabbed.component

Examples of org.noos.xing.mydoggy.plaf.ui.content.tabbed.component.JTabbedContentManager



    protected void initComponents() {
        detachedContentUIMap = new Hashtable<Content, TabbedContentUI>();

        final JTabbedContentManager tabbedContentManager = new JTabbedContentManager();

        tabbedContentManager.addTabListener(new TabListener() {
            public void tabEventFired(TabEvent event) {
                Content content = contentManager.getContentByComponent(event.getContentManager().getComponentAt(event.getOverTabIndex()));
                switch (event.getActionId()) {
                    case ON_CLOSE:
                        try {
                            fireContentUIRemoving(getContentUI(content));
                            contentManager.removeContent(content);
                        } catch (Exception ignore) {
                        }
                        break;
                    case ON_DETACH:
                        content.setDetached(true);
                        fireContentUIDetached(getContentUI(content));
                        break;
                }
            }
        });
        tabbedContentManager.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (!valueAdjusting && !contentValueAdjusting) {
                    Component selectedComponent = tabbedContentManager.getSelectedComponent();
                    if (selectedComponent == null)
                        return;
                    BackContentUI newSelected = (BackContentUI) contentManager.getContentByComponent(selectedComponent);

                    if (newSelected == lastSelected)
View Full Code Here



    protected void initComponents() {
        detachedContentUIMap = new Hashtable<Content, TabbedContentUI>();

        final JTabbedContentManager tabbedContentManager = new JTabbedContentManager();

        tabbedContentManager.addTabListener(new TabListener() {
            public void tabEventFired(TabEvent event) {
                Content content = contentManager.getContentByComponent(event.getContentManager().getComponentAt(event.getOverTabIndex()));
                switch (event.getActionId()) {
                    case ON_CLOSE:
                        try {
                            fireContentUIRemoving(getContentUI(content));
                            contentManager.removeContent(content);
                        } catch (Exception ignore) {
                        }
                        break;
                    case ON_DETACH:
                        content.setDetached(true);
                        fireContentUIDetached(getContentUI(content));
                        break;
                }
            }
        });

        tabbedContentManager.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (!valueAdjusting && !contentValueAdjusting) {
                    Component selectedComponent = tabbedContentManager.getSelectedComponent();
                    if (selectedComponent == null)
                        return;
                    BackContentUI newSelected = (BackContentUI) contentManager.getContentByComponent(selectedComponent);

                    if (newSelected == lastSelected)
View Full Code Here

        propertyChangeSupport.firePropertyChangeEvent(evt);
    }


    protected void initComponents() {
        final JTabbedContentManager tabbedContentManager = new JTabbedContentManager();

        tabbedContentManager.addTabListener(new TabListener() {
            public void tabEventFired(TabEvent event) {
                switch (event.getActionId()) {
                    case ON_CLOSE:
                        contentManager.removeContent(
                                event.getContentManager().getComponentAt(event.getOverTabIndex())
                        );
                        break;
                    case ON_DETACH:
                        contentManager.getContent(
                                event.getContentManager().getComponentAt(event.getOverTabIndex())
                        ).setDetached(true);
                        break;
                }
            }
        });

        tabbedContentManager.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (!valueAdjusting && !contentValueAdjusting) {
                    Component selectedComponent = tabbedContentManager.getSelectedComponent();
                    if (selectedComponent == null)
                        return;
                    BackContentUI newSelected = (BackContentUI) contentManager.getContent(selectedComponent);

                    if (newSelected == lastSelected)
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.content.tabbed.component.JTabbedContentManager

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.