Class ElementSelectionDlg

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.nomagic.ui.Dialog
com.nomagic.ui.SimpleBaseDialog
com.nomagic.magicdraw.ui.dialogs.selection.ElementSelectionDlg
All Implemented Interfaces:
Cachable, com.nomagic.ui.CursorOwner, HiDPIScalableComponent, NotificationsContainer, ActionListener, KeyListener, MouseListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

@OpenApi public class ElementSelectionDlg extends com.nomagic.ui.SimpleBaseDialog
Element selection dialog. Use ElementSelectionDlgFactory to create the dialog.
See Also:
  • Method Details

    • getSelectedElement

      @OpenApi @CheckForNull public BaseElement getSelectedElement()
      Get selected element. Available only if OK of dialog is clicked (isOkClicked()).
      Returns:
      selected element. Can be null.
    • getSelectedElements

      @OpenApi public List<BaseElement> getSelectedElements()
      Get selected elements. Available only if OK of dialog is clicked (isOkClicked()).
      Returns:
      selected elements.
    • isOkClicked

      @OpenApi public boolean isOkClicked()
      Check if OK button is clicked.
      Returns:
      true - OK is clicked, otherwise false.
    • setSelectionMode

      @OpenApi public void setSelectionMode(SelectionMode selectionMode)
      Set element(s) selection mode.
      Parameters:
      selectionMode - selection mode.