|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.model.ui.AbstractPresentationModel
com.guiseframework.component.AbstractComponent
com.guiseframework.component.AbstractCompositeComponent
com.guiseframework.component.AbstractMultipleCompositeComponent
com.guiseframework.component.AbstractListCompositeComponent
com.guiseframework.component.AbstractLayoutComponent
com.guiseframework.component.AbstractContainer
com.guiseframework.component.AbstractPanel
com.guiseframework.component.LayoutPanel
com.guiseframework.component.ArrangePanel
com.guiseframework.component.PasswordAuthenticationPanel
public class PasswordAuthenticationPanel
Panel to gather password authentication information and optionally verify the password. This panel defaults to not verifying the password.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractComponent |
|---|
AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>, AbstractComponent.AbstractFlyoverStrategy<S extends Component>, AbstractComponent.DefaultFlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Component |
|---|
Component.FlyoverStrategy<S extends Component> |
| Field Summary | |
|---|---|
static java.lang.String |
PASSWORD_VERIFIED_PROPERTY
The bound property of the password verification status. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.component.LayoutComponent |
|---|
LAYOUT_PROPERTY, LAYOUT_THEME_APPLIED_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Component |
|---|
BOOKMARK_ENABLED_PROPERTY, CONSTRAINTS_PROPERTY, DRAG_ENABLED_PROPERTY, DROP_ENABLED_PROPERTY, FLYOVER_ENABLED_PROPERTY, FLYOVER_STRATEGY_PROPERTY, INPUT_STRATEGY_PROPERTY, NAME_PROPERTY, NOTIFICATION_PROPERTY, ORIENTATION_PROPERTY, THEME_APPLIED_PROPERTY, VALID_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Displayable |
|---|
DISPLAYED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.InfoModel |
|---|
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY |
| Fields inherited from interface com.guiseframework.model.LabelModel |
|---|
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Constructor Summary | |
|---|---|
PasswordAuthenticationPanel()
Default constructor with a default vertical flow layout. |
|
PasswordAuthenticationPanel(Layout<?> layout)
Layout constructor. |
|
| Method Summary | |
|---|---|
void |
clearValues()
Clears the username and password values. |
protected boolean |
determineValid()
Checks the state of the component for validity. |
char[] |
getPassword()
|
Validator<char[]> |
getPasswordValidator()
|
java.lang.String |
getUsername()
|
Validator<java.lang.String> |
getUsernameValidator()
|
protected boolean |
isPasswordMatch()
|
boolean |
isPasswordVerified()
|
void |
setPassword(char[] password)
Sets the password shown in the panel. |
void |
setPasswordValidator(Validator<char[]> newValidator)
Sets the password validator. |
void |
setPasswordVerified(boolean newPasswordVerified)
Sets whether password verification is required This is a bound property of type Boolean. |
void |
setUsername(java.lang.String username)
Sets the username shown in the panel. |
void |
setUsernameValidator(Validator<java.lang.String> newValidator)
Sets the username validator. |
protected void |
update()
Updates the state of the controls based upon current property settings. |
boolean |
validate()
Validates the user input of this component and all child components. |
| Methods inherited from class com.guiseframework.component.AbstractContainer |
|---|
add, add, add, add, add, add, add, add, clear, contains, createComponent, get, getChildComponents, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, setChildren, setLayout, size |
| Methods inherited from class com.guiseframework.component.AbstractLayoutComponent |
|---|
addComponent, applyTheme, applyTheme, getLayout, isLayoutThemeApplied, removeComponent, resetTheme, setLayoutThemeApplied, updateTheme |
| Methods inherited from class com.guiseframework.component.AbstractListCompositeComponent |
|---|
addComponent, getComponentList, hasChildComponents |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.Container |
|---|
add, add, add, add, add, add, add, clear, contains, get, indexOf, isEmpty, lastIndexOf, remove, remove, setLayout, size |
| Methods inherited from interface com.guiseframework.component.LayoutComponent |
|---|
getLayout, isLayoutThemeApplied, setLayoutThemeApplied |
| Methods inherited from interface com.guiseframework.component.CompositeComponent |
|---|
addCompositeComponentListener, getChildComponents, hasChildComponents, removeCompositeComponentListener |
| Methods inherited from interface com.guiseframework.platform.DepictedObject |
|---|
depict, getDepictID, getSession, processEvent |
| Methods inherited from interface com.guiseframework.model.InfoModel |
|---|
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType |
| Methods inherited from interface com.guiseframework.model.LabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.globalmentor.beans.PropertyConstrainable |
|---|
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
public static final java.lang.String PASSWORD_VERIFIED_PROPERTY
| Constructor Detail |
|---|
public PasswordAuthenticationPanel()
public PasswordAuthenticationPanel(Layout<?> layout)
layout - The layout definition for the container.
java.lang.NullPointerException - if the given layout is null.| Method Detail |
|---|
public boolean isPasswordVerified()
public void setPasswordVerified(boolean newPasswordVerified)
Boolean.
This method unconditionally clears the password verification control.
newPasswordVerified - Whether password verification is required, resulting in a separate password verification text input.PASSWORD_VERIFIED_PROPERTYpublic java.lang.String getUsername()
null if there is no username entered.
public void setUsername(java.lang.String username)
throws java.beans.PropertyVetoException
username - The username to show.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.public Validator<java.lang.String> getUsernameValidator()
null if no validator is installed.public void setUsernameValidator(Validator<java.lang.String> newValidator)
newValidator - The validator for the username, or null if no validator should be used.public char[] getPassword()
null if there is no password entered.
public void setPassword(char[] password)
throws java.beans.PropertyVetoException
password - The password to show.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.public Validator<char[]> getPasswordValidator()
null if no validator is installed.public void setPasswordValidator(Validator<char[]> newValidator)
newValidator - The validator for the password, or null if no validator should be used.protected void update()
update in class AbstractComponentprotected boolean isPasswordMatch()
true if both entered passwords are identical.protected boolean determineValid()
determineValid in class AbstractCompositeComponenttrue if the component and all children passes all validity tests, else false.public boolean validate()
validate in interface Componentvalidate in class AbstractCompositeComponentAbstractComponent.isValid() as a convenience.public void clearValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||