public class IlpRelativePointPositionBinding extends IlpAbstractPositionBinding<IlpPosition>
This class implements a default binding between TGO position
attribute of type IlpRelativePoint
and SDM x or y
model property of type Double
.
The position may be an IlpPoint
(when the object is a root) or
IlpRelativePoint
(when the object is inside a card element
IltCard
).
This binding will map IlpRelativePoint
into SDM properties
x = null
and y = null
as this position has no
meaning outside the scope of JViews TGO.
IlpAbstractPositionBinding.PropertyName
IlpAbstractAttributeBinding.ConversionFailedException, IlpAbstractAttributeBinding.PropertyAlreadySetException, IlpAbstractAttributeBinding.Type
_attributeName, _attributeType, _bindingContext, _propertyName, _propertyType, _type
Constructor and Description |
---|
IlpRelativePointPositionBinding(IlpAbstractPositionBinding.PropertyName propName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Double |
convertPositionToX(IlpPosition posValue)
This method implements the conversion from the TGO position
attribute to the SDM x model property.
|
protected Double |
convertPositionToY(IlpPosition posValue)
This method implements the conversion from the TGO position
attribute to the SDM y model property.
|
protected IlpPosition |
convertXToPosition(Double value)
This method implements the conversion from the x SDM model
property to the TGO position attribute.
|
protected IlpPosition |
convertYToPosition(Double value)
This method implements the conversion from the y SDM model
property to the TGO position attribute.
|
convertToAttribute, convertToProperty
equals, getAttributeName, getAttributeType, getBindingContext, getPropertyName, getPropertyType, getType, setAttributeName, setAttributeType, setBindingContext, setPropertyName, setPropertyType, setType, validate
public IlpRelativePointPositionBinding(IlpAbstractPositionBinding.PropertyName propName)
propName
- Whether the x or y SDM model property is
boundprotected Double convertPositionToX(IlpPosition posValue)
IlpAbstractPositionBinding
convertPositionToX
in class IlpAbstractPositionBinding<IlpPosition>
posValue
- The TGO position attributeprotected Double convertPositionToY(IlpPosition posValue)
IlpAbstractPositionBinding
convertPositionToY
in class IlpAbstractPositionBinding<IlpPosition>
posValue
- The TGO position attributeprotected IlpPosition convertXToPosition(Double value)
IlpAbstractPositionBinding
convertXToPosition
in class IlpAbstractPositionBinding<IlpPosition>
value
- The SDM model property xprotected IlpPosition convertYToPosition(Double value)
IlpAbstractPositionBinding
convertYToPosition
in class IlpAbstractPositionBinding<IlpPosition>
value
- The SDM model property y© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.