Package eu.webtoolkit.jwt
Class WTextF
java.lang.Object
eu.webtoolkit.jwt.WJavaScriptExposableObject
eu.webtoolkit.jwt.WTextF
A value class that defines a text.
The text is defined by a string.
JavaScript exposability
A WTextF is JavaScript exposable. If a WTextF is JavaScript bound, it can be accessed in your
custom JavaScript code through its handle's jsRef(). A
text is represented in JavaScript as a string.
Warning: A WTextF that is JavaScript exposed should be modified only through its
handle. Any attempt at modifying it will cause an exception to be
thrown.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignFromJSON(com.google.gson.JsonElement value) clone()booleanIndicates whether some other object is "equal to" this one.Returns a JavaScript representation of the value of this object.getText()Returns the content of the text.booleanisEmpty()Returns whether the text is empty or not.voidsetText(CharSequence text) Sets the content of the text.Methods inherited from class eu.webtoolkit.jwt.WJavaScriptExposableObject
assignBinding, assignBinding, checkModifiable, closeTo, getJsRef, isJavaScriptBound, sameBindingAs
-
Constructor Details
-
WTextF
public WTextF()Default constructor.Constructs an empty text.
- See Also:
-
WTextF
Construct text fromWString. -
WTextF
Construct text from string. -
WTextF
-
-
Method Details
-
clone
- Specified by:
clonein classWJavaScriptExposableObject
-
equals
Indicates whether some other object is "equal to" this one. -
isEmpty
public boolean isEmpty()Returns whether the text is empty or not. -
setText
Sets the content of the text. -
getText
Returns the content of the text. -
getJsValue
Description copied from class:WJavaScriptExposableObjectReturns a JavaScript representation of the value of this object.Note: The value returned will reflect the current server side value of the object. If this object is JavaScript bound, this value may not reflect the actual client side value. If you need access to the client side value, use
getJsRef()intead.- Specified by:
getJsValuein classWJavaScriptExposableObject
-
assignFromJSON
protected void assignFromJSON(com.google.gson.JsonElement value) - Specified by:
assignFromJSONin classWJavaScriptExposableObject
-