Class DropTargetImpl
- java.lang.Object
-
- io.wcm.handler.commons.editcontext.DropTargetImpl
-
- All Implemented Interfaces:
com.day.cq.commons.JSONItem,com.day.cq.wcm.api.components.DropTarget
@ProviderType public final class DropTargetImpl extends Object implements com.day.cq.wcm.api.components.DropTarget
DropTargetimplementation.
-
-
Constructor Summary
Constructors Constructor Description DropTargetImpl(String name, String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAccept()Returns the mime-type accept patternsString[]getGroups()Returns the DD groups for this targetStringgetId()Returns the id for the drop target element. this is currently the same as the name, prefixed with theDropTarget.CSS_CLASS_PREFIXStringgetName()Returns the name of this drop targetMap<String,String>getParameters()Returns a map of additional parameters to be set on the target nodeStringgetPropertyName()Returns the property name to use for this drop target.DropTargetImplsetAccept(String[] values)DropTargetImplsetGroups(String[] values)DropTargetImplsetParameters(Map<String,String> value)voidwrite(org.apache.sling.commons.json.io.JSONWriter out)
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of this drop target- Specified by:
getNamein interfacecom.day.cq.wcm.api.components.DropTarget- Returns:
- drop target name
-
getId
public String getId()
Returns the id for the drop target element. this is currently the same as the name, prefixed with theDropTarget.CSS_CLASS_PREFIX- Specified by:
getIdin interfacecom.day.cq.wcm.api.components.DropTarget- Returns:
- drop target id
-
getPropertyName
public String getPropertyName()
Returns the property name to use for this drop target.- Specified by:
getPropertyNamein interfacecom.day.cq.wcm.api.components.DropTarget- Returns:
- the property name.
-
getGroups
public String[] getGroups()
Returns the DD groups for this target- Specified by:
getGroupsin interfacecom.day.cq.wcm.api.components.DropTarget- Returns:
- the DD groups.
-
setGroups
public DropTargetImpl setGroups(String[] values)
- Parameters:
values- the DD groups.- Returns:
- this
-
getAccept
public String[] getAccept()
Returns the mime-type accept patterns- Specified by:
getAcceptin interfacecom.day.cq.wcm.api.components.DropTarget- Returns:
- the accept patterns
-
setAccept
public DropTargetImpl setAccept(String[] values)
- Parameters:
values- the accept patterns- Returns:
- this
-
getParameters
public Map<String,String> getParameters()
Returns a map of additional parameters to be set on the target node- Specified by:
getParametersin interfacecom.day.cq.wcm.api.components.DropTarget- Returns:
- a map of additional parameters.
-
setParameters
public DropTargetImpl setParameters(Map<String,String> value)
- Parameters:
value- a map of additional parameters.- Returns:
- this
-
write
public void write(org.apache.sling.commons.json.io.JSONWriter out) throws org.apache.sling.commons.json.JSONException- Specified by:
writein interfacecom.day.cq.commons.JSONItem- Throws:
org.apache.sling.commons.json.JSONException
-
-