Search in sources :

Example 6 with Dialog

use of org.apache.pivot.wtk.Dialog in project pivot by apache.

the class TerraDialogSkin method mouseDown.

@Override
public boolean mouseDown(Container container, Mouse.Button button, int x, int y) {
    Dialog dialog = (Dialog) container;
    if (!dialog.isTopMost()) {
        Window rootOwner = dialog.getRootOwner();
        rootOwner.moveToFront();
    }
    return super.mouseDown(container, button, x, y);
}
Also used : Window(org.apache.pivot.wtk.Window) Dialog(org.apache.pivot.wtk.Dialog)

Aggregations

Dialog (org.apache.pivot.wtk.Dialog)6 ArrayList (org.apache.pivot.collections.ArrayList)2 DialogCloseListener (org.apache.pivot.wtk.DialogCloseListener)2 Color (java.awt.Color)1 IOException (java.io.IOException)1 BXMLSerializer (org.apache.pivot.beans.BXMLSerializer)1 SerializationException (org.apache.pivot.serialization.SerializationException)1 CalendarDate (org.apache.pivot.util.CalendarDate)1 Alert (org.apache.pivot.wtk.Alert)1 CalendarButton (org.apache.pivot.wtk.CalendarButton)1 CalendarButtonSelectionListener (org.apache.pivot.wtk.CalendarButtonSelectionListener)1 Component (org.apache.pivot.wtk.Component)1 ComponentListener (org.apache.pivot.wtk.ComponentListener)1 Frame (org.apache.pivot.wtk.Frame)1 Label (org.apache.pivot.wtk.Label)1 ListButton (org.apache.pivot.wtk.ListButton)1 Palette (org.apache.pivot.wtk.Palette)1 Sheet (org.apache.pivot.wtk.Sheet)1 Window (org.apache.pivot.wtk.Window)1 ReflectionDecorator (org.apache.pivot.wtk.effects.ReflectionDecorator)1