Package org.apache.pivot.beans

Examples of org.apache.pivot.beans.BXMLSerializer.readObject()


    private Window window;

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

        // force fill into button renderer, but only in some buttons ...
        ButtonDataRenderer filledButtonDataRenderer = new ButtonDataRenderer();
        filledButtonDataRenderer.setFillIcon(true);
        PushButton button3 = (PushButton) bxmlSerializer.getNamespace().get("button3");
View Full Code Here


    private Frame translucentFrame = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        reflectionWindow = (Window)bxmlSerializer.readObject(DecoratorDemo.class,
            "reflection_window.bxml");
        translucentFrame = (Frame)bxmlSerializer.readObject(DecoratorDemo.class,
            "translucent_frame.bxml");

        final FadeDecorator fadeDecorator = new FadeDecorator();
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        reflectionWindow = (Window)bxmlSerializer.readObject(DecoratorDemo.class,
            "reflection_window.bxml");
        translucentFrame = (Frame)bxmlSerializer.readObject(DecoratorDemo.class,
            "translucent_frame.bxml");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);
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, "tables.bxml");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }
View Full Code Here

                origin = (new File(USER_HOME).toURI()).toURL();
            }
        }

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window)bxmlSerializer.readObject(LargeData.class, "large_data.bxml");
        fileListButton = (ListButton)bxmlSerializer.getNamespace().get("fileListButton");
        loadDataButton = (PushButton)bxmlSerializer.getNamespace().get("loadDataButton");
        cancelButton = (PushButton)bxmlSerializer.getNamespace().get("cancelButton");
        statusLabel = (Label)bxmlSerializer.getNamespace().get("statusLabel");
        tableView = (TableView)bxmlSerializer.getNamespace().get("tableView");
View Full Code Here

    }

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

        controlTree(bxmlSerializer);
        controlList(bxmlSerializer);

        window.open(display);
View Full Code Here

    }

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window) bxmlSerializer.readObject(Pivot734.class, "pivot_734.bxml");
        controlTree(bxmlSerializer);
        window.open(display);
    }

    private void controlTree(BXMLSerializer bxmlSerializer) {
View Full Code Here

    }

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

        window.setTitle("Apache Pivot Rich Text Editor Demo");

        // make the text on the "bold" button bold
View Full Code Here

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

    @Override
    public boolean shutdown(boolean optional) {
View Full Code Here


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

        selectFolderButton.getButtonPressListeners().add(new ButtonPressListener() {
            @Override
            public void buttonPressed(Button button) {
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.