Package org.apache.pivot.wtk

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


    };

    public CalendarButtonSkin() {
        calendar = new Calendar();

        calendarPopup = new Window();
        calendarPopup.getComponentMouseButtonListeners().add(calendarPopupMouseButtonListener);
        calendarPopup.getComponentKeyListeners().add(calendarPopupKeyListener);
        calendarPopup.getWindowStateListeners().add(calendarPopupWindowStateListener);
    }
View Full Code Here


    @Override
    public void focusedChanged(Component component, Component obverseComponent) {
        super.focusedChanged(component, obverseComponent);

        TextInput textInput = (TextInput)component;
        Window window = textInput.getWindow();

        if (component.isFocused()) {
            // If focus was permanently transferred within this window,
            // select all
            if (obverseComponent == null
View Full Code Here

                // Close once we've transitioned back to the image card
                if (cardPane.getSelectedIndex() == IMAGE_CARD_INDEX) {
                    Display display = getDisplay();
                    display.getContainerMouseListeners().remove(this);

                    Window owner = getOwner();

                    super.close();
                    closing = false;

                    // Move the owner to front
                    owner.moveToFront();

                    // Clear the table pane row so the custom cell editors
                    // can be re-used in the next editor popup
                    TablePane.Row tablePaneRow = tablePane.getRows().get(0);
                    tablePaneRow.remove(0, tablePaneRow.getLength());
View Full Code Here

        public boolean mouseDown(Container container, Mouse.Button button, int x, int y) {
            if (!opening
                && !closing) {
                // If the event occurred outside the popup, close the popup
                Display display = (Display)container;
                Window window = (Window)display.getComponentAt(x, y);

                if (window != this &&
                    (window == null || !isOwner(window))) {
                    saveChanges();
                }
View Full Code Here

            int scrollAmount, int wheelRotation, int x, int y) {
            boolean consumed = false;

            // If the event occurred outside the popup, consume the event
            Display display = (Display)container;
            Window window = (Window)display.getComponentAt(x, y);

            if (window != this &&
                (window == null || !isOwner(window))) {
                consumed = true;
            }
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        Border border = new Border();
        border.getStyles().put("color", 10);
        border.getStyles().put("backgroundColor", 3);
        mainWindow = new Window(border);
        mainWindow.setMaximized(true);
        mainWindow.open(display);

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
View Full Code Here

                return false;
            }
        });

        window = new Window(listView);
        window.setTitle("Checked List View Test");
        window.setMaximized(true);
        window.open(display);
    }
View Full Code Here

    }

    @Override
    public boolean mouseDown(Component component, Mouse.Button button, int x, int y) {
        Dialog dialog = (Dialog)component;
        Window rootOwner = dialog.getRootOwner();
        rootOwner.moveToFront();

        return super.mouseDown(component, button, x, y);
    }
View Full Code Here

    private TextInput textinputCustomBoolean = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        window = new Window((Component)wtkxSerializer.readObject(
            getClass().getResource("textInputValidator_test.wtkx")));
        textinputFloatRange = (TextInput)wtkxSerializer.get("textinputFloatRange");
        textinputIntRange = (TextInput)wtkxSerializer.get("textinputIntRange");
        textinputDateRegex = (TextInput)wtkxSerializer.get("textinputDateRegex");
        textinputCustomBoolean = (TextInput)wtkxSerializer.get("textinputCustomBoolean");
View Full Code Here

            menu.activateNextItem();
            consumed = true;
        } else if (keyCode == Keyboard.KeyCode.LEFT) {
            // Close the window if this is not a top-level menu
            if (menu.getItem() != null) {
                Window window = menu.getWindow();
                window.close();
                consumed = true;
            }
        } else if (keyCode == Keyboard.KeyCode.RIGHT) {
            Menu.Item activeItem = menu.getActiveItem();
View Full Code Here

TOP

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

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.