Package org.silverpeas.core.web.ddwe
Class DragAndDropEditorConfig
- java.lang.Object
-
- org.silverpeas.core.web.ddwe.DragAndDropEditorConfig
-
public class DragAndDropEditorConfig extends Object
Permits to set a specific configuration.- Author:
- silveryocha
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DragAndDropEditorConfig.Builder
Builder dedicated toDragAndDropEditorConfig
instantiation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTo(WbeEdition.Configuration wbeConfiguration)
Registers intoWbeEdition.Configuration
theDragAndDropEditorConfig
.String
getCancelUrl()
static Optional<DragAndDropEditorConfig>
getFrom(WbeEdition.Configuration wbeConfiguration)
Gets from WBE edition configuration the Drag And Drop editor configuration.List<BrowseBarElement>
getManualBrowseBarElements()
DragAndDropMode
getMode()
String
getValidateUrl()
static DragAndDropEditorConfig.Builder
withConnectors(String validateUrl, String cancelUrl)
Initialization of the editor of a Drag And Drop Edition.
-
-
-
Method Detail
-
withConnectors
public static DragAndDropEditorConfig.Builder withConnectors(String validateUrl, String cancelUrl)
Initialization of the editor of a Drag And Drop Edition.- Parameters:
validateUrl
- the URL to perform when validating the data.cancelUrl
- the URL to perform when cancelling the modifications.- Returns:
- a
DragAndDropEditorConfig.Builder
instance.
-
getFrom
public static Optional<DragAndDropEditorConfig> getFrom(WbeEdition.Configuration wbeConfiguration)
Gets from WBE edition configuration the Drag And Drop editor configuration.- Parameters:
wbeConfiguration
-WbeEdition.Configuration
instance.- Returns:
- an optional
DragAndDropEditorConfig
instance.
-
getValidateUrl
public String getValidateUrl()
-
getCancelUrl
public String getCancelUrl()
-
getManualBrowseBarElements
public List<BrowseBarElement> getManualBrowseBarElements()
-
getMode
public DragAndDropMode getMode()
-
applyTo
public void applyTo(WbeEdition.Configuration wbeConfiguration)
Registers intoWbeEdition.Configuration
theDragAndDropEditorConfig
.- Parameters:
wbeConfiguration
- aWbeEdition.Configuration
instance.
-
-