Package org.apache.pivot.wtkx

Examples of org.apache.pivot.wtkx.WTKXSerializer.readObject()


        frame.setTitle("Component Pane Test");
        frame.setPreferredSize(800, 600);
        frame.setLocation(20, 20);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        sheet = (Sheet)wtkxSerializer.readObject(this, "card_pane_test.wtkx");
        cardPane = (CardPane)wtkxSerializer.get("cardPane");
        sizeGroup = (ButtonGroup)wtkxSerializer.get("sizeGroup");

        sizeGroup.getButtonGroupListeners().add(new ButtonGroupListener.Adapter() {
            @Override
View Full Code Here


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

        window = (Window)wtkxSerializer.readObject(this, "calendar_test.wtkx");
        wtkxSerializer.bind(this, CalendarTest.class);

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

        // Load the prompt content
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        Component content = null;

        try {
            content = (Component)wtkxSerializer.readObject(this, "terra_prompt_skin.wtkx");
        } catch(Exception exception) {
            throw new RuntimeException(exception);
        }

        prompt.setContent(content);
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = (Window)wtkxSerializer.readObject(this, "data_binding.wtkx");
        form = (Form)wtkxSerializer.get("form");
        loadJavaButton = (PushButton)wtkxSerializer.get("loadJavaButton");
        loadJSONButton = (PushButton)wtkxSerializer.get("loadJSONButton");
        clearButton = (PushButton)wtkxSerializer.get("clearButton");
        sourceLabel = (Label)wtkxSerializer.get("sourceLabel");
View Full Code Here

        // Load the alert content
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        Component content = null;

        try {
            content = (Component)wtkxSerializer.readObject(this, "terra_alert_skin.wtkx");
        } catch(Exception exception) {
            throw new RuntimeException(exception);
        }

        alert.setContent(content);
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = (Window)wtkxSerializer.readObject(this, "rss_feed_demo.wtkx");
        feedListView = (ListView)wtkxSerializer.get("feedListView");
        cardPane = (CardPane)wtkxSerializer.get("cardPane");
        statusLabel = (Label)wtkxSerializer.get("statusLabel");

        feedListView.getComponentMouseButtonListeners().add(new ComponentMouseButtonListener.Adapter() {
View Full Code Here

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

        TableViewRowEditor tableViewRowEditor = new TableViewRowEditor();
        tableViewRowEditor.setEditEffect(CardPaneSkin.SelectionChangeEffect.HORIZONTAL_SLIDE);
        tableView.setRowEditor(tableViewRowEditor);
View Full Code Here

        mainWindow = new Window(border);
        mainWindow.setMaximized(true);
        mainWindow.open(display);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
        wtkxSerializer.reset();

        translucentFrame = (Frame)wtkxSerializer.readObject(this, "translucent.wtkx");

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

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
        wtkxSerializer.reset();

        translucentFrame = (Frame)wtkxSerializer.readObject(this, "translucent.wtkx");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);

        translucentFrame.getComponentMouseListeners().add(new ComponentMouseListener.Adapter() {
View Full Code Here

            throw new RuntimeException(exception);
        }

        WTKXSerializer wtkxSerializer = new WTKXSerializer(resources);
        try {
            content = (Component)wtkxSerializer.readObject(this, "terra_file_browser_skin.wtkx");
        } 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.