Package org.apache.pivot.wtk
Interface Label.TextBindMapping
-
- Enclosing class:
- Label
public static interface Label.TextBindMappingTranslates between text and context data during data binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringtoString(java.lang.Object value)Converts a value from the bind context to a text representation during aComponent.load(Object)operation.java.lang.ObjectvalueOf(java.lang.String text)Converts a text string to a value to be stored in the bind context during aComponent.store(Object)operation.
-
-
-
Method Detail
-
toString
java.lang.String toString(java.lang.Object value)
Converts a value from the bind context to a text representation during aComponent.load(Object)operation.- Parameters:
value- The bound value from the component.- Returns:
- The value converted to a
Stringsuitable for the label text.
-
valueOf
java.lang.Object valueOf(java.lang.String text)
Converts a text string to a value to be stored in the bind context during aComponent.store(Object)operation.- Parameters:
text- The label text to be converted.- Returns:
- The text value converted to a value suitable for persistence in the bound object.
-
-