public class LoginInfoForm extends Form
A LoginInfoForm is a Form with a single DataComponent and two Entries. One Entry is for a username and the second Entry is for a password. The text of the second Entry should be obscured from view. This class provides several convenience methods for the setting properties on its Entries such as the password and username prompt phrases and the description of the request. The name of this Form is "Login Information."
This Form is only meant to be used with Actions and satisfies the criteria for such Forms (only one DataComponent and no other components). It does not accept a list of Actions in its constructor because it used by an Action, not an Item.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
LoginInfoForm()
The Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setPasswordPrompt(java.lang.String promptName)
This operation sets the name of the password Entry to something other
than the default, which is "Password."
|
void |
setPromptDescription(java.lang.String promptDesc)
This operation sets the description of the LoginInfoForm and is the same
as calling the setDescription() operation.
|
void |
setUsernamePrompt(java.lang.String promptName)
This operation sets the name of the username Entry to something other
than the default, which is "Username."
|
accept, addComponent, clone, copy, equals, getActionList, getComponent, getComponents, getItemID, getNumberOfComponents, hashCode, isReady, markReady, removeComponent, setActionList, setItemID, update
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister
getClass, notify, notifyAll, toString, wait, wait, wait
register, unregister
getDescription, getId, getName, setDescription, setId, setName
public void setPromptDescription(java.lang.String promptDesc)
This operation sets the description of the LoginInfoForm and is the same as calling the setDescription() operation. It is provided here as a semantically appealing convenience method.
promptDesc
- The description of the prompt and, in particularl for this case, the description of the LoginInfoForm.
public void setUsernamePrompt(java.lang.String promptName)
This operation sets the name of the username Entry to something other than the default, which is "Username."
promptName
- The name of the prompt.
public void setPasswordPrompt(java.lang.String promptName)
This operation sets the name of the password Entry to something other than the default, which is "Password."
promptName
- The name of the prompt.