Package org.apache.pivot.beans

Examples of org.apache.pivot.beans.BXMLSerializer


public class SplitPaneTest extends Application.Adapter {
    private Window window = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = new Window((Component)bxmlSerializer.readObject(getClass().getResource("splitpane_test.bxml")));

        window.setTitle("SplitPane Test");
        window.setMaximized(true);
        window.open(display);
    }
View Full Code Here


    private SuggestionPopup suggestionPopup = new SuggestionPopup();

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window)bxmlSerializer.readObject(SuggestionPopupTest.class,
            "suggestion_popup_test.bxml");
        bxmlSerializer.bind(this);

        textInput.getTextInputContentListeners().add(new TextInputContentListener.Adapter() {
            @Override
            public void textInserted(TextInput textInputArgument, int index, int count) {
                ArrayList<String> suggestions = new ArrayList<String>("One", "Two", "Three", "Four", "Five");
View Full Code Here

    private Window window = null;

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window)bxmlSerializer.readObject(GridPaneTest.class, "gridpane_test.bxml");
        window.open(display);
    }
View Full Code Here

        return border;
    }

    private void reloadContent() {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();

        try {
            Component sampleContent = (Component)bxmlSerializer.readObject(ColorSchemeBuilderWindow.class,
                "sample_content.bxml");
            sampleContentBorder.setContent(sampleContent);
        } catch (IOException exception) {
            throw new RuntimeException(exception);
        } catch (SerializationException exception) {
View Full Code Here

    public void startup(final Display display, Map<String, String> properties) throws Exception {
        System.out.println("startup(...)");

        initializeProperties(properties);

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window) bxmlSerializer.readObject(Pivot859.class, "pivot_859.bxml");
        initializeFields(bxmlSerializer);
        window.open(display);
    }
View Full Code Here

    private List<?> listData;

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        bxmlSerializer.getNamespace().put("bar", "12345");

        window = (Window)bxmlSerializer.readObject(Scripting.class, "scripting.bxml");
        foo = (String)bxmlSerializer.getNamespace().get("foo");
        listData = (List<?>)bxmlSerializer.getNamespace().get("listData");

        System.out.println("foo = " + foo);
        System.out.println("listData.getLength() = " + listData.getLength());

        window.open(display);
View Full Code Here

        // Add the display to the display list
        displays.add(displayHost.getDisplay());

        // Load the Pivot window
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        Window window;
        try {
            window = (Window)bxmlSerializer.readObject(SwingDemo.class.getResource("pivot_window.bxml"));
        } catch (IOException exception) {
            throw new RuntimeException(exception);
        } catch (SerializationException exception) {
            throw new RuntimeException(exception);
        }
View Full Code Here

        }

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (this.component == null) {
                BXMLSerializer bxmlSerializer = new BXMLSerializer();
                try {
                    this.component = (Component)bxmlSerializer.readObject(KitchenSink.class, "trees.bxml");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }

                this.editableTreeView = (TreeView)bxmlSerializer.getNamespace().get("editableTreeView");
                this.checkTreeView = (TreeView)bxmlSerializer.getNamespace().get("checkTreeView");

                rollup.setContent(this.component);

                TreeBranch treeData = (TreeBranch)this.editableTreeView.getTreeData();
                treeData.setComparator(new TreeNodeComparator());
View Full Code Here

public class BaselineTest extends Application.Adapter {
    private Window window = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = new Window((Component)bxmlSerializer.readObject(getClass().getResource("baseline_test.bxml")));
        window.setTitle("Baseline Test");
        window.setMaximized(true);
        window.open(display);
    }
View Full Code Here

        }

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (this.component == null) {
                BXMLSerializer bxmlSerializer = new BXMLSerializer();
                try {
                    this.component = (Component)bxmlSerializer.readObject(KitchenSink.class, "dragdrop.bxml");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }

                this.imageView1 = (ImageView)bxmlSerializer.getNamespace().get("imageView1");
                this.imageView2 = (ImageView)bxmlSerializer.getNamespace().get("imageView2");
                this.imageView3 = (ImageView)bxmlSerializer.getNamespace().get("imageView3");

                rollup.setContent(this.component);

                DragSource imageDragSource = new DragSource() {
                    private Image image = null;
View Full Code Here

TOP

Related Classes of org.apache.pivot.beans.BXMLSerializer

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.