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 java.lang.Object implements CmsAutoItemCreatingComboBox.I_NewValueHandler
Helper class used when new options are automatically added to a site selector combo box.
-
-
Constructor Summary
Constructors Constructor Description CmsSiteSelectorNewValueHandler(java.lang.String captionPropertyId)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
ensureItem(com.vaadin.v7.data.Container cnt, java.lang.Object id)
Ensure that an item with the given id or a suitable replacement id exists.
-
-
-
Constructor Detail
-
CmsSiteSelectorNewValueHandler
public CmsSiteSelectorNewValueHandler(java.lang.String captionPropertyId)
Creates a new instance.- Parameters:
captionPropertyId
- the item property containing the caption
-
-
Method Detail
-
ensureItem
public java.lang.Object ensureItem(com.vaadin.v7.data.Container cnt, java.lang.Object id)
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:
CmsAutoItemCreatingComboBox.I_NewValueHandler.ensureItem(com.vaadin.v7.data.Container, java.lang.Object)
-
-