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 java.lang.Object implements com.day.cq.wcm.api.components.DropTargetDropTargetimplementation.
-
-
Constructor Summary
Constructors Constructor Description DropTargetImpl(java.lang.String name, java.lang.String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getAccept()Returns the mime-type accept patternsjava.lang.String[]getGroups()Returns the DD groups for this targetjava.lang.StringgetId()Returns the id for the drop target element. this is currently the same as the name, prefixed with theDropTarget.CSS_CLASS_PREFIXjava.lang.StringgetName()Returns the name of this drop targetjava.util.Map<java.lang.String,java.lang.String>getParameters()Returns a map of additional parameters to be set on the target nodejava.lang.StringgetPropertyName()Returns the property name to use for this drop target.DropTargetImplsetAccept(java.lang.String[] values)DropTargetImplsetGroups(java.lang.String[] values)DropTargetImplsetParameters(java.util.Map<java.lang.String,java.lang.String> value)voidwrite(org.apache.sling.commons.json.io.JSONWriter out)
-
-
-
Method Detail
-
getName
public java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.lang.String[] values)
- Parameters:
values- the DD groups.- Returns:
- this
-
getAccept
public java.lang.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(java.lang.String[] values)
- Parameters:
values- the accept patterns- Returns:
- this
-
getParameters
public java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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
-
-