public class UserAttribute extends Object
Constructor and Description |
---|
UserAttribute(String id,
IMonitorField.DataType dataType)
Creates a new user attribute.
|
Modifier and Type | Method and Description |
---|---|
IMonitorField.DataType |
getDataType()
Returns the data type of this attribute.
|
String |
getId()
Returns the identifier of this user attribute.
|
String |
getLabel()
Returns the label of this attribute (yet to be localized using
getStringResourcePath() ). |
String |
getLocalizedLabel()
Returns the result of localizing
getLabel() using getStringResourcePath() using the current
session's locale. |
String |
getStringResourcePath()
Returns the string resource path used for localizing the attribute label.
|
boolean |
isFromModule()
Returns whether this attribute is defined in a module.
|
void |
setFromModule(boolean fromModule)
Sets whether this attribute is defined in a module.
|
void |
setLabel(String label)
Sets the label for this attribute.
|
void |
setStringResourcePath(String stringResourcePath)
Sets the string resource path used for localizing the attribute label.
|
public UserAttribute(String id, IMonitorField.DataType dataType)
id
- the attribute identifier.dataType
- the attribute data type.public String getId()
public String getLabel()
getStringResourcePath()
).getLocalizedLabel()
public String getLocalizedLabel()
getLabel()
using getStringResourcePath()
using the current
session's locale.public void setLabel(String label)
label
- the label, that may be a localization key for getStringResourcePath()
.public IMonitorField.DataType getDataType()
public String getStringResourcePath()
public void setStringResourcePath(String stringResourcePath)
stringResourcePath
- the string resource path.public boolean isFromModule()
true
if this attribute is defined in a module, false
otherwise.public void setFromModule(boolean fromModule)
fromModule
- true
if this attribute is defined in a module, false
otherwise.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.