Package org.apache.pivot.wtk

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


            if (direction == null) {
                throw new IllegalArgumentException("direction is null.");
            }

            Window window = (Window)container;

            return window.getContent();
        }
View Full Code Here


    protected boolean pressed = false;

    public ListButtonSkin() {
        listView = new ListView();

        listViewPopup = new Window();
        listViewPopup.getComponentMouseButtonListeners().add(listViewPopupMouseButtonListener);
        listViewPopup.getComponentKeyListeners().add(listViewPopupKeyListener);
        listViewPopup.getWindowStateListeners().add(listViewPopupWindowStateListener);
    }
View Full Code Here

                CalendarButton calendarButton = (CalendarButton)getComponent();
                calendarButton.setMonth(calendarArgument.getMonth());
            }
        });

        calendarPopup = new Window();
        calendarPopup.getComponentMouseButtonListeners().add(calendarPopupMouseButtonListener);
        calendarPopup.getComponentKeyListeners().add(calendarPopupKeyListener);
        calendarPopup.getWindowStateListeners().add(calendarPopupWindowStateListener);
    }
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

        BoxPane windowContent = new BoxPane();
        PushButton button = new PushButton("Open Sheet");
        button.getButtonPressListeners().add(new ButtonPressListener() {
            @Override
            public void buttonPressed(Button buttonArgument) {
                final Window window = FileBrowserWithCharsetTest.getActiveWindow();
                final FileBrowserSheet fileBrowserSheet = new FileBrowserWithCharsetTest(FileBrowserSheet.Mode.OPEN);

                fileBrowserSheet.open(window, new SheetCloseListener() {
                    @Override
                    public void sheetClosed(Sheet sheet) {
View Full Code Here

        // Add the display to the display list
        displays.add(displayHost.getDisplay());

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

        // Open the Pivot window on the display
        window.open(displayHost.getDisplay());

        // Open and select the internal frame
        internalFrame.setLocation(240, 100);
        internalFrame.setSize(480, 360);
        internalFrame.setVisible(true);
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("baseline_test.bxml")));
        window.setTitle("Baseline Test");
        window.setMaximized(true);
        window.open(display);
    }
View Full Code Here

            private void loadBXML(final Display displayArgument, final double weight) {
                try {
                    ApplicationContext.queueCallback(new Runnable() {
                        @Override
                        public void run() {
                            Window window = null;
                            try {
                                window = (Window) new BXMLSerializer().readObject(
                                        this.getClass().getResource("splash.bxml"));
                            } catch (Exception e) {
                                throw new RuntimeException(e);
                            }
                            if (window != null) {
                                window.open(displayArgument);
                                progressOverlay.increment(weight);
                            }
                        }
                    });
                } catch (Exception e) {
View Full Code Here

    private Window window = null;

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        window = new Window();
        BoxPane boxPane = new BoxPane();
        boxPane.getStyles().put("horizontalAlignment", HorizontalAlignment.RIGHT);

        PushButton uploadButton = new PushButton("Upload");
        uploadButton.getStyles().put("minimumAspectRatio", 3.0f);
View Full Code Here


        final CardPane cardPane = new CardPane();
        cardPane.getStyles().put("selectionChangeEffect", CardPaneSkin.SelectionChangeEffect.HORIZONTAL_SLIDE);

        final Window window = new Window(cardPane);
        window.open(display);

        DesktopApplicationContext.scheduleRecurringCallback(new Runnable() {
            @Override
            public void run() {
                Thread.currentThread().setName("switcher-thread");
View Full Code Here

TOP

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

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.