Package org.noos.xing.yasaf.view

Examples of org.noos.xing.yasaf.view.ViewContextChangeListener


        return toolBarContentPanel;
    }

    protected void initListeners() {
        viewContext.addViewContextChangeListener("removeAll", new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                evt.getViewContext().get(ToolWindowManager.class).unregisterAllToolWindow();
            }
        });
    }
View Full Code Here


        viewContext.addViewContextChangeListener(new DockedTypeDescriptorView(viewContext));
        viewContext.addViewContextChangeListener(new SlidingTypeDescriptorView(viewContext));
        viewContext.addViewContextChangeListener(new FloatingTypeDescriptorView(viewContext));
        viewContext.addViewContextChangeListener(new FloatingLiveTypeDescriptorView(viewContext));

        viewContext.addViewContextChangeListener(new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                if (ToolWindow.class.equals(evt.getProperty())) {
                    ToolWindow toolWindow = (ToolWindow) evt.getNewValue();

                    if (toolWindow != null)
View Full Code Here

        return main;
    }

    protected void initListeners() {
        viewContext.addViewContextChangeListener("remove", new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                ViewContext viewContext = evt.getViewContext();
                viewContext.get(ToolWindowManager.class).getContentManager().removeContent(
                        viewContext.get(Content.class)
                );
View Full Code Here

            return panel;
        }

        protected void initListeners() {
            viewContext.addViewContextChangeListener(ToolWindow.class, new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    types.setSelectedIndex(0);
                    if (evt.getNewValue() != null)
                        types.setSelectedIndex(1);
                    types.setEnabled(evt.getNewValue() != null);
                }
            });
            viewContext.addViewContextChangeListener("remove", new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    evt.getViewContext().get(ToolWindowManager.class).unregisterToolWindow(
                        evt.getViewContext().get(ToolWindow.class).getId()
                    );
                    evt.getViewContext().put(ToolWindow.class, null);
View Full Code Here

        }


        @Override
        protected void initListeners() {
            viewContext.addViewContextChangeListener("Execute", new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    frame.setState(Frame.ICONIFIED);

                    final Window scenarioWindow = ((Scenario) viewContext.get("Scenario")).launch();
                    if (scenarioWindow != null)
                        scenarioWindow .addWindowListener(new WindowAdapter() {
                            @Override
                            public void windowClosing(WindowEvent e) {
                                scenarioWindow.removeWindowListener(this);

                                frame.setState(Frame.NORMAL);
                                frame.toFront();
                            }
                        });
                }
            });
            viewContext.addViewContextChangeListener("Scenario", new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    descriptionArea.setText(((Scenario) viewContext.get("Scenario")).getDescription());
                    sourceArea.setText(((Scenario) viewContext.get("Scenario")).getSource());
                }
            });
View Full Code Here

        return mainPanel;
    }


    protected void initListeners() {
        viewContext.addViewContextChangeListener(ToolWindow.class, new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                ToolWindow toolWindow = (ToolWindow) evt.getNewValue();

                if (toolWindow != null)
                    mainPanel.setBorder(new TitledBorder("Preference : " + toolWindow.getId()));
View Full Code Here

            return matrixPanel;
        }


        protected void initListeners() {
            viewContext.addViewContextChangeListener(Actions.SHOW_MESSAGE, new ViewContextChangeListener() {
                public void contextChange(ViewContextChangeEvent evt) {
                    evt.getViewContext().get(ToolWindow.class).getRepresentativeAnchorDescriptor().showMessage(
                            null,
                            messageField.getText()
                    );
View Full Code Here

        addViewContextChangeListener(ResourceManager.class, new AddContentAction(toolWindowManager,
                                                                                 "Customize", "Customize", null,
                                                                                 customizeContentComponent = new CustomizeView(parentComponent, toolWindowManager).getComponent(),
                                                                                 "Customize", (int) 'u'));

        addViewContextChangeListener(UIManager.class, new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                try {
                    UIManager.setLookAndFeel((String) evt.getNewValue());

                    SwingUtilities.updateComponentTreeUI(parentComponent);
View Full Code Here

        return toolBarContentPanel;
    }

    protected void initListeners() {
        viewContext.addViewContextChangeListener(ToolWindow.class, new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                toolWindowTabsTableModel.setToolWindow((ToolWindow) evt.getNewValue());
            }
        });
View Full Code Here

        viewContext.addViewContextChangeListener(new DockedTypeDescriptorView(viewContext));
        viewContext.addViewContextChangeListener(new SlidingTypeDescriptorView(viewContext));
        viewContext.addViewContextChangeListener(new FloatingTypeDescriptorView(viewContext));
        viewContext.addViewContextChangeListener(new FloatingLiveTypeDescriptorView(viewContext));

        viewContext.addViewContextChangeListener(new ViewContextChangeListener() {
            public void contextChange(ViewContextChangeEvent evt) {
                if (ToolWindowTypeDescriptor.class.equals(evt.getProperty())) {
                    if (evt.getNewValue() instanceof View)
                        typeDescriptorContainer.plugView((View) evt.getNewValue());
                }
View Full Code Here

TOP

Related Classes of org.noos.xing.yasaf.view.ViewContextChangeListener

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.