Package org.apache.groovy.swing.binding
Class PropertyBinding
- java.lang.Object
-
- org.apache.groovy.swing.binding.PropertyBinding
-
- All Implemented Interfaces:
SourceBinding
,TargetBinding
,TriggerBinding
public class PropertyBinding extends Object implements SourceBinding, TargetBinding, TriggerBinding
- Since:
- Groovy 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyBinding.UpdateStrategy
-
Constructor Summary
Constructors Constructor Description PropertyBinding(Object bean, String propertyName)
PropertyBinding(Object bean, String propertyName, String updateStrategy)
PropertyBinding(Object bean, String propertyName, PropertyBinding.UpdateStrategy updateStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FullBinding
createBinding(SourceBinding source, TargetBinding target)
Object
getBean()
String
getPropertyName()
Object
getSourceValue()
PropertyBinding.UpdateStrategy
getUpdateStrategy()
boolean
isNonChangeCheck()
void
setBean(Object bean)
void
setNonChangeCheck(boolean nonChangeCheck)
void
setPropertyName(String propertyName)
void
updateTargetValue(Object newValue)
-
-
-
Constructor Detail
-
PropertyBinding
public PropertyBinding(Object bean, String propertyName, PropertyBinding.UpdateStrategy updateStrategy)
-
-
Method Detail
-
getUpdateStrategy
public PropertyBinding.UpdateStrategy getUpdateStrategy()
-
updateTargetValue
public void updateTargetValue(Object newValue)
- Specified by:
updateTargetValue
in interfaceTargetBinding
-
isNonChangeCheck
public boolean isNonChangeCheck()
-
setNonChangeCheck
public void setNonChangeCheck(boolean nonChangeCheck)
-
getSourceValue
public Object getSourceValue()
- Specified by:
getSourceValue
in interfaceSourceBinding
-
createBinding
public FullBinding createBinding(SourceBinding source, TargetBinding target)
- Specified by:
createBinding
in interfaceTriggerBinding
-
getBean
public Object getBean()
-
setBean
public void setBean(Object bean)
-
getPropertyName
public String getPropertyName()
-
setPropertyName
public void setPropertyName(String propertyName)
-
-