public abstract class DynamicListProperty<T> extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DELIMITER |
Constructor and Description |
---|
DynamicListProperty(String propName,
List<T> defaultValue) |
DynamicListProperty(String propName,
List<T> defaultValue,
String delimiterRegex) |
DynamicListProperty(String propName,
String defaultValue) |
DynamicListProperty(String propName,
String defaultValue,
String delimiterRegex) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(Runnable callback)
Add the callback to be triggered when the value of the property is changed
|
protected abstract T |
from(String value) |
List<T> |
get() |
long |
getChangedTimestamp()
Gets the time (in milliseconds past the epoch) when the property
was last set/changed.
|
protected void |
load() |
protected void |
propertyChanged() |
public static final String DEFAULT_DELIMITER
public DynamicListProperty(String propName, String defaultValue, String delimiterRegex)
protected void propertyChanged()
protected void load()
public long getChangedTimestamp()
public void addCallback(Runnable callback)
callback
- Copyright © 2017. All Rights Reserved.