Package org.apache.pivot.beans

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


        String language = properties.get(LANGUAGE_KEY);
        Locale locale = (language == null) ? Locale.getDefault() : new Locale(language);
        Resources resources = new Resources(StockTrackerWindow.class.getName(), locale);

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (StockTrackerWindow)bxmlSerializer.readObject(getClass().getResource("stock_tracker_window.bxml"),
            resources);
        window.open(display);
    }

    @Override
View Full Code Here


        // Load the prompt content
        BXMLSerializer bxmlSerializer = new BXMLSerializer();

        Component content;
        try {
            content = (Component)bxmlSerializer.readObject(TerraPromptSkin.class,
                "terra_prompt_skin.bxml");
        } catch(Exception exception) {
            throw new RuntimeException(exception);
        }
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 = 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
View Full Code Here

    @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);
    }

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

    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

        System.out.println("startup(...)");

        initializeProperties(properties);

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

    @Override
View Full Code Here

    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());
View Full Code Here

        // 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);
                }
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.