public class Example
extends java.lang.Object
Example
consists of a text String
and an
optional Frame
.Modifier | Constructor and Description |
---|---|
protected |
Example()
Constructs a new
Example with empty text and no
Frame . |
protected |
Example(java.lang.String text)
Constructs a new
Example with the specified text and no
Frame . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFrame()
Return the
Frame as String of this
Example . |
java.lang.String |
getText()
Return this
Example 's text. |
protected void |
setFrame(Frame frame)
Set the specified
Frame to this Example . |
protected void |
setText(java.lang.String text)
Replaces the text with the specified text.
|
java.lang.String |
toString()
Return a String representation of this
Example . |
protected Example()
Example
with empty text and no
Frame
.protected Example(java.lang.String text)
Example
with the specified text and no
Frame
.text
- the text for this Example
protected void setText(java.lang.String text)
text
- the new textprotected void setFrame(Frame frame)
Frame
to this Example
.frame
- the Frame
to set for this Example
public java.lang.String getText()
Example
's text.Example
's text.public java.lang.String getFrame()
Frame
as String
of this
Example
.Frame
as String
of this
Example
.public java.lang.String toString()
Example
.toString
in class java.lang.Object
Example
.