public abstract class Property extends Object
ScreenHandler
.
Property
instances are used for tracking integer properties in property delegates
and other sources of integer properties, and sending needed content updates to listeners.
Modifier and Type | Field and Description |
---|---|
private int |
oldValue |
Constructor and Description |
---|
Property() |
Modifier and Type | Method and Description |
---|---|
static Property |
create()
Creates a new property that is not attached to any other objects.
|
static Property |
create(int[] array,
int index)
Creates a new property that accesses the
index of the array . |
static Property |
create(PropertyDelegate delegate,
int index)
Creates a new property that accesses the
index of the delegate . |
abstract int |
get() |
boolean |
hasChanged()
Returns true if the value of this property has changed since the last call to
hasChanged() . |
abstract void |
set(int value) |
public static Property create(PropertyDelegate delegate, int index)
index
of the delegate
.public static Property create(int[] array, int index)
index
of the array
.public static Property create()
public abstract int get()
public abstract void set(int value)
public boolean hasChanged()
hasChanged()
.