@Override public Vote previewWindowClose(Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } return Vote.APPROVE; }
@Override public Vote previewWindowClose(Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } return Vote.APPROVE; }
@Override public Vote previewWindowClose(Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } return Vote.APPROVE; }
@Override public Vote previewWindowClose(Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } return Vote.APPROVE; }
@Override public Vote previewWindowClose(Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } return Vote.APPROVE; }
@Override public Vote previewWindowClose(Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } return Vote.APPROVE; }
@Override public void focusedChanged(Component component, Component obverseComponent) { super.focusedChanged(component, obverseComponent); repaintComponent(); // Close the popup if focus was transferred to a component whose // window is not the popup if (!component.isFocused()) { pressed = false; if (!listViewPopup.containsFocus()) { listViewPopup.close(); } } }
@Override public void focusedChanged(Component component, Component obverseComponent) { super.focusedChanged(component, obverseComponent); repaintComponent(); // Close the popup if focus was transferred to a component whose // window is not the popup if (!component.isFocused()) { pressed = false; if (!calendarPopup.containsFocus()) { calendarPopup.close(); } } }
@Override public void focusedChanged(Component component, Component obverseComponent) { super.focusedChanged(component, obverseComponent); repaintComponent(); // Close the popup if focus was transferred to a component whose // window is not the popup if (!component.isFocused()) { pressed = false; if (!listViewPopup.containsFocus()) { listViewPopup.close(); } } }
@Override public void focusedChanged(Component component, Component obverseComponent) { super.focusedChanged(component, obverseComponent); repaintComponent(); // Close the popup if focus was transferred to a component whose // window is not the popup if (!component.isFocused()) { pressed = false; if (!calendarPopup.containsFocus()) { calendarPopup.close(); } } }
/** * Moves the window to the bottom of the window stack. If the window is * active, the active window will be cleared. If the window is the focus * host, the focus will be cleared. */ public void moveToBack() { if (!isOpen()) { throw new IllegalStateException("Window is not open."); } if (isActive()) { clearActive(); } if (containsFocus()) { clearFocus(); } // Ensure that the window and all of its owning ancestors are moved // to the back Display display = getDisplay(); int i = display.indexOf(this); if (i > 0) { display.move(i, 0); } if (owner != null) { owner.moveToBack(); } }
/** * Moves the window to the bottom of the window stack. If the window is * active, the active window will be cleared. If the window is the focus * host, the focus will be cleared. */ public void moveToBack() { if (!isOpen()) { throw new IllegalStateException("Window is not open."); } if (isActive()) { clearActive(); } if (containsFocus()) { clearFocus(); } // Ensure that the window and all of its owning ancestors are moved // to the back Display display = getDisplay(); int i = display.indexOf(this); if (i > 0) { display.move(i, 0); } if (owner != null) { owner.moveToBack(); } }