Package com.inductiveautomation.snap.ui
Class Binding
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.Binding
 
- 
- All Implemented Interfaces:
- Archivable,- java.lang.Cloneable
 
 public class Binding extends java.lang.Object implements java.lang.Cloneable, Archivable 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).
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Bindingclone()Standard clone implementation.BindingfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.java.lang.StringgetConversionKey()Returns the conversion key used to get conversion map to convert bound object value to UI node.java.text.FormatgetFormat()Returns the format object to be used to format values to strings.UIHelpergetHelper()Returns the UI node's helper (convenience).java.lang.StringgetKey()Returns the key that is used to get the property value from the bound object.java.lang.ObjectgetNode()Returns the UI node.java.lang.StringgetPropertyName()Returns the property name.voidsetConversionKey(java.lang.String aKey)Sets the conversion key used to get conversion map to convert bound object value to UI node.voidsetFormat(java.text.Format aFormat)Sets the format object to be used to convert values to strings.voidsetHelper(UIHelper aHelper)Sets the UI node's helper.voidsetKey(java.lang.String aKey)Sets the key that is used to get the property value from the bound object.voidsetNode(java.lang.Object anObj)Sets the UI node.voidsetPropertyName(java.lang.String aPropertyName)Sets the property name.java.lang.StringtoString()Returns a string representation.RXElementtoXML(RXArchiver anArchiver)XML archival.
 
- 
- 
- 
Method Detail- 
getNodepublic java.lang.Object getNode() Returns the UI node.
 - 
setNodepublic void setNode(java.lang.Object anObj) Sets the UI node.
 - 
getHelperpublic UIHelper getHelper() Returns the UI node's helper (convenience).
 - 
setHelperpublic void setHelper(UIHelper aHelper) Sets the UI node's helper.
 - 
getPropertyNamepublic java.lang.String getPropertyName() Returns the property name.
 - 
setPropertyNamepublic void setPropertyName(java.lang.String aPropertyName) Sets the property name.
 - 
getKeypublic java.lang.String getKey() Returns the key that is used to get the property value from the bound object.
 - 
setKeypublic void setKey(java.lang.String aKey) Sets the key that is used to get the property value from the bound object.
 - 
getConversionKeypublic java.lang.String getConversionKey() Returns the conversion key used to get conversion map to convert bound object value to UI node.
 - 
setConversionKeypublic void setConversionKey(java.lang.String aKey) Sets the conversion key used to get conversion map to convert bound object value to UI node.
 - 
getFormatpublic java.text.Format getFormat() Returns the format object to be used to format values to strings.
 - 
setFormatpublic void setFormat(java.text.Format aFormat) Sets the format object to be used to convert values to strings.
 - 
clonepublic Binding clone() Standard clone implementation.- Overrides:
- clonein class- java.lang.Object
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
 
 - 
fromXMLpublic Binding fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
 - 
toStringpublic java.lang.String toString() Returns a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-