Examples of ExtendedTableLayout


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

        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);
        viewContext.put("windowAnchestor", parentComponent);

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1, 3, -1}}));
        panel.add(new CustomizeColorsView(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new CustomizeIconsView(viewContext).getComponent(), "0,2,FULL,FULL");

        return panel;
    }
View Full Code Here

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

        else
            this.desktopContentManagerUI = new MyDoggyDesktopContentManagerUI();
    }

    protected Component initComponent() {
        JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1, 50, -1},{-1, 20, -1}}));
        panel.add(new JLabel("No Pref"), "1,1,FULL,FULL");

        return panel;
    }
View Full Code Here

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

        viewContext.put(ToolWindowManager.class, toolWindowManager);
        viewContext.put("windowAnchestor", parentComponent);
        viewContext.put(MyDoggySetContext.class, mydoggySetContext);

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1, 3, -1}}));
        panel.add(new TestChooserView(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new TestRecordingView(viewContext).getComponent(), "0,2,FULL,FULL");

        return panel;
    }
View Full Code Here

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

        public PersistencePrefView(ViewContext viewContext) {
            super(viewContext);
        }

        protected Component initComponent() {
            JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{3, 100, 3, -1, 3}, {3, 20, 3, 20, 3, 20, 3, -1, 3}}));
            panel.setBorder(new TitledBorder("(Persistence) Worskpace Editor"));

            JButton save = new JButton("Save ->");
            save.addActionListener(new ViewContextAction(viewContext, "save"));
            panel.add(save, "1,1,FULL,FULL");
View Full Code Here

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

    public TestChooserView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {20,3,-1}}));
        panel.setBorder(new TitledBorder("Choose Interactive Test"));

        panel.add(new TestSelectorPanel(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new TestDescriptionPanel(viewContext).getComponent(), "0,2,FULL,FULL");
View Full Code Here

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

        if (lastPosition != null && lastPosition.equals(newPosition))
            return lastIndex;

        int index = -1;

        ExtendedTableLayout tableLayout = (ExtendedTableLayout) container.getLayout();
        double sum = 0;
        int position;
        int[] intervals;
        int direction;

        switch (anchor) {
            case TOP:
            case BOTTOM:
                position = newPosition.x;
                intervals = tableLayout.getColsInPixel();

                if (lastPosition == null)
                    direction = 1;
                else if (newPosition.x > lastPosition.x)
                    direction = 1;
                else
                    direction = -1;
                break;
            case LEFT:
            case RIGHT:
                position = newPosition.y;
                intervals = tableLayout.getRowsInPixel();

                if (lastPosition == null)
                    direction = 1;
                else if (newPosition.y > lastPosition.y)
                    direction = 1;
View Full Code Here

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

    public PreferencePanelView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        preferencePanel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {20, 3, -1}}));
        preferencePanel.setBorder(new TitledBorder("Preferences"));

        uisContainer = new PanelViewContainer() {
            protected void initComponents() {
                super.initComponents();
View Full Code Here

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

        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);
        viewContext.put("windowAnchestor", parentComponent);

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{3, -1, 3, 200, 3}, {3, -1, 3}}));
        panel.add(new GroupsTableView(viewContext).getComponent(), "1,1,FULL,FULL");
        panel.add(new ToolsInGroupTableView(viewContext).getComponent(), "3,1,FULL,FULL");

        return panel;
    }
View Full Code Here

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

    public Component getComponent() {
        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1, 5, -1}}));
        panel.add(new ToolWindowTableView(viewContext).getComponent(),
                  "0,0,FULL,FULL");
        panel.add(new PreferencePanelView(viewContext).getComponent(),
                  "0,2,FULL,FULL");
View Full Code Here

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

        public UIsSelectorView(ViewContext viewContext) {
            super(viewContext);
        }

        protected Component initComponent() {
            JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{150, 3, -1}, {-1}}));

            uis = new JComboBox(new Object[]{
                    TabbedContentManagerUI.class,
                    MultiSplitContentManagerUI.class,
                    DesktopContentManagerUI.class
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.