name |
Name used by the Desktop to identify this component. Applications
can have access to this object at runtime by requesting it by name
from the Desktop. The Desktop provides methods to access components
by name and show messages. For example, getComponentByName(aName).showMessage("my Message");
There
is a reserved name, "MessageText", for the text field to be used to
show messages on the Desktop. For example, Desktop.getDesktop().showMessage("my Message");
will
display the message in the text field called MessageText. |
width |
Width of the text field |
height |
Height of the text field |
x |
Horizontal coordinate for the location of the text field (mandatory) |
y |
Vertical coordinate for the location of the text field (mandatory) |
focus Traversable |
Whether the text field will be able to get focus |
hotKey |
Combination of keys used as a hot key for the text field. Pressing
this combination of keys when the text field is visible on the Desktop
is equivalent to clicking on the text field (which causes it to get
focus). |
onInitialize |
Java code to be executed
when the component is initialized |
text |
String to be inserted in the text field |
intNumberOfTasks |
Maximum number of messages to be shown in the MessageArea |
showMessageArea |
Whether a PopupMessage will be shown with the data of the "text"
attribute |
informationLevel |
Level of the message shown in the pop-up message area. The
following are the different levels: - ERROR_MESSAGE: when the value is 0
- INFORMATION_MESSAGE: when the value is 1
- WARNING_MESSAGE: when the value is 2
- QUESTION_MESSAGE: when the value is 3
Note: If the value chosen is 0, the messages of all higher levels
will be shown.
|