public class KeyEntry extends Entry
KeyEntry
is essentially a basic Entry
with a single caveat:
Its value and allowed values are managed by a IKeyManager
. If a key
is not allowed, then the KeyEntry
will not set its value to that key.
Multiple KeyEntry
s can and should share a IKeyManager
and
KeyEntryContentProvider
.
iComponentListener
Constructor and Description |
---|
KeyEntry(KeyEntryContentProvider contentProvider,
IKeyManager manager)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Overrides the default clone operation on
Entry . |
boolean |
setValue(java.lang.String newValue)
If the specified value is an allowed key for the
keyManager ,
then this KeyEntry will assume that key within the key manager. |
copy, equals, getAllowedValues, getComment, getDefaultValue, getErrorMessage, getParent, getTag, getValue, getValueType, hashCode, isModified, isReady, isRequired, isSecret, setComment, setContentProvider, setParent, setReady, setRequired, setTag, 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 KeyEntry(KeyEntryContentProvider contentProvider, IKeyManager manager)
contentProvider
- The Entry
's content provider.manager
- The manager for the keys stored in this and other
KeyEntry
s.public boolean setValue(java.lang.String newValue)
keyManager
,
then this KeyEntry
will assume that key within the key manager.
Otherwise, this method will return false and set an appropriate error
message.public java.lang.Object clone()
Entry
.
Note: This method should not be used. It is implemented so that a
template KeyEntry
can be copied when used in
ConnectionManager
TableComponent
s.
clone
in interface Identifiable
clone
in class Entry