Interface Text
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
TextImpl
public interface Text extends java.lang.CloneableRepresentation of user configurable texts. A text consists of an id identifying the type of the text and the textual information itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears all the fields in the test objectTextclone()java.lang.StringgetHandle()Reads the text handlejava.lang.StringgetId()Reads the type of the textjava.lang.StringgetText()Reads the textbooleanhasTextChanged()checks whether the text or the id has been changed since the last invocation ofresetTextChanged()voidresetTextChanged()resets the text changed status tofalsevoidsetHandle(java.lang.String handle)Sets the handle (which is a temporary key to identify the object)voidsetId(java.lang.String id)Sets the type of the textvoidsetText(java.lang.String text)Sets the text
-
-
-
Method Detail
-
setId
void setId(java.lang.String id)
Sets the type of the text- Parameters:
id- The type to be set
-
setText
void setText(java.lang.String text)
Sets the text- Parameters:
text- Text to be set
-
getText
java.lang.String getText()
Reads the text- Returns:
- Text
-
getId
java.lang.String getId()
Reads the type of the text- Returns:
- Type of text
-
getHandle
java.lang.String getHandle()
Reads the text handle- Returns:
- handle representing this text
-
setHandle
void setHandle(java.lang.String handle)
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:
Object.clone()
-
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
-
-