Skip to content

Commit

Permalink
plugins/Popup: Added modality and reset popup position on visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosousadias committed Jul 27, 2024
1 parent 326d04e commit 2e8d388
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/java/pt/lsts/neptus/plugins/Popup.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*/
package pt.lsts.neptus.plugins;

import java.awt.Dialog;
import java.awt.event.KeyEvent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down Expand Up @@ -74,4 +75,14 @@ public enum POSITION {TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, LEFT, RIGH
* To set it, you can use the constants in the class {@link KeyEvent}
*/
int accelerator() default KeyEvent.VK_UNDEFINED;

/**
* The modality of the dialog
*/
Dialog.ModalityType modality() default Dialog.ModalityType.MODELESS;

/**
* If set to true, the popup will be always reset to the position defined by the pos() attribute
*/
boolean alwaysResetPopupPosition() default false;
}

0 comments on commit 2e8d388

Please sign in to comment.