Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.Window$WindowClassListenerList


public class Pivot800 extends Application.Adapter {
    private FileBrowserSheet sheet;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        Window window = new Window();
        window.setMaximized(true);
        sheet = new FileBrowserSheet(FileBrowserSheet.Mode.SAVE_TO);
        sheet.getWindowStateListeners().add(new SelectFileListener());
        window.open(display);
        sheet.open(window);
    }
View Full Code Here


        listView.setCheckmarksEnabled(true);
        listView.setItemChecked(4, true);
        listView.setItemChecked(6, true);

        window = new Window(listView);
        window.open(display);

        listData.insert("-1", 0);
        listData.insert("-2", 0);
View Full Code Here

{

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

                paragraph.getParagraphListeners().add(paragraphListener);
            }
        });

        Window window = new Window(textArea);
        window.open(display);
      }
View Full Code Here

    }

    @Override
    public boolean shutdown(boolean optional) {
        for (int i = display.getLength() - 1; i >= 0; i--) {
            Window window = (Window)display.get(i);
            window.close();
        }

        return false;
    }
View Full Code Here

    @Override
    public void startup(final Display display, Map<String, String> properties) throws Exception {
        final MenuButton button = new MenuButton();
        button.setButtonData("Populate menu and open!");
        Window window = new Window(button);

        button.getListPopup().getWindowStateListeners().add(new WindowStateListener.Adapter() {
            @Override
            public Vote previewWindowOpen(Window windowArgument) {
                Menu menu = new Menu();
                Menu.Section section = new Menu.Section();
                menu.getSections().add(section);
                section.add(new Menu.Item("A dynamically added menu item"));
                button.setMenu(menu);

                menuPopulated = true;
                return Vote.APPROVE;
            }

            @Override
            public void windowOpened(Window windowArgument) {
                if (!menuPopulated)
                    Alert.alert("Window was opened before the menu was populated." +
                            "Either previewWindowOpen threw an exception, or it wasn't called before the Window was opened.", windowArgument);
            }

            @Override
            public void windowClosed(Window windowArgument, Display displayArgument, Window owner) {
                // Remove menu for subsequent open attempt
                button.setMenu(null);
                menuPopulated = false;
            }
        });


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

        });

        Border border = new Border(boxPane);
        border.getStyles().put("color", 7);
        border.getStyles().put("padding", 5);
        window = new Window(border);
        window.setMaximized(true);
        window.open(display);
    }
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception
    {
        // TODO: empty currently ...

        Window window = new Window();
        window.open(display);
      }
View Full Code Here

                prompt.open(frame);

                Display displayLocal = DesktopApplicationContext.createDisplay(640, 480, 100, 100, true,
                    true, false, buttonArgument.getDisplay().getHostWindow(), null);

                Window window = new Window();
                window.setTitle("New Secondary Window");
                window.setMaximized(true);
                window.setContent(new Label("I am a secondary window!"));
                window.open(displayLocal);
            }
        });

        sheet.getWindowStateListeners().add(new WindowStateListener.Adapter() {
            @Override
View Full Code Here

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

    @Override
    public void startup(Display display, Map<String, String> properties) {
        this.window = new Window();

        Label label = new Label();
        label.setText("Hello World!");
        label.getStyles().put("font", new Font("Arial", Font.BOLD, 24));
        label.getStyles().put("color", Color.RED);
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.Window$WindowClassListenerList

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.