public class ReadOnlyString
extends java.lang.Object
| Constructor and Description |
|---|
ReadOnlyString(java.lang.Object base,
java.lang.String value)
Enforces the separation between the true object and the viewable form
of the object in the editors.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Overloads the core
java.lang.Object implementation to compare the String directly. |
java.lang.Object |
getBaseObject()
Accesses the base object represented by the editor.
|
java.lang.String |
getReadOnlyString()
Accesses the textual representation of the
base value displayed in the
editor. |
int |
hashCode()
Overloads the core
java.lang.Object implementation of hashCode. |
void |
setReadOnlyString(java.lang.String value)
Updates the textual representation of the
base value. |
java.lang.String |
toString()
Accesses the textual representation of the
base value as defined in the
constructor. |
public ReadOnlyString(java.lang.Object base,
java.lang.String value)
base - the true object represented in the editorvalue - the textual image of the base object for display to the userpublic java.lang.Object getBaseObject()
set method to update the original value does not exist. That is, the original value cannot be updated.public java.lang.String getReadOnlyString()
base value displayed in the
editor. This value can be updated, but will have no effect on the original base value.public void setReadOnlyString(java.lang.String value)
base value.public java.lang.String toString()
base value as defined in the
constructor.toString in class java.lang.Objectpublic int hashCode()
java.lang.Object implementation of hashCode.hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
java.lang.Object implementation to compare the String directly.equals in class java.lang.Object