Class MultiCredentialsComponent
java.lang.Object
velox.api.layer0.credentialscomponents.MultiCredentialsComponent
- All Implemented Interfaces:
CredentialsComponent
- Direct Known Subclasses:
BaseCredentialsComponent
An abstract implementation of
CredentialsComponent.
It serves as a basis for a multi-value component (e.g. dependent fields)-
Field Summary
FieldsModifier and TypeFieldDescriptionThe older name(s) for thisCredentialsComponentprotected List<JComponent> Contains the list of instances ofJComponentsubclasses that make up theMultiCredentialsComponent(e.g.protected JPanelThe panel typically populated and returned byCredentialsComponent.getCompoundComponent()method -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds pair(s) of legacy name and actual name for this credentials element seeCredentialsComponent.getAliases()for details.Provide pair(s) of legacy name and current name for this credentials element if there are any.Returns the component itself.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface velox.api.layer0.credentialscomponents.CredentialsComponent
addSettingsChangedListener, getValues, setValues
-
Field Details
-
panel
The panel typically populated and returned byCredentialsComponent.getCompoundComponent()method -
components
Contains the list of instances ofJComponentsubclasses that make up theMultiCredentialsComponent(e.g. labels/textFields/comboBoxes etc) -
aliases
The older name(s) for thisCredentialsComponent
-
-
Constructor Details
-
MultiCredentialsComponent
public MultiCredentialsComponent()
-
-
Method Details
-
getCompoundComponent
Description copied from interface:CredentialsComponentReturns the component itself. Compound here means that a typicalCredentialsComponentwill contain one or more elements like aJTextFieldor aJComboBoxand optionally aJLabelor anything else- Specified by:
getCompoundComponentin interfaceCredentialsComponent
-
getAliases
Description copied from interface:CredentialsComponentProvide pair(s) of legacy name and current name for this credentials element if there are any. Used for compatibility with an older credentials element names. If "current name" (second element in a pair) does not have a corresponding value stored in the settings yet, value will be taken from "legacy name". There might be multiple pairs mapping to the same "current name", in which case only the first matched one will have effect.
If an adapter is switched to extended credentials for the first time common old names for login, password and demo check box are found in
CredentialsComponentUtil- Specified by:
getAliasesin interfaceCredentialsComponent
-
addAlias
Adds pair(s) of legacy name and actual name for this credentials element seeCredentialsComponent.getAliases()for details.- Parameters:
legacyName- an older credentials element's nameactualName- an actual credentials element's name
-