public abstract class MultiCredentialsComponent extends java.lang.Object implements CredentialsComponent
CredentialsComponent
.
It serves as a basis for a multi-value component (e.g. dependent fields)Modifier and Type | Field and Description |
---|---|
protected java.util.List<<any>> |
aliases
The older name(s) for this
CredentialsComponent |
protected java.util.List<javax.swing.JComponent> |
components
Contains the list of instances of
JComponent subclasses
that make up the MultiCredentialsComponent
(e.g. |
protected javax.swing.JPanel |
panel
The panel typically populated and returned by
CredentialsComponent.getCompoundComponent() method |
Constructor and Description |
---|
MultiCredentialsComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(java.lang.String legacyName,
java.lang.String actualName)
Adds pair(s) of legacy name and actual name for this credentials element
see
CredentialsComponent.getAliases() for details. |
java.util.List<<any>> |
getAliases()
Provide pair(s) of legacy name and current name for this credentials element
if there are any.
|
java.awt.Container |
getCompoundComponent()
Returns the component itself.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSettingsChangedListener, getValues, setValues
protected javax.swing.JPanel panel
CredentialsComponent.getCompoundComponent()
methodprotected java.util.List<javax.swing.JComponent> components
JComponent
subclasses
that make up the MultiCredentialsComponent
(e.g. labels/textFields/comboBoxes etc)protected java.util.List<<any>> aliases
CredentialsComponent
public java.awt.Container getCompoundComponent()
CredentialsComponent
CredentialsComponent
will contain one or
more elements like a JTextField
or a JComboBox
and optionally a JLabel
or anything elsegetCompoundComponent
in interface CredentialsComponent
public java.util.List<<any>> getAliases()
CredentialsComponent
Provide 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
getAliases
in interface CredentialsComponent
public void addAlias(java.lang.String legacyName, java.lang.String actualName)
CredentialsComponent.getAliases()
for details.legacyName
- an older credentials element's nameactualName
- an actual credentials element's name