Class SelectionMode
- java.lang.Object
-
- com.nomagic.magicdraw.ui.dialogs.selection.SelectionMode
-
@OpenApiAll public final class SelectionMode extends java.lang.Object
Describes element selection mode. Element selection can support single/multiple selection modes. The multiple selection mode allows to initialize selection in single mode.- See Also:
SINGLE_MODE
,MULTIPLE_MODE
,MULTIPLE_MODE_SINGLE_INITIAL
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
mSingleInitialMode
If single initial selection mode.private boolean
mSingleMode
If selection modestatic SelectionMode
MULTIPLE_MODE
Multiple selection mode (with initial multiple selection).static SelectionMode
MULTIPLE_MODE_SINGLE_INITIAL
Multiple selection mode with initial single selection mode.static SelectionMode
SINGLE_MODE
Single selection mode.
-
Constructor Summary
Constructors Modifier Constructor Description private
SelectionMode(boolean singleMode, boolean singleInitialMode)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInitialSingleMode()
Check initial selection mode.boolean
isSingleMode()
Check selection mode.
-
-
-
Field Detail
-
SINGLE_MODE
public static final SelectionMode SINGLE_MODE
Single selection mode.
-
MULTIPLE_MODE
public static final SelectionMode MULTIPLE_MODE
Multiple selection mode (with initial multiple selection).
-
MULTIPLE_MODE_SINGLE_INITIAL
public static final SelectionMode MULTIPLE_MODE_SINGLE_INITIAL
Multiple selection mode with initial single selection mode.
-
mSingleMode
private final boolean mSingleMode
If selection mode
-
mSingleInitialMode
private final boolean mSingleInitialMode
If single initial selection mode.
-
-
Constructor Detail
-
SelectionMode
private SelectionMode(boolean singleMode, boolean singleInitialMode)
Constructor.- Parameters:
singleMode
- true if single selection mode supported, false - multiple selection mode supported.singleInitialMode
- true if initially use single selection mode, false - initially use multiple selection mode.
-
-
Method Detail
-
isSingleMode
public boolean isSingleMode()
Check selection mode.- Returns:
- true - single selection mode, false - multiple selection mode.
-
isInitialSingleMode
public boolean isInitialSingleMode()
Check initial selection mode. IfisSingleMode()
returns true, this method also returns true. Only multiple selection mode supports multiple initial selection mode.- Returns:
- true - single selection mode, false - multiple selection mode.
-
-