Package org.opencms.ui.apps.modules.edit
Class CmsSiteSelectorNewValueHandler
java.lang.Object
org.opencms.ui.apps.modules.edit.CmsSiteSelectorNewValueHandler
- All Implemented Interfaces:
CmsAutoItemCreatingComboBox.I_NewValueHandler
public class CmsSiteSelectorNewValueHandler
extends Object
implements CmsAutoItemCreatingComboBox.I_NewValueHandler
Helper class used when new options are automatically added to a site selector combo box.
-
Constructor Summary
ConstructorDescriptionCmsSiteSelectorNewValueHandler
(String captionPropertyId) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionensureItem
(com.vaadin.v7.data.Container cnt, Object id) Ensure that an item with the given id or a suitable replacement id exists.
-
Constructor Details
-
CmsSiteSelectorNewValueHandler
Creates a new instance.- Parameters:
captionPropertyId
- the item property containing the caption
-
-
Method Details
-
ensureItem
Description copied from interface:CmsAutoItemCreatingComboBox.I_NewValueHandler
Ensure that an item with the given id or a suitable replacement id exists.- Specified by:
ensureItem
in interfaceCmsAutoItemCreatingComboBox.I_NewValueHandler
- Parameters:
cnt
- the containerid
- the id- Returns:
- the id actually used for the item
- See Also:
-