public class IlpSlotSizesBinding extends IlpAbstractAttributeBinding
IlpSlotSizes
and SDM slotWidth or slotHeight model
property of type Integer
.Modifier and Type | Class and Description |
---|---|
static class |
IlpSlotSizesBinding.PropertyName
Enumerator defining the two SDM model properties that can be bound.
|
IlpAbstractAttributeBinding.ConversionFailedException, IlpAbstractAttributeBinding.PropertyAlreadySetException, IlpAbstractAttributeBinding.Type
_attributeName, _attributeType, _bindingContext, _propertyName, _propertyType, _type
Constructor and Description |
---|
IlpSlotSizesBinding(IlpSlotSizesBinding.PropertyName propName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Integer |
convertPositionToX(IlpSlotSizes posValue)
Converts the
IlpSlotSizes position into the
x component of a x,y position. |
protected Integer |
convertPositionToY(IlpSlotSizes posValue)
Converts the
IlpSlotSizes position into the
y component of a x,y position. |
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 IlpSlotSizes |
convertXToPosition(Integer value)
Converts the
x component of the slot into an
IlpSlotSizes using the current settings to
complete the position value. |
protected IlpSlotSizes |
convertYToPosition(Integer value)
Converts the
y component of the slot into an
IlpSlotSizes using the current settings to
complete the position value. |
equals, getAttributeName, getAttributeType, getBindingContext, getPropertyName, getPropertyType, getType, setAttributeName, setAttributeType, setBindingContext, setPropertyName, setPropertyType, setType, validate
public IlpSlotSizesBinding(IlpSlotSizesBinding.PropertyName propName)
propName
- Whether the width (x) or y (y)
SDM model property is boundprotected Integer convertPositionToX(IlpSlotSizes posValue)
IlpSlotSizes
position into the
x
component of a x,y
position.posValue
- The IlpSlotSizes
positionx
componentprotected Integer convertPositionToY(IlpSlotSizes posValue)
IlpSlotSizes
position into the
y
component of a x,y
position.posValue
- The IlpSlotSizes
positiony
componentprotected IlpSlotSizes convertXToPosition(Integer value)
x
component of the slot into an
IlpSlotSizes
using the current settings to
complete the position value.value
- The x
component of a x,y
positionIlpSlotSizes
positionprotected IlpSlotSizes convertYToPosition(Integer value)
y
component of the slot into an
IlpSlotSizes
using the current settings to
complete the position value.value
- The y
component of a x,y
positionIlpSlotSizes
positionpublic 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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.