Package pivot.wtkx

Examples of pivot.wtkx.WTKXSerializer.readObject()


    };

    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.getObjectByID("textArea");
View Full Code Here


    private Label valueLabel = null;

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = new Window((Component)wtkxSerializer.readObject(getClass().getResource("slider_test.wtkx")));
        slider = (Slider)wtkxSerializer.getObjectByID("slider");
        slider.getSliderValueListeners().add(new SliderValueListener() {
            public void valueChanged(Slider slider, int previousValue) {
                valueLabel.setText(Integer.toString(slider.getValue()));
            }
View Full Code Here

    private Window window = null;

    public void startup(Display display, Dictionary<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = new Window((Component)wtkxSerializer.readObject(getClass().getResource("table_pane_test.wtkx")));
        window.setTitle("TablePane Test");
        window.open(display);
    }

    public boolean shutdown(boolean optional) {
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("form_test.wtkx")));
        frame.setTitle("Form Test");
        // frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

        String src = properties.get(SRC_ARGUMENT);
        String title = properties.get(TITLE_ARGUMENT);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();

        Component content = (Component)wtkxSerializer.readObject(src);
        window = new Window(content);
        window.setTitle(title);
        window.setMaximized(true);
        window.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("color_list_button_test.wtkx")));
        frame.setTitle("Color List Button Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

    private TextInput textinputDateRegex = null;
    private TextInput textinputCustomBoolean = null;

    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = new Window((Component)wtkxSerializer.readObject(
            getClass().getResource("textInputValidator_test.wtkx")));
        textinputFloatRange = (TextInput)wtkxSerializer.getObjectByID("textinputFloatRange");
        textinputIntRange = (TextInput)wtkxSerializer.getObjectByID("textinputIntRange");
        textinputDateRegex = (TextInput)wtkxSerializer.getObjectByID("textinputDateRegex");
        textinputCustomBoolean = (TextInput)wtkxSerializer.getObjectByID("textinputCustomBoolean");
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("file_browser_test.wtkx")));

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

        String pathname = "/";
        final Folder rootFolder = new Folder(pathname);
View Full Code Here

        imageView.setImage(getClass().getResource("IMG_0767_2.jpg"));
        panorama.setView(imageView);
        frame1.open(display);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame2 = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("panorama_test.wtkx")));
        frame2.setTitle("Panorama Test 2");
        frame2.setPreferredSize(480, 360);
        frame2.open(display);
    }
View Full Code Here

                    // operation
                    inputStream = new BufferedInputStream(url.openStream());

                    if (url.getFile().endsWith("wtkd")) {
                        WTKXSerializer serializer = new WTKXSerializer();
                        image = (Drawing)serializer.readObject(inputStream);
                    } else {
                        BufferedImageSerializer serializer = new BufferedImageSerializer();
                        BufferedImage bufferedImage =
                            serializer.readObject(new MonitoredInputStream(inputStream));
                        image = new Picture(bufferedImage);
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.