Package org.apache.pivot.beans

Examples of org.apache.pivot.beans.BXMLSerializer$AttributeInvocationHandler


    private Window window = null;

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

        HashMap<String, Object> context = new HashMap<String, Object>();
        context.put("id1", "1");
        context.put("id2", "2");
View Full Code Here


                    break;
                }
            }
        }

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window)bxmlSerializer.readObject(Localization.class.getResource("localization.bxml"), resources);
        window.open(display);
    }
View Full Code Here

public class ColorSchemeBuilder extends Application.Adapter {
    private ColorSchemeBuilderWindow window = null;

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

    private Frame frame = null;

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("border_test.bxml")));
        frame.setTitle("Border Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

            public void perform(Component source) {
                Alert.alert(MessageType.INFO, "Action 2 performed.", window);
            }
        });

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        window = (Window)bxmlSerializer.readObject(ActionMappingTest.class, "action_mapping_test.bxml");
        window.getActionMappings().add(new Window.ActionMapping(new Keyboard.KeyStroke(Keyboard.KeyCode.B,
            Keyboard.Modifier.SHIFT.getMask()), "action2"));

        window.open(display);
        window.requestFocus();
View Full Code Here

    @BXML private Calendar calendar = null;
    @BXML private CalendarButton calendarButton = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();

        window = (Window)bxmlSerializer.readObject(CalendarTest.class, "calendar_test.bxml");
        bxmlSerializer.bind(this, CalendarTest.class);

        Filter<CalendarDate> todayFilter = new Filter<CalendarDate>() {
            @Override
            public boolean include(CalendarDate date) {
                CalendarDate today = new CalendarDate();
View Full Code Here

            }
        };

        Action.getNamedActions().put("buttonAction", action);

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("spinner_focus_test.bxml")));
        frame.setTitle("Spinner Focus Test");
        frame.open(display);

        spinner = (Spinner)bxmlSerializer.getNamespace().get("spinner");
        spinner.requestFocus();

        // action.setEnabled(false);
    }
View Full Code Here

            ApplicationContext.applyStylesheet(stylesheet);
        }

        // Load the file and open the window
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        this.window = (Window)bxmlSerializer.readObject(location, resources);
        this.window.open(display);
    }
View Full Code Here

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

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

public class DeploymentExample implements Application {
    private Window window = null;

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

TOP

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

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.