public interface SelectStoreElementOperation
Modifier and Type | Interface and Description |
---|---|
static interface |
SelectStoreElementOperation.Selection
A selection container providing access to the selected element and remote project name.
|
Modifier and Type | Field and Description |
---|---|
static OperationType<SelectStoreElementOperation> |
TYPE
The operation's type.
|
Modifier and Type | Method and Description |
---|---|
ProjectOptions |
addProject(String remoteProjectName)
Adds the named project as selection source.
|
void |
addProjectFromRestriction(ProjectRestriction projectRestriction)
Add a project from a clause representation.
|
void |
addTypeToHide(Class<?> type)
Adds a type to be hidden on displaying selectable and navigatable elements.
|
void |
addTypeToSelect(Class<?> type)
Adds a type where elements thereof are eligible for selection.
|
void |
applyFilterFolderBased(boolean folderBased)
The element selection filter allows/shows only child elements of folders.
|
List<SelectStoreElementOperation.Selection> |
perform()
Performs the operation with the previously set configuration and returns the set of selections.
|
void |
selectUiType(SelectUiType uiType)
Set the type of user interface which is used to make a selection.
|
void |
setAllowLeafsOnly(boolean leafsOnly)
Restricts the final selection to leaf elements, i.e. elements not having any children, real or virtual.
|
void |
setMultiSelect(boolean enable)
Enables multiple selection.
|
void |
setPreselection(String projectName,
IDProvider element,
Resolution resolution)
Sets a preselection.
|
void |
setSelectFromRelease(boolean release)
Defines, whether released elements will be provided for selection.
|
void |
setSelectResolution(boolean enable)
Enables resolution selection on picture elements.
|
void |
setTitle(String title)
Sets the selection view's title.
|
static final OperationType<SelectStoreElementOperation> TYPE
void setTitle(String title)
title
- The view title.void setPreselection(@Nullable String projectName, @NotNull IDProvider element, @Nullable Resolution resolution)
projectName
- The symbolic name of the project the element belongs to or null
, if it is not remote.element
- The element to be pre-selected.resolution
- The resolution of a picture, if the element refers to a picture.void setMultiSelect(boolean enable)
enable
- If true
, enables multi selection.void setSelectResolution(boolean enable)
enable
- If true
, enables resolution selection.void addTypeToSelect(Class<?> type)
type
- Type of selectable elements.void addTypeToHide(Class<?> type)
Note: Elements allowed for selection will not be hidden.
type
- Type to be hidden.@NotNull ProjectOptions addProject(@Nullable String remoteProjectName)
null
, the local project is added.remoteProjectName
- The symbolic name of the remote project or null
.void addProjectFromRestriction(@NotNull ProjectRestriction projectRestriction)
projectRestriction
- The clause to derive from.void applyFilterFolderBased(boolean folderBased)
folderBased
- true
if folder based otherwise false
void setAllowLeafsOnly(boolean leafsOnly)
leafsOnly
- true
, to allow leafs elements only.void selectUiType(@NotNull SelectUiType uiType)
SelectUiType.DIALOG
.uiType
- the type used for selectionvoid setSelectFromRelease(boolean release)
false
, allowing selections
of current (unreleased) elements.release
- if true
, provides released elements for selection, if false
, provides
current elements.@NotNull List<SelectStoreElementOperation.Selection> perform()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500