Package pivot.wtk

Examples of pivot.wtk.Frame


    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();

        frame = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("charts_test.wtkx")));
        frame.setTitle("Charts Test");

        ChartViewMouseButtonHandler chartViewMouseButtonHandler = new ChartViewMouseButtonHandler();

        PieChartView pieChartView = (PieChartView)wtkxSerializer.getObjectByName("pieCharts.pieChartView");
View Full Code Here


    private Sheet sheet = null;
    private CardPane cardPane = null;

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
      Frame frame = new Frame(new FlowPane());
      frame.getStyles().put("padding", 0);
      frame.setTitle("Card Pane Test");
      frame.setPreferredSize(800, 600);
      frame.setLocation(20, 20);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        sheet = new Sheet((Component)wtkxSerializer.readObject(getClass().getResource("card_pane_test.wtkx")));

        cardPane = (CardPane)wtkxSerializer.getObjectByName("cardPane");

        Button.Group sizeGroup = Button.getGroup("sizeGroup");
        sizeGroup.getGroupListeners().add(new Button.GroupListener() {
          public void selectionChanged(Button.Group buttonGroup, Button previousSelection) {
            final Button selection = buttonGroup.getSelection();
            int selectedIndex = selection == null ? -1 : selection.getParent().indexOf(selection);

            cardPane.getCardPaneListeners().add(new CardPaneListener() {
                public void orientationChanged(CardPane cardPane, Orientation previousOrientation) {

                }

              public Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex) {
                if (selection != null) {
                  selection.getParent().setEnabled(false);
                }

                return Vote.APPROVE;
              }

              public void selectedIndexChangeVetoed(CardPane cardPane, Vote reason) {
                if (selection != null
                && reason == Vote.DENY) {
                  selection.getParent().setEnabled(true);
                }
              }

              public void selectedIndexChanged(CardPane cardPane, int previousSelectedIndex) {
                if (selection != null) {
                  selection.getParent().setEnabled(true);
                }
              }
            });

            cardPane.setSelectedIndex(selectedIndex);
          }
        });

        frame.open(display);
        sheet.open(frame);
    }
View Full Code Here

    private Frame frame3 = null;

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame1 = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("file_browser_test.wtkx")));

        TreeView folderTreeView = (TreeView)wtkxSerializer.getObjectByName("folderTreeView");

        String pathname = "/";
        folderTreeView.setTreeData(new Folder(pathname));

        frame1.setTitle("File Browser Test");
        frame1.setPreferredSize(480, 640);
        frame1.open(display);

        FlowPane flowPane2 = new FlowPane();
        flowPane2.add(new TextInput());
        frame2 = new Frame(flowPane2);
        frame2.setTitle("Frame 2");
        frame2.setPreferredSize(240, 80);
        frame2.open(display);

        FlowPane flowPane3 = new FlowPane();
        flowPane3.add(new TextInput());
        frame3 = new Frame(flowPane3);
        frame3.setTitle("Frame 3");
        frame3.setPreferredSize(240, 80);
        frame3.open(display);
    }
View Full Code Here

        reflectionWindow.getDecorators().add(new ReflectionDecorator());
        reflectionWindow.setLocation(20, 20);
        reflectionWindow.open(display);

        fadeFrame =
            new Frame((Component)wtkxSerializer.readObject(getClass().getResource("translucent.wtkx")));
        fadeFrame.setTitle("Translucent Window");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        fadeFrame.getDecorators().insert(fadeDecorator, 0);
View Full Code Here

                Alert.alert("Foo", frame);
            }
        };

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("spinner_focus_test.wtkx")));
        frame.setTitle("Spinner Focus Test");
        frame.open(display);

        Spinner spinner = (Spinner)wtkxSerializer.getObjectByName("spinner");
        spinner.requestFocus();
View Full Code Here

        });

        display.getStyles().put("backgroundColor", "#aaaaff");
        window1.open(display);

        Frame window1a = new Frame();
        window1a.setTitle("Window 1 A");
        window1a.setPreferredSize(160, 120);
        window1a.open(display); // window1);

        Frame window1ai = new Frame();
        window1ai.setTitle("Window 1 A I");
        window1ai.setPreferredSize(160, 60);
        window1ai.open(display); // window1a);
        window1ai.getDecorators().update(0, new ReflectionDecorator());

        Frame window1aii = new Frame();
        window1aii.setTitle("Window 1 A II");
        window1aii.setPreferredSize(160, 60);
        window1aii.open(window1a);

        Frame window1b = new Frame();
        window1b.setTitle("Window 1 B");
        window1b.setPreferredSize(160, 120);
        window1b.setLocation(20, 20);
        window1b.open(window1);

        Frame window1bi = new Frame();
        window1bi.setTitle("Window 1 B I");
        window1bi.setPreferredSize(160, 60);
        window1bi.open(window1b);

        Frame window1bii = new Frame();
        window1bii.setTitle("Window 1 B II");
        window1bii.setPreferredSize(160, 60);
        window1bii.open(window1b);

        Palette palette1 = new Palette();
        palette1.setTitle("Palette 1bii 1");
        palette1.setPreferredSize(160, 60);
        palette1.open(window1bii);

        Palette palette2 = new Palette();
        palette2.setTitle("Palette 1bii 2");
        palette2.setPreferredSize(160, 60);
        palette2.open(window1bii);

        Frame dialogOwner = new Frame();
        dialogOwner.setTitle("Dialog Owner");
        dialogOwner.setPreferredSize(160, 60);
        dialogOwner.open(display);

        Dialog dialog = new Dialog();
        dialog.setTitle("Dialog 1");
        dialog.setPreferredSize(160, 60);
        dialog.open(dialogOwner, true);
View Full Code Here

    };

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("text_area_test.wtkx")));
        frame.setTitle("TextArea Test");
        frame.setPreferredSize(640, 480);
        frame.open(display);

        textArea = (TextArea)wtkxSerializer.getObjectByName("textArea");
View Full Code Here

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        bind();

        frame = new Frame(new FlowPane());
        frame.getStyles().put("padding", 0);
        frame.setTitle("Component Pane Test");
        frame.setPreferredSize(800, 600);
        frame.setLocation(20, 20);
View Full Code Here

    private Frame frame = null;

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("border_test.wtkx")));
        frame.setTitle("Border Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

    private Frame frame = null;

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("flow_pane_test.wtkx")));
        frame.setTitle("Flow Pane Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

TOP

Related Classes of pivot.wtk.Frame

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.