public class IlpShelfItemPositionBinding extends IlpAbstractPositionBinding<IlpPosition>
This class implements a default binding between TGO position
attribute of type IlpShelfItemPosition
and SDM x or y
model property of type Double
.
The position may be an IlpRect
(when the object is a root) or
IlpShelfItemPosition
(when the object is inside a shelf
element).
This binding will map IlpShelfItemPosition
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 |
---|
IlpShelfItemPositionBinding(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 IlpShelfItemPositionBinding(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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.