public class GralSwitchExclusiveButtonMng extends java.lang.Object implements VariableAccess_ifc
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
currentButtonText |
private java.util.List<GralWidget> |
listSwitchButtons |
GralUserAction |
switchAction |
version| Constructor and Description |
|---|
GralSwitchExclusiveButtonMng() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GralWidget widgd) |
double |
getDouble()
Gets the value from this variable.
|
float |
getFloat()
Gets the value from this variable.
|
int |
getInt()
Gets a integer value from this variable.
|
long |
getLastRefreshTime()
Gets the time stamp when this variable was refreshed lastly.
|
long |
getLong()
Gets a long value from this variable.
|
java.lang.String |
getString()
Gets the value from this variable.
|
char |
getType()
Returns the type of the variable:
|
boolean |
isRefreshed()
Returns true if the variable was refresed after it was requested.
|
boolean |
isRequestedValue(long timeEarlyRequested,
boolean retryFaultyVariables)
Returns true if the request is newer than the last refresh.
|
void |
remove(GralWidget widgd) |
void |
requestValue()
Requests a new value from the target device with the
System.currentTimeMillis() |
void |
requestValue(long timeRequested)
Requests a new value from the target device.
|
void |
requestValue(long timeRequested,
java.lang.Runnable run)
Requests a new value from the target device.
|
double |
setDouble(double value)
Sets the value from this variable.
|
float |
setFloat(float value)
Sets the value from this variable.
|
int |
setInt(int value)
Sets the value into the variable.
|
long |
setLong(long value)
Sets the value into the variable.
|
void |
setRefreshed(long time) |
java.lang.String |
setString(java.lang.String value)
Sets the value into the variable
|
private final java.util.List<GralWidget> listSwitchButtons
java.lang.String currentButtonText
public GralUserAction switchAction
public GralSwitchExclusiveButtonMng()
public void add(GralWidget widgd)
public void remove(GralWidget widgd)
public int getInt()
org.vishia.byteData.VariableAccess_ifcgetInt in interface VariableAccess_ifcpublic int setInt(int value)
org.vishia.byteData.VariableAccess_ifcsetInt in interface VariableAccess_ifcvalue - The value given as int.public long getLong()
org.vishia.byteData.VariableAccess_ifcgetLong in interface VariableAccess_ifcpublic long setLong(long value)
org.vishia.byteData.VariableAccess_ifcsetLong in interface VariableAccess_ifcvalue - The value given as int.public float getFloat()
org.vishia.byteData.VariableAccess_ifcgetFloat in interface VariableAccess_ifcpublic float setFloat(float value)
org.vishia.byteData.VariableAccess_ifcsetFloat in interface VariableAccess_ifcpublic double getDouble()
org.vishia.byteData.VariableAccess_ifcgetDouble in interface VariableAccess_ifcpublic double setDouble(double value)
org.vishia.byteData.VariableAccess_ifcsetDouble in interface VariableAccess_ifcpublic java.lang.String getString()
org.vishia.byteData.VariableAccess_ifcgetString in interface VariableAccess_ifcpublic java.lang.String setString(java.lang.String value)
org.vishia.byteData.VariableAccess_ifcsetString in interface VariableAccess_ifcvalue - The value given as String.public char getType()
org.vishia.byteData.VariableAccess_ifcgetType in interface VariableAccess_ifcpublic void setRefreshed(long time)
setRefreshed in interface VariableAccess_ifcpublic long getLastRefreshTime()
org.vishia.byteData.VariableAccess_ifcgetLastRefreshTime in interface VariableAccess_ifcpublic boolean isRefreshed()
org.vishia.byteData.VariableAccess_ifcisRefreshed in interface VariableAccess_ifcpublic void requestValue(long timeRequested)
org.vishia.byteData.VariableAccess_ifcrequestValue in interface VariableAccess_ifctimeRequested - the current time, used to mark the request.public void requestValue()
org.vishia.byteData.VariableAccess_ifcSystem.currentTimeMillis()requestValue in interface VariableAccess_ifcpublic void requestValue(long timeRequested, java.lang.Runnable run)
org.vishia.byteData.VariableAccess_ifcrequestValue in interface VariableAccess_ifctimeRequested - the current timerun - method which should be invoked if the request is resolved, optional operation.public boolean isRequestedValue(long timeEarlyRequested, boolean retryFaultyVariables)
org.vishia.byteData.VariableAccess_ifcisRequestedValue in interface VariableAccess_ifctimeEarlyRequested - The earliest time where the variable is requested. If the request time is more early, it is not regarded.
This is since 2016-01. An old request should be ignored but the time stamp of the request should be visible for debug or view the state.retryFaultyVariables - A variable which is set to invalid is requested though.