Package org.noos.xing.mydoggy.mydoggyset.view.toolwindows.model

Examples of org.noos.xing.mydoggy.mydoggyset.view.toolwindows.model.ToolsTableModel


        ToolWindowManager toolWindowManager = (ToolWindowManager) viewContext.get(ToolWindowManager.class);

        JPanel toolsPanel = new JPanel(new TableLayout(new double[][]{{-1}, {-1}}));
        toolsPanel.setBorder(new TitledBorder("ToolWindows"));

        final JTable toolsTable = new JTable(new ToolsTableModel(toolWindowManager));
        toolsTable.getTableHeader().setReorderingAllowed(false);
        toolsTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                if (toolsTable.getSelectedRow() != -1) {
                    ToolWindow selectedTool = (ToolWindow) toolsTable.getModel().getValueAt(toolsTable.getSelectedRow(), -1);
View Full Code Here


    }

    protected Component initComponent() {
        ToolWindowManager toolWindowManager = viewContext.get(ToolWindowManager.class);

        final JTable toolsTable = new JTable(new ToolsTableModel(toolWindowManager));
        toolsTable.getTableHeader().setReorderingAllowed(false);
        toolsTable.getSelectionModel().addListSelectionListener(
                new ContextPutListSelectionListener(viewContext, ToolWindow.class, toolsTable, -1)
        );
View Full Code Here

        ToolWindowManager toolWindowManager = viewContext.get(ToolWindowManager.class);

        JPanel toolsPanel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
        toolsPanel.setBorder(new TitledBorder("ToolWindows"));

        final JTable toolsTable = new JTable(new ToolsTableModel(toolWindowManager));
        toolsTable.getTableHeader().setReorderingAllowed(false);
        toolsTable.getSelectionModel().addListSelectionListener(
                new ContextPutListSelectionListener(viewContext, ToolWindow.class, toolsTable, -1)
        );
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.mydoggyset.view.toolwindows.model.ToolsTableModel

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.