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) |
java.lang.String |
toString() |
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()
Propertypublic T getDefaultValue()
PropertygetDefaultValue in interface Property<T>public java.lang.String getName()
Propertypublic LocalizedString getDisplayName()
DescriptivePropertygetDisplayName in interface DescriptiveProperty<T>public java.lang.String getDisplayKey()
public LocalizedString getCategory()
DescriptivePropertygetCategory in interface DescriptiveProperty<T>public java.lang.String getCategoryKey()
public LocalizedString getDescription()
DescriptivePropertygetDescription in interface DescriptiveProperty<T>public java.lang.String getDescKey()
public boolean isBindable()
AlarmPropertyisBindable in interface AlarmProperty<T>public boolean isAdvanced()
AlarmPropertyisAdvanced in interface AlarmProperty<T>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object