Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.ToolWindowManagerDescriptor


        }

        protected void initListeners() {
            viewContext.addViewContextChangeListener(PushAwayMode.class, new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    ToolWindowManagerDescriptor managerDescriptor = viewContext.get(ToolWindowManagerDescriptor.class);
                    managerDescriptor.setPushAwayMode((PushAwayMode) evt.getNewValue());
                }
            });
            viewContext.addViewContextChangeListener(ToolWindowManagerDescriptor.class, this);
        }
View Full Code Here


            });
            viewContext.addViewContextChangeListener(ToolWindowManagerDescriptor.class, this);
        }

        public void contextChange(ViewContextChangeEvent evt) {
            ToolWindowManagerDescriptor managerDescriptor = (ToolWindowManagerDescriptor) evt.getNewValue();

            numberingEnabled.setSelected(managerDescriptor.isNumberingEnabled());
            pushAwayMode.setSelectedItem(managerDescriptor.getPushAwayMode());
            leftDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.LEFT));
            rightDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.RIGHT));
            topDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.TOP));
            bottomDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.BOTTOM));
        }
View Full Code Here

        }

        protected void initListeners() {
            viewContext.addViewContextChangeListener(PushAwayMode.class, new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    ToolWindowManagerDescriptor managerDescriptor = viewContext.get(ToolWindowManagerDescriptor.class);
                    managerDescriptor.setPushAwayMode((PushAwayMode) evt.getNewValue());
                }
            });
            viewContext.addViewContextChangeListener(ToolWindowManagerDescriptor.class, this);
        }
View Full Code Here

            });
            viewContext.addViewContextChangeListener(ToolWindowManagerDescriptor.class, this);
        }

        public void contextChange(ViewContextChangeEvent evt) {
            ToolWindowManagerDescriptor managerDescriptor = (ToolWindowManagerDescriptor) evt.getNewValue();

            numberingEnabled.setSelected(managerDescriptor.isNumberingEnabled());
            previewEnabled.setSelected(managerDescriptor.isPreviewEnabled());
            showUnavailableTools.setSelected(managerDescriptor.isShowUnavailableTools());
            pushAwayMode.setSelectedItem(managerDescriptor.getPushAwayMode());

            leftDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.LEFT));
            rightDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.RIGHT));
            topDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.TOP));
            bottomDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.BOTTOM));

            leftAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.LEFT));
            rightAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.RIGHT));
            topAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.TOP));
            bottomAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.BOTTOM));
        }
View Full Code Here

        }

        protected void initListeners() {
            viewContext.addViewContextChangeListener(PushAwayMode.class, new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    ToolWindowManagerDescriptor managerDescriptor = viewContext.get(ToolWindowManagerDescriptor.class);
                    managerDescriptor.setPushAwayMode((PushAwayMode) evt.getNewValue());
                }
            });
            viewContext.addViewContextChangeListener(ToolWindowManagerDescriptor.class, this);
        }
View Full Code Here

            });
            viewContext.addViewContextChangeListener(ToolWindowManagerDescriptor.class, this);
        }

        public void contextChange(ViewContextChangeEvent evt) {
            ToolWindowManagerDescriptor managerDescriptor = (ToolWindowManagerDescriptor) evt.getNewValue();

            numberingEnabled.setSelected(managerDescriptor.isNumberingEnabled());
            previewEnabled.setSelected(managerDescriptor.isPreviewEnabled());
            pushAwayMode.setSelectedItem(managerDescriptor.getPushAwayMode());

            leftDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.LEFT));
            rightDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.RIGHT));
            topDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.TOP));
            bottomDividerSize.setValue(managerDescriptor.getDividerSize(ToolWindowAnchor.BOTTOM));

            leftAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.LEFT));
            rightAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.RIGHT));
            topAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.TOP));
            bottomAggregateMode.setSelected(managerDescriptor.isAggregateMode(ToolWindowAnchor.BOTTOM));
        }
View Full Code Here

    this.getContentPanel().add(this.builtMainMenuBar(), BorderLayout.NORTH);

    this.toolWindowManager = new MyDoggyToolWindowManager();
    this.getContentPanel().add(this.toolWindowManager, BorderLayout.CENTER);
    final ToolWindowManagerDescriptor toolWindowManagerDesc = this.toolWindowManager.getToolWindowManagerDescriptor();
    toolWindowManagerDesc.setNumberingEnabled(false);
    toolWindowManagerDesc.setPushAwayMode(PushAwayMode.MOST_RECENT);

    this.toolWindowManager.resetMainContent();
    final ContentManager contentManager = this.toolWindowManager.getContentManager();
    contentManager.addContent("Worldmap", "Worldmap", null, this.buildMap(), "Worldmap");
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.ToolWindowManagerDescriptor

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.