|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.comm.nv.NetworkVariableEvent
public class NetworkVariableEvent
This class represents a change of status or value of a network variable. NetworkVariableEvents
can be obtained by attaching a NetworkVariableListener
to a NetworkVariable
.
Field Summary | |
---|---|
static int |
UPDATED
updated, either remotely or locally |
static int |
UPDATED_LOCALLY
set if the NV was updated locally |
static int |
UPDATED_REMOTELY
set if the NV was updated remotely |
static int |
VALUE_CHANGED
Event type: value has effectively changed |
Constructor Summary | |
---|---|
NetworkVariableEvent()
empty constructor |
|
NetworkVariableEvent(NetworkVariable networkVariable,
int type)
Creates a new event. |
Method Summary | |
---|---|
NetworkVariable |
getNetworkVariable()
Returns the associated network variable. |
int |
getType()
Returns the network variable event type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
public static final int VALUE_CHANGED
public static final int UPDATED_REMOTELY
public static final int UPDATED_LOCALLY
public static final int UPDATED
Constructor Detail |
---|
public NetworkVariableEvent(NetworkVariable networkVariable, int type)
networkVariable
- producertype
- network variable event type (a combination of VALUE_CHANGED,
UPDATED_REMOTELY and UPDATED_LOCALLY)VALUE_CHANGED
,
UPDATED_REMOTELY
,
UPDATED_LOCALLY
public NetworkVariableEvent()
Method Detail |
---|
public int getType()
VALUE_CHANGED
,
UPDATED_REMOTELY
,
UPDATED_LOCALLY
public NetworkVariable getNetworkVariable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |