A
- The TGO position attribute typepublic abstract class IlpAbstractPositionBinding<A> extends IlpAbstractAttributeBinding
Modifier and Type | Class and Description |
---|---|
static class |
IlpAbstractPositionBinding.PropertyName
Enumerator defining the two SDM model properties that can be bound.
|
IlpAbstractAttributeBinding.ConversionFailedException, IlpAbstractAttributeBinding.PropertyAlreadySetException, IlpAbstractAttributeBinding.Type
_attributeName, _attributeType, _bindingContext, _propertyName, _propertyType, _type
Modifier | Constructor and Description |
---|---|
protected |
IlpAbstractPositionBinding(IlpAbstractPositionBinding.PropertyName propName,
Class<A> attrClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Double |
convertPositionToX(A posValue)
This method implements the conversion from the TGO position
attribute to the SDM x model property.
|
protected abstract Double |
convertPositionToY(A posValue)
This method implements the conversion from the TGO position
attribute to the SDM y model property.
|
Object |
convertToAttribute(Object newPropVal)
Converts a value from the SDM model property target type to the
TGO attribute source type.
|
Object |
convertToProperty(Object newAttrVal)
Converts a value from the TGO attribute source type to the
SDM model property target type.
|
protected abstract A |
convertXToPosition(Double xValue)
This method implements the conversion from the x SDM model
property to the TGO position attribute.
|
protected abstract A |
convertYToPosition(Double yValue)
This method implements the conversion from the y SDM model
property to the TGO position attribute.
|
equals, getAttributeName, getAttributeType, getBindingContext, getPropertyName, getPropertyType, getType, setAttributeName, setAttributeType, setBindingContext, setPropertyName, setPropertyType, setType, validate
protected IlpAbstractPositionBinding(IlpAbstractPositionBinding.PropertyName propName, Class<A> attrClass)
propName
- Whether the x or y SDM model property is
boundattrClass
- The TGO position attribute typeprotected abstract A convertXToPosition(Double xValue)
xValue
- The SDM model property xprotected abstract A convertYToPosition(Double yValue)
yValue
- The SDM model property yprotected abstract Double convertPositionToX(A posValue)
posValue
- The TGO position attributeprotected abstract Double convertPositionToY(A posValue)
posValue
- The TGO position attributepublic Object convertToAttribute(Object newPropVal)
IlpAbstractAttributeBinding
Converts a value from the SDM model property target type to the TGO attribute source type.
It can throw RuntimeException
if the conversion fails.
convertToAttribute
in class IlpAbstractAttributeBinding
newPropVal
- The target valuepublic Object convertToProperty(Object newAttrVal)
IlpAbstractAttributeBinding
Converts a value from the TGO attribute source type to the SDM model property target type.
It can throw RuntimeException
if the conversion fails.
convertToProperty
in class IlpAbstractAttributeBinding
newAttrVal
- The TGO attribute value© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.