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.PropertyNameIlpAbstractAttributeBinding.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, convertToPropertyequals, getAttributeName, getAttributeType, getBindingContext, getPropertyName, getPropertyType, getType, setAttributeName, setAttributeType, setBindingContext, setPropertyName, setPropertyType, setType, validatepublic IlpShelfItemPositionBinding(IlpAbstractPositionBinding.PropertyName propName)
propName - Whether the x or y SDM model property is
boundprotected Double convertPositionToX(IlpPosition posValue)
IlpAbstractPositionBindingconvertPositionToX in class IlpAbstractPositionBinding<IlpPosition>posValue - The TGO position attributeprotected Double convertPositionToY(IlpPosition posValue)
IlpAbstractPositionBindingconvertPositionToY in class IlpAbstractPositionBinding<IlpPosition>posValue - The TGO position attributeprotected IlpPosition convertXToPosition(Double value)
IlpAbstractPositionBindingconvertXToPosition in class IlpAbstractPositionBinding<IlpPosition>value - The SDM model property xprotected IlpPosition convertYToPosition(Double value)
IlpAbstractPositionBindingconvertYToPosition in class IlpAbstractPositionBinding<IlpPosition>value - The SDM model property y© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.