public static class Settings.SettingKey extends Object implements Serializable
| Constructor and Description |
|---|
SettingKey()
Construct a new empty setting key
|
SettingKey(String key,
String description,
String toolTip)
Construct a new SettingKey with the given key, description and tool tip
text
|
SettingKey(String key,
String description,
String toolTip,
List<String> pickList)
Construct a new SettingKey with the given key, description, tool tip and
pick list
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compares two setting keys for equality
|
String |
getDescription()
Get the description (display name) of this setting
|
String |
getKey()
Get the key of this setting
|
Map<String,String> |
getMetadata()
Get the metadata for this setting
|
String |
getMetadataElement(String key)
Get a piece of metadata for this setting
|
String |
getMetadataElement(String key,
String defaultValue)
Get a peice of metadata for this setting
|
List<String> |
getPickList()
Get the optional pick list for the setting
|
String |
getToolTip()
Get the tool tip text for this setting
|
int |
hashCode()
Hashcode based on the key
|
void |
setDescription(String description)
Set the description (display name) of this setting
|
void |
setKey(String key)
set the key of this setting
|
void |
setMetadata(Map<String,String> metadata)
Set the metadata for this setting
|
void |
setMetadataElement(String key,
String value)
Set the value of a piece of metadata for this setting
|
void |
setPickList(List<String> pickList)
Set the optional pick list for the setting
|
void |
setToolTip(String toolTip)
Set the tool tip text for this setting
|
String |
toString()
Return the description (display name) of this setting
|
public SettingKey()
public SettingKey(String key, String description, String toolTip)
key - the key of this SettingKeydescription - the description (display name of the setting)toolTip - the tool tip text for the settingpublic SettingKey(String key, String description, String toolTip, List<String> pickList)
key - the key of this SettingKeydescription - the description (display name of the setting)toolTip - the tool tip for the settingpickList - an optional list of legal values for a string settingpublic void setKey(String key)
key - the key to usepublic String getKey()
public void setDescription(String description)
description - the description of this settingpublic String getDescription()
public void setToolTip(String toolTip)
toolTip - the tool tip text to usepublic String getToolTip()
public void setMetadataElement(String key, String value)
key - the key for the metadatavalue - the value of the metadatapublic String getMetadataElement(String key)
key - the key of the metadatapublic String getMetadataElement(String key, String defaultValue)
key - the key of the metadatadefaultValue - the default value for the metadatapublic void setMetadata(Map<String,String> metadata)
metadata - the metadata for this settingpublic Map<String,String> getMetadata()
public List<String> getPickList()
public void setPickList(List<String> pickList)
pickList - the optional pick list for the setting (can be null if
not applicable)public int hashCode()
public boolean equals(Object other)
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.