Package org.apache.pivot.wtk

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


        window.setFocusTraversalPolicy(new WindowFocusTraversalPolicy());
    }

    @Override
    public int getPreferredWidth(int height) {
        Window window = (Window)getComponent();
        Component content = window.getContent();

        return (content != null) ? content.getPreferredWidth(height) : 0;
    }
View Full Code Here


        return (content != null) ? content.getPreferredWidth(height) : 0;
    }

    @Override
    public int getPreferredHeight(int width) {
        Window window = (Window)getComponent();
        Component content = window.getContent();

        return (content != null) ? content.getPreferredHeight(width) : 0;
    }
View Full Code Here

        return (content != null) ? content.getPreferredHeight(width) : 0;
    }

    @Override
    public Dimensions getPreferredSize() {
        Window window = (Window)getComponent();
        Component content = window.getContent();

        return (content != null) ? content.getPreferredSize() : new Dimensions(0, 0);
    }
View Full Code Here

        return (content != null) ? content.getPreferredSize() : new Dimensions(0, 0);
    }

    @Override
    public void layout() {
        Window window = (Window)getComponent();
        Component content = window.getContent();

        if (content != null) {
            content.setSize(window.getSize());
        }
    }
View Full Code Here

    @Override
    public boolean mouseDown(Container container, Mouse.Button button, int x, int y) {
        boolean consumed = super.mouseDown(container, button, x, y);

        Window window = (Window)container;
        window.moveToFront();

        return consumed;
    }
View Full Code Here

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

            Window window = (Window)container;

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

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

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

        throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();

        System.out.println("Left   Click on List elements to Select a Row");

        window = new Window((Component)bxmlSerializer.readObject(getClass().getResource("listview_test2.bxml")));
        menu = (Window)bxmlSerializer.readObject(TableViewTest2.class, "context_menus.bxml");

        window.setMenuHandler(new ContextMenusSampleMenuHandlerAdapter());
        System.out.println("Right  Click on Window (and List elements) to display Contextual Menu: " + menu);
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

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.