Package snap.view
Class Binding
java.lang.Object
snap.view.Binding
- All Implemented Interfaces:
Cloneable
,XMLArchiver.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).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Standard clone implementation.fromXML
(XMLArchiver anArchiver, XMLElement anElement) XML unarchival.getKey()
Returns the key that is used to get the property value from the bound object.Returns the property name.getView()
Returns the UI view.<T> T
Returns the UI view.void
Sets the key that is used to get the property value from the bound object.void
setPropName
(String aPropertyName) Sets the property name.void
Sets the UI view.toString()
Returns a string representation.toXML
(XMLArchiver anArchiver) XML archival.
-
Constructor Details
-
Binding
public Binding()Creates a new binding. -
Binding
Creates a new binding for property name and key.
-
-
Method Details
-
getView
Returns the UI view. -
setView
Sets the UI view. -
getView
Returns the UI view. -
getPropName
Returns the property name. -
setPropName
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. -
clone
Standard clone implementation. -
toXML
XML archival.- Specified by:
toXML
in interfaceXMLArchiver.Archivable
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceXMLArchiver.Archivable
-
toString
Returns a string representation.
-