Examples of WTKXSerializer


Examples of org.apache.pivot.wtkx.WTKXSerializer

        @SuppressWarnings("unchecked")
        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "lists.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }

                editableListView = (ListView)wtkxSerializer.get("editableListView");
                iconListView = (ListView)wtkxSerializer.get("iconListView");
                checkedListView = (ListView)wtkxSerializer.get("checkedListView");
                iconListButton = (ListButton)wtkxSerializer.get("iconListButton");

                rollup.setContent(component);

                List<ListItem> listData = (List<ListItem>)editableListView.getListData();
                listData.setComparator(new Comparator<ListItem>() {
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        Resources resources = null;
        if (properties.containsKey(RESOURCES_KEY)) {
            resources = new Resources(properties.get(RESOURCES_KEY));
        }

        WTKXSerializer wtkxSerializer = new WTKXSerializer(resources);

        ClassLoader classLoader = ThreadUtilities.getClassLoader();
        URL location = classLoader.getResource(src);

        wtkxSerializer.put("location", location);
        window = (Window)wtkxSerializer.readObject(location);
        window.open(display);
    }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        private Component component = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "text.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        private Component component = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "calendars.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        private Component component = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "color_choosers.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        private Component component = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "navigation.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        private Component component = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "splitters.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

    private ListView listView = null;
    private Label loadingLabel = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = (Window)wtkxSerializer.readObject(this, "web_queries.wtkx");

        listView = (ListView)wtkxSerializer.get("listView");
        loadingLabel = (Label)wtkxSerializer.get("loadingLabel");

        // Execute the query:
        // http://pipes.yahoo.com/pipes/pipe.run?_id=43115761f2da5af5341ae2e56a93d646&_render=json
        GetQuery getQuery = new GetQuery("pipes.yahoo.com", "/pipes/pipe.run");
        getQuery.getParameters().put("_id", "43115761f2da5af5341ae2e56a93d646");
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

                        // Update the image
                        menuImageView.setImage(image);
                    }
                });

                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "menus.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }

                menuImageView = (ImageView)wtkxSerializer.get("menuImageView");
                helpAboutMenuItem  = (Menu.Item)wtkxSerializer.get("menuBar.helpAboutMenuItem");

                rollup.setContent(component);

                wtkxSerializer.reset();

                try {
                    menuSection = (Menu.Section)wtkxSerializer.readObject(this, "menu_section.wtkx");
                    imageMenuGroup = (ButtonGroup)wtkxSerializer.get("imageMenuGroup");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

Examples of org.apache.pivot.wtkx.WTKXSerializer

        private ActivityIndicator activityIndicator3 = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                WTKXSerializer wtkxSerializer = new WTKXSerializer();
                try {
                    component = (Component)wtkxSerializer.readObject(this, "meters.wtkx");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }

                activityIndicator1 = (ActivityIndicator)wtkxSerializer.get("activityIndicator1");
                activityIndicator2 = (ActivityIndicator)wtkxSerializer.get("activityIndicator2");
                activityIndicator3 = (ActivityIndicator)wtkxSerializer.get("activityIndicator3");

                rollup.setContent(component);

                metersRollup.getRollupStateListeners().add(new RollupStateListener() {
                    @Override
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.