public class NamedAreaSelectionDialog extends AbstractFilteredCdmResourceSelectionDialog<eu.etaxonomy.cdm.model.location.NamedArea>
AbstractFilteredCdmResourceSelectionDialog.FilteredCdmResourceLabelProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<eu.etaxonomy.cdm.model.common.TermVocabulary> |
preselectedVocabularies |
protected java.util.List<eu.etaxonomy.cdm.model.common.TermVocabulary> |
selectedVocabularies |
cdmBaseToBeFiltered, limitOfInitialElements, model
btnCheckButton, contentProvider, filterButton, new_id, new_id2, newButton1, newButton2, preferenceID, space_id, useIdentifier
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Modifier | Constructor and Description |
---|---|
protected |
NamedAreaSelectionDialog(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
boolean multi,
eu.etaxonomy.cdm.model.location.NamedArea namedArea,
java.lang.Object preferenceId,
java.util.UUID... preselectedVocabularyUuids) |
Modifier and Type | Method and Description |
---|---|
protected AbstractNewEntityWizard |
getNewEntityWizard(java.lang.String parameter)
getNewEntityWizard
|
protected java.lang.String[] |
getNewWizardText()
getNewWizardLinkText
|
protected eu.etaxonomy.cdm.model.location.NamedArea |
getPersistentObject(java.util.UUID uuid)
getPersistentObject
|
protected java.lang.String |
getTitle(eu.etaxonomy.cdm.model.location.NamedArea namedArea)
getTitle
|
protected void |
init()
Override in subclasses.
|
static eu.etaxonomy.cdm.model.location.NamedArea |
select(org.eclipse.swt.widgets.Shell shell,
eu.etaxonomy.cdm.model.location.NamedArea namedArea,
java.lang.String preferenceId,
java.util.UUID... preselectedVocabularyUuids)
Creates a filtered selection dialog to select a named area.
|
void |
setSelectedVocabularies() |
createButtonsForButtonBar, createDetailsLabelProvider, createListLabelProvider, fillContentProvider, getCdmObjectByUuid, getDialogSettings, getElementName, getItemsComparator, getNewWizardButtonSelectionListener, getSelectedUuidAndTitleCache, getSelectionFromDialog, getSettings, getUuidAndTitleCacheSelectionFromDialog, isObjectTransient, search, setPattern, sort
addIdentifierCheckButton, configureShell, createDialogArea, getCurrentSelection, getFilterButton, getInitialSize, getList, getMessage, getNewButton1, getNewButton2, getSearchField, isUseIdentifier, refresh, setFilterButton, setList, setListLabelProvider, setMessage, setNewButton1, setNewButton2, setSearchField
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
protected java.util.List<eu.etaxonomy.cdm.model.common.TermVocabulary> selectedVocabularies
protected java.util.ArrayList<eu.etaxonomy.cdm.model.common.TermVocabulary> preselectedVocabularies
protected NamedAreaSelectionDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, boolean multi, eu.etaxonomy.cdm.model.location.NamedArea namedArea, java.lang.Object preferenceId, java.util.UUID... preselectedVocabularyUuids)
public static eu.etaxonomy.cdm.model.location.NamedArea select(org.eclipse.swt.widgets.Shell shell, eu.etaxonomy.cdm.model.location.NamedArea namedArea, java.lang.String preferenceId, java.util.UUID... preselectedVocabularyUuids)
shell
- The shell for displaying this widgetnamedArea
- A namedArea that should be selected when the dialog opensconversation
- a ConversationHolder
object.preferenceId
- a class which is used for generating the preference key so that every
dialogs can be grouped to have their own preferences depending on this idpreselectedVocabularyUuids
- the UUID
s of the pre-selected vocabulariesNamedArea
object.protected eu.etaxonomy.cdm.model.location.NamedArea getPersistentObject(java.util.UUID uuid)
getPersistentObject
getPersistentObject
in class AbstractFilteredCdmResourceSelectionDialog<eu.etaxonomy.cdm.model.location.NamedArea>
uuid
- a UUID
object.protected void init()
init
in class AbstractFilteredCdmResourceSelectionDialog<eu.etaxonomy.cdm.model.location.NamedArea>
protected java.lang.String getTitle(eu.etaxonomy.cdm.model.location.NamedArea namedArea)
getTitle
getTitle
in class AbstractFilteredCdmResourceSelectionDialog<eu.etaxonomy.cdm.model.location.NamedArea>
namedArea
- a T object.String
object.protected AbstractNewEntityWizard getNewEntityWizard(java.lang.String parameter)
getNewEntityWizard
getNewEntityWizard
in class AbstractFilteredCdmResourceSelectionDialog<eu.etaxonomy.cdm.model.location.NamedArea>
AbstractNewEntityWizard
object.protected java.lang.String[] getNewWizardText()
getNewWizardLinkText
getNewWizardText
in class AbstractFilteredCdmResourceSelectionDialog<eu.etaxonomy.cdm.model.location.NamedArea>
String
object.public void setSelectedVocabularies()
Copyright © 2007-2018. All Rights Reserved.