Interface Text
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
TextImpl
Representation of user configurable texts. A text consists of an id identifying the type of the text and the textual
information itself.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all the fields in the test objectclone()Reads the text handlegetId()Reads the type of the textgetText()Reads the textbooleanchecks whether the text or the id has been changed since the last invocation ofresetTextChanged()voidresets the text changed status tofalsevoidSets the handle (which is a temporary key to identify the object)voidSets the type of the textvoidSets the text
-
Method Details
-
setId
Sets the type of the text- Parameters:
id- The type to be set
-
setText
Sets the text- Parameters:
text- Text to be set
-
getText
String getText()Reads the text- Returns:
- Text
-
getId
String getId()Reads the type of the text- Returns:
- Type of text
-
getHandle
String getHandle()Reads the text handle- Returns:
- handle representing this text
-
setHandle
Sets the handle (which is a temporary key to identify the object)- Parameters:
handle- representing this text
-
clear
void clear()Clears all the fields in the test object -
clone
Text clone()- Returns:
- clone
- See Also:
-
hasTextChanged
boolean hasTextChanged()checks whether the text or the id has been changed since the last invocation ofresetTextChanged()- Returns:
true, only if the text has been changed
-
resetTextChanged
void resetTextChanged()resets the text changed status tofalse
-