public class BasicAlarmProperty<T> extends java.lang.Object implements AlarmProperty<T>
Constructor and Description |
---|
BasicAlarmProperty() |
BasicAlarmProperty(AlarmProperty<T> base,
java.lang.String displayKey) |
BasicAlarmProperty(java.lang.String name,
java.lang.Class<? extends T> type,
T defaultVal,
java.lang.String displayKey,
java.lang.String categoryKey,
java.lang.String descKey,
boolean bindable,
boolean advanced) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
LocalizedString |
getCategory()
The category under which this property will be placed when editing.
|
java.lang.String |
getCategoryKey() |
T |
getDefaultVal() |
T |
getDefaultValue()
The default value for new instances of this property, or null if not applicable.
|
java.lang.String |
getDescKey() |
LocalizedString |
getDescription()
Optional description/documentation for the property.
|
java.lang.String |
getDisplayKey() |
LocalizedString |
getDisplayName()
A friendly display name for the property.
|
java.lang.String |
getName()
The "name" of this property.
|
java.lang.Class<? extends T> |
getType()
The data type for this property.
|
int |
hashCode() |
boolean |
isAdvanced()
Indicates whether this property should not be shown on basic edit screens.
|
boolean |
isBindable()
Indicates whether this property is allowed to be bound.
|
void |
setAdvanced(boolean advanced) |
void |
setBindable(boolean bindable) |
void |
setCategoryKey(java.lang.String categoryKey) |
void |
setDefaultVal(T defaultVal) |
void |
setDescKey(java.lang.String descKey) |
void |
setDisplayKey(java.lang.String displayKey) |
void |
setName(java.lang.String name) |
void |
setType(java.lang.Class<? extends T> type) |
public BasicAlarmProperty()
public BasicAlarmProperty(AlarmProperty<T> base, java.lang.String displayKey)
public T getDefaultVal()
public void setDefaultVal(T defaultVal)
public void setType(java.lang.Class<? extends T> type)
public void setName(java.lang.String name)
public void setDisplayKey(java.lang.String displayKey)
public void setCategoryKey(java.lang.String categoryKey)
public void setDescKey(java.lang.String descKey)
public void setBindable(boolean bindable)
public void setAdvanced(boolean advanced)
public java.lang.Class<? extends T> getType()
Property
public T getDefaultValue()
Property
getDefaultValue
in interface Property<T>
public java.lang.String getName()
Property
public LocalizedString getDisplayName()
DescriptiveProperty
getDisplayName
in interface DescriptiveProperty<T>
public java.lang.String getDisplayKey()
public LocalizedString getCategory()
DescriptiveProperty
getCategory
in interface DescriptiveProperty<T>
public java.lang.String getCategoryKey()
public LocalizedString getDescription()
DescriptiveProperty
getDescription
in interface DescriptiveProperty<T>
public java.lang.String getDescKey()
public boolean isBindable()
AlarmProperty
isBindable
in interface AlarmProperty<T>
public boolean isAdvanced()
AlarmProperty
isAdvanced
in interface AlarmProperty<T>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object