new EditField("Invite: ", name,
TextField.DEFAULT_MAXCHARS, Field.READONLY);
if (_invitees.isEmpty()) // Add a separator to screen.
{
insert(new SeparatorField(), getFieldCount());
}
// Store contact for email retrieval.
_invitees.addElement(contact);
insert(newField, getFieldCount());
}
}
}));
setTitle("PIM Demo");
_subject = new EditField("Subject: ", "");
add(_subject);
_location = new EditField("Location: ", "");
add(_location);
final long currentTime = System.currentTimeMillis();
_startTime =
new DateField("Start: ", currentTime + 3600000,
DateField.DATE_TIME);
_endTime =
new DateField("End: ", currentTime + 7200000,
DateField.DATE_TIME);
add(new SeparatorField());
add(_startTime);
add(_endTime);
add(new SeparatorField());
_desc = new EditField("Description: ", "");
add(_desc);
add(new SeparatorField());
final String choices[] =
{ "None", "Daily", "Weekly", "Monthly", "Yearly" };
_recur = new ObjectChoiceField("Recurrence: ", choices, 0);
add(_recur);