public class DefaultTagDropHandler extends AbstractBindingTagDropHandler
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultTagDropHandler.BasicBindConfiguration |
static interface |
DefaultTagDropHandler.BindConfiguration
Provides a simple mechanism for adding a SimpleBoundTagAdapter binding on a component
|
static class |
DefaultTagDropHandler.MultiBindConfiguration |
Constructor and Description |
---|
DefaultTagDropHandler(java.beans.BeanInfo beanInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(TagProp prop,
DefaultTagDropHandler.BindConfiguration desc) |
void |
addBinding(TagProp prop,
java.lang.String propName)
Adds a binding configuration to bind the given component property to the given tag property.
|
void |
addBinding(TagProp prop,
java.lang.String propName,
boolean forceNonBinding) |
void |
addOneWayBinding(TagProp prop,
java.lang.String propName) |
DefaultTagDropHandler.BindConfiguration |
createBasicBindConfig(java.lang.String propName,
boolean forceNonBinding) |
boolean |
handleDrop(DesignerContext context,
java.util.List<TagPath> paths,
javax.swing.JComponent bean,
java.awt.dnd.DropTargetDropEvent dropEvent)
Adds property bindings according to this handler's binding map.
|
protected boolean |
handlePropertyPathDrop(DesignerContext context,
TagPath path,
javax.swing.JComponent bean)
This is called when the drop is an attribute path that isn't the Value property
|
protected boolean |
handleValuePathDrop(DesignerContext context,
TagPath path,
javax.swing.JComponent bean)
This is used to handle most drops.
|
protected boolean |
processBinding(DesignerContext context,
TagPath propertyPath,
javax.swing.JComponent bean,
DefaultTagDropHandler.BindConfiguration desc)
This is called for each binding defined if the drop is a standard tag drop, except for the Value property
|
protected boolean |
processBinding(DesignerContext context,
TagPath path,
TagProp property,
javax.swing.JComponent bean,
java.lang.String propName,
boolean nonBidirectional)
Convenience function for drop handlers that subvert the normal way of doing things to do a quick binding
|
protected boolean |
processValueBinding(DesignerContext context,
TagPath valuePath,
javax.swing.JComponent bean,
DefaultTagDropHandler.BindConfiguration desc)
This is called for the value property path for a standard tag drop.
|
void |
removeBinding(TagProp prop) |
findController, findProperty
public void addBinding(TagProp prop, java.lang.String propName)
public void addOneWayBinding(TagProp prop, java.lang.String propName)
public void addBinding(TagProp prop, java.lang.String propName, boolean forceNonBinding)
public DefaultTagDropHandler.BindConfiguration createBasicBindConfig(java.lang.String propName, boolean forceNonBinding)
public void addBinding(TagProp prop, DefaultTagDropHandler.BindConfiguration desc)
public void removeBinding(TagProp prop)
public boolean handleDrop(DesignerContext context, java.util.List<TagPath> paths, javax.swing.JComponent bean, java.awt.dnd.DropTargetDropEvent dropEvent)
protected boolean handleValuePathDrop(DesignerContext context, TagPath path, javax.swing.JComponent bean)
protected boolean handlePropertyPathDrop(DesignerContext context, TagPath path, javax.swing.JComponent bean)
protected boolean processValueBinding(DesignerContext context, TagPath valuePath, javax.swing.JComponent bean, DefaultTagDropHandler.BindConfiguration desc)
protected boolean processBinding(DesignerContext context, TagPath propertyPath, javax.swing.JComponent bean, DefaultTagDropHandler.BindConfiguration desc)
protected boolean processBinding(DesignerContext context, TagPath path, TagProp property, javax.swing.JComponent bean, java.lang.String propName, boolean nonBidirectional)