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 Summary
Constructors -
Method Summary
Modifier 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.void
setConversionKey
(String aKey) Sets the conversion key used to get conversion map to convert bound object value to UI node.void
Sets the format object to be used to convert values to strings.void
Sets the UI node's helper.void
Sets the key that is used to get the property value from the bound object.void
Sets the UI node.void
setPropertyName
(String aPropertyName) Sets the property name.toString()
Returns a string representation.toXML
(RXArchiver anArchiver) XML archival.
-
Constructor Details
-
Binding
public Binding()Creates a new binding. -
Binding
Creates a new binding for property name and key.
-
-
Method Details
-
getNode
Returns the UI node. -
setNode
Sets the UI node. -
getHelper
Returns the UI node's helper (convenience). -
setHelper
Sets the UI node's helper. -
getPropertyName
Returns the property name. -
setPropertyName
Sets the property name. -
getKey
Returns the key that is used to get the property value from the bound object. -
setKey
Sets the key that is used to get the property value from the bound object. -
getConversionKey
Returns the conversion key used to get conversion map to convert bound object value to UI node. -
setConversionKey
Sets the conversion key used to get conversion map to convert bound object value to UI node. -
getFormat
Returns the format object to be used to format values to strings. -
setFormat
Sets the format object to be used to convert values to strings. -
clone
Standard clone implementation. -
toXML
XML archival.- Specified by:
toXML
in interfaceArchivable
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
-
toString
Returns a string representation.
-