Package com.inductiveautomation.snap.ui
Class Binding
java.lang.Object
com.inductiveautomation.snap.ui.Binding
- All Implemented Interfaces:
- Archivable,- Cloneable
This class maps a UI node value to a model key value (some kind of display object like a Swing component value or
 an RMShape size).
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Standard clone implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the conversion key used to get conversion map to convert bound object value to UI node.Returns the format object to be used to format values to strings.Returns the UI node's helper (convenience).getKey()Returns the key that is used to get the property value from the bound object.getNode()Returns the UI node.Returns the property name.voidsetConversionKey(String aKey) Sets the conversion key used to get conversion map to convert bound object value to UI node.voidSets the format object to be used to convert values to strings.voidSets the UI node's helper.voidSets the key that is used to get the property value from the bound object.voidSets the UI node.voidsetPropertyName(String aPropertyName) Sets the property name.toString()Returns a string representation.toXML(RXArchiver anArchiver) XML archival.
- 
Constructor Details- 
Bindingpublic Binding()Creates a new binding.
- 
BindingCreates a new binding for property name and key.
 
- 
- 
Method Details- 
getNodeReturns the UI node.
- 
setNodeSets the UI node.
- 
getHelperReturns the UI node's helper (convenience).
- 
setHelperSets the UI node's helper.
- 
getPropertyNameReturns the property name.
- 
setPropertyNameSets the property name.
- 
getKeyReturns the key that is used to get the property value from the bound object.
- 
setKeySets the key that is used to get the property value from the bound object.
- 
getConversionKeyReturns the conversion key used to get conversion map to convert bound object value to UI node.
- 
setConversionKeySets the conversion key used to get conversion map to convert bound object value to UI node.
- 
getFormatReturns the format object to be used to format values to strings.
- 
setFormatSets the format object to be used to convert values to strings.
- 
cloneStandard clone implementation.
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
toStringReturns a string representation.
 
-