@ProviderType public final class DropTargetImpl extends Object implements com.day.cq.wcm.api.components.DropTarget
DropTarget implementation.| Constructor and Description |
|---|
DropTargetImpl(String name,
String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAccept()
Returns the mime-type accept patterns
|
String[] |
getGroups()
Returns the DD groups for this target
|
String |
getId()
Returns the id for the drop target element. this is currently the same
as the name, prefixed with the
DropTarget.CSS_CLASS_PREFIX |
String |
getName()
Returns the name of this drop target
|
Map<String,String> |
getParameters()
Returns a map of additional parameters to be set on the target node
|
String |
getPropertyName()
Returns the property name to use for this drop target.
|
DropTargetImpl |
setAccept(String[] values) |
DropTargetImpl |
setGroups(String[] values) |
DropTargetImpl |
setParameters(Map<String,String> value) |
void |
write(org.apache.sling.commons.json.io.JSONWriter out) |
public String getName()
getName in interface com.day.cq.wcm.api.components.DropTargetpublic String getId()
DropTarget.CSS_CLASS_PREFIXgetId in interface com.day.cq.wcm.api.components.DropTargetpublic String getPropertyName()
getPropertyName in interface com.day.cq.wcm.api.components.DropTargetpublic String[] getGroups()
getGroups in interface com.day.cq.wcm.api.components.DropTargetpublic DropTargetImpl setGroups(String[] values)
values - the DD groups.public String[] getAccept()
getAccept in interface com.day.cq.wcm.api.components.DropTargetpublic DropTargetImpl setAccept(String[] values)
values - the accept patternspublic Map<String,String> getParameters()
getParameters in interface com.day.cq.wcm.api.components.DropTargetpublic DropTargetImpl setParameters(Map<String,String> value)
value - a map of additional parameters.public void write(org.apache.sling.commons.json.io.JSONWriter out)
throws org.apache.sling.commons.json.JSONException
write in interface com.day.cq.commons.JSONItemorg.apache.sling.commons.json.JSONExceptionCopyright © 2014–2017 wcm.io. All rights reserved.